/* steam-restart-operation.c generated by valac 0.56.19, the Vala compiler
 * generated from steam-restart-operation.vala, do not modify */

#include "protonplus_core.h"
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <glib-object.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

enum  {
	PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_0_PROPERTY,
	PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_TARGET_PROPERTY,
	PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_FINAL_STATE_PROPERTY,
	PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_REASON_PROPERTY,
	PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_SHUTDOWN_REQUEST_SENT_PROPERTY,
	PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_STEAM_CONFIRMED_STOPPED_PROPERTY,
	PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_LAUNCH_REQUEST_SENT_PROPERTY,
	PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_NEW_RUNNING_SESSION_CONFIRMED_PROPERTY,
	PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_PENDING_STATE_CLEARED_PROPERTY,
	PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_PERSISTENCE_FAILED_PROPERTY,
	PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_LAST_SNAPSHOT_PROPERTY,
	PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_DIAGNOSTIC_DETAIL_PROPERTY,
	PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_NUM_PROPERTIES
};
static GParamSpec* proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

struct _ProtonPlusModelsSteamRestartOperationResultPrivate {
	ProtonPlusModelsSteamRestartTarget* _target;
	ProtonPlusModelsSteamRestartOperationState _final_state;
	ProtonPlusModelsSteamRestartFailureReason _reason;
	gboolean _shutdown_request_sent;
	gboolean _steam_confirmed_stopped;
	gboolean _launch_request_sent;
	gboolean _new_running_session_confirmed;
	gboolean _pending_state_cleared;
	gboolean _persistence_failed;
	ProtonPlusServicesSteamSessionSnapshot* _last_snapshot;
	gchar* _diagnostic_detail;
};

static gint ProtonPlusModelsSteamRestartOperationResult_private_offset;
static gpointer proton_plus_models_steam_restart_operation_result_parent_class = NULL;

static void proton_plus_models_steam_restart_operation_result_set_target (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                   ProtonPlusModelsSteamRestartTarget* value);
static void proton_plus_models_steam_restart_operation_result_set_final_state (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                        ProtonPlusModelsSteamRestartOperationState value);
static void proton_plus_models_steam_restart_operation_result_set_reason (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                   ProtonPlusModelsSteamRestartFailureReason value);
static void proton_plus_models_steam_restart_operation_result_set_shutdown_request_sent (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                                  gboolean value);
static void proton_plus_models_steam_restart_operation_result_set_steam_confirmed_stopped (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                                    gboolean value);
static void proton_plus_models_steam_restart_operation_result_set_launch_request_sent (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                                gboolean value);
static void proton_plus_models_steam_restart_operation_result_set_new_running_session_confirmed (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                                          gboolean value);
static void proton_plus_models_steam_restart_operation_result_set_pending_state_cleared (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                                  gboolean value);
static void proton_plus_models_steam_restart_operation_result_set_persistence_failed (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                               gboolean value);
static void proton_plus_models_steam_restart_operation_result_set_last_snapshot (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                          ProtonPlusServicesSteamSessionSnapshot* value);
static void proton_plus_models_steam_restart_operation_result_set_diagnostic_detail (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                              const gchar* value);
static void proton_plus_models_steam_restart_operation_result_finalize (GObject * obj);
static GType proton_plus_models_steam_restart_operation_result_get_type_once (void);
static void _vala_proton_plus_models_steam_restart_operation_result_get_property (GObject * object,
                                                                           guint property_id,
                                                                           GValue * value,
                                                                           GParamSpec * pspec);
static void _vala_proton_plus_models_steam_restart_operation_result_set_property (GObject * object,
                                                                           guint property_id,
                                                                           const GValue * value,
                                                                           GParamSpec * pspec);
static inline gpointer _vala_memdup2 (gconstpointer mem,
                        gsize byte_size);

static GType
proton_plus_models_steam_restart_operation_state_get_type_once (void)
{
	static const GEnumValue values[] = {{PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_IDLE, "PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_IDLE", "idle"}, {PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_PREFLIGHT, "PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_PREFLIGHT", "preflight"}, {PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_REQUESTING_SHUTDOWN, "PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_REQUESTING_SHUTDOWN", "requesting-shutdown"}, {PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_WAITING_FOR_EXIT, "PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_WAITING_FOR_EXIT", "waiting-for-exit"}, {PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_APPLYING_CHANGES, "PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_APPLYING_CHANGES", "applying-changes"}, {PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_LAUNCHING, "PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_LAUNCHING", "launching"}, {PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_WAITING_FOR_START, "PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_WAITING_FOR_START", "waiting-for-start"}, {PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_STEAMOS_HANDOFF_REQUESTED, "PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_STEAMOS_HANDOFF_REQUESTED", "steamos-handoff-requested"}, {PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_SUCCEEDED, "PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_SUCCEEDED", "succeeded"}, {PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_FAILED, "PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_FAILED", "failed"}, {PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_CANCELLED, "PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_STATE_CANCELLED", "cancelled"}, {0, NULL, NULL}};
	GType proton_plus_models_steam_restart_operation_state_type_id;
	proton_plus_models_steam_restart_operation_state_type_id = g_enum_register_static ("ProtonPlusModelsSteamRestartOperationState", values);
	return proton_plus_models_steam_restart_operation_state_type_id;
}

GType
proton_plus_models_steam_restart_operation_state_get_type (void)
{
	static volatile gsize proton_plus_models_steam_restart_operation_state_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_models_steam_restart_operation_state_type_id__once)) {
		GType proton_plus_models_steam_restart_operation_state_type_id;
		proton_plus_models_steam_restart_operation_state_type_id = proton_plus_models_steam_restart_operation_state_get_type_once ();
		g_once_init_leave (&proton_plus_models_steam_restart_operation_state_type_id__once, proton_plus_models_steam_restart_operation_state_type_id);
	}
	return proton_plus_models_steam_restart_operation_state_type_id__once;
}

static GType
proton_plus_models_steam_restart_failure_reason_get_type_once (void)
{
	static const GEnumValue values[] = {{PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_NONE, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_NONE", "none"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_NO_PENDING_CHANGES, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_NO_PENDING_CHANGES", "no-pending-changes"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_ALREADY_IN_PROGRESS, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_ALREADY_IN_PROGRESS", "already-in-progress"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_TARGET_SNAPSHOT_MISMATCH, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_TARGET_SNAPSHOT_MISMATCH", "target-snapshot-mismatch"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_STATE_UNKNOWN_OR_AMBIGUOUS, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_STATE_UNKNOWN_OR_AMBIGUOUS", "state-unknown-or-ambiguous"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_STEAM_STARTING, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_STEAM_STARTING", "steam-starting"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_STEAM_UPDATING, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_STEAM_UPDATING", "steam-updating"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_STEAMOS_GAMING_MODE, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_STEAMOS_GAMING_MODE", "steamos-gaming-mode"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_STEAMOS_CONFIGURATION_REQUIRES_DESKTOP_MODE, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_STEAMOS_CONFIGURATION_REQUIRES_DESKTOP_MODE", "steamos-configuration-requires-desktop-mode"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_GAME_OR_COMPATIBILITY_PROCESS, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_GAME_OR_COMPATIBILITY_PROCESS", "game-or-compatibility-process"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_SESSION_BLOCKER, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_SESSION_BLOCKER", "session-blocker"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_GRACEFUL_SHUTDOWN_UNSUPPORTED, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_GRACEFUL_SHUTDOWN_UNSUPPORTED", "graceful-shutdown-unsupported"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_GRACEFUL_SHUTDOWN_FAILED, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_GRACEFUL_SHUTDOWN_FAILED", "graceful-shutdown-failed"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_EXIT_TIMEOUT, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_EXIT_TIMEOUT", "exit-timeout"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_RELAUNCH_UNAVAILABLE, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_RELAUNCH_UNAVAILABLE", "relaunch-unavailable"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_RELAUNCH_FAILED, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_RELAUNCH_FAILED", "relaunch-failed"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_START_TIMEOUT, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_START_TIMEOUT", "start-timeout"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_NEW_SESSION_UNCONFIRMED, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_NEW_SESSION_UNCONFIRMED", "new-session-unconfirmed"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_CONFIGURATION_RECONCILIATION_FAILED, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_CONFIGURATION_RECONCILIATION_FAILED", "configuration-reconciliation-failed"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_CANCELLED, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_CANCELLED", "cancelled"}, {PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_PENDING_STATE_PERSISTENCE_FAILED, "PROTON_PLUS_MODELS_STEAM_RESTART_FAILURE_REASON_PENDING_STATE_PERSISTENCE_FAILED", "pending-state-persistence-failed"}, {0, NULL, NULL}};
	GType proton_plus_models_steam_restart_failure_reason_type_id;
	proton_plus_models_steam_restart_failure_reason_type_id = g_enum_register_static ("ProtonPlusModelsSteamRestartFailureReason", values);
	return proton_plus_models_steam_restart_failure_reason_type_id;
}

GType
proton_plus_models_steam_restart_failure_reason_get_type (void)
{
	static volatile gsize proton_plus_models_steam_restart_failure_reason_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_models_steam_restart_failure_reason_type_id__once)) {
		GType proton_plus_models_steam_restart_failure_reason_type_id;
		proton_plus_models_steam_restart_failure_reason_type_id = proton_plus_models_steam_restart_failure_reason_get_type_once ();
		g_once_init_leave (&proton_plus_models_steam_restart_failure_reason_type_id__once, proton_plus_models_steam_restart_failure_reason_type_id);
	}
	return proton_plus_models_steam_restart_failure_reason_type_id__once;
}

static inline gpointer
proton_plus_models_steam_restart_operation_result_get_instance_private (ProtonPlusModelsSteamRestartOperationResult* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusModelsSteamRestartOperationResult_private_offset);
}

ProtonPlusModelsSteamRestartOperationResult*
proton_plus_models_steam_restart_operation_result_construct (GType object_type,
                                                             ProtonPlusModelsSteamRestartTarget* target,
                                                             ProtonPlusModelsSteamRestartOperationState final_state,
                                                             ProtonPlusModelsSteamRestartFailureReason reason,
                                                             gboolean shutdown_request_sent,
                                                             gboolean steam_confirmed_stopped,
                                                             gboolean launch_request_sent,
                                                             gboolean new_running_session_confirmed,
                                                             gboolean pending_state_cleared,
                                                             gboolean persistence_failed,
                                                             ProtonPlusServicesSteamSessionSnapshot* last_snapshot,
                                                             const gchar* diagnostic_detail)
{
	ProtonPlusModelsSteamRestartOperationResult * self = NULL;
	g_return_val_if_fail (target != NULL, NULL);
	g_return_val_if_fail (diagnostic_detail != NULL, NULL);
	self = (ProtonPlusModelsSteamRestartOperationResult*) g_object_new (object_type, NULL);
	proton_plus_models_steam_restart_operation_result_set_target (self, target);
	proton_plus_models_steam_restart_operation_result_set_final_state (self, final_state);
	proton_plus_models_steam_restart_operation_result_set_reason (self, reason);
	proton_plus_models_steam_restart_operation_result_set_shutdown_request_sent (self, shutdown_request_sent);
	proton_plus_models_steam_restart_operation_result_set_steam_confirmed_stopped (self, steam_confirmed_stopped);
	proton_plus_models_steam_restart_operation_result_set_launch_request_sent (self, launch_request_sent);
	proton_plus_models_steam_restart_operation_result_set_new_running_session_confirmed (self, new_running_session_confirmed);
	proton_plus_models_steam_restart_operation_result_set_pending_state_cleared (self, pending_state_cleared);
	proton_plus_models_steam_restart_operation_result_set_persistence_failed (self, persistence_failed);
	proton_plus_models_steam_restart_operation_result_set_last_snapshot (self, last_snapshot);
	proton_plus_models_steam_restart_operation_result_set_diagnostic_detail (self, diagnostic_detail);
	return self;
}

ProtonPlusModelsSteamRestartOperationResult*
proton_plus_models_steam_restart_operation_result_new (ProtonPlusModelsSteamRestartTarget* target,
                                                       ProtonPlusModelsSteamRestartOperationState final_state,
                                                       ProtonPlusModelsSteamRestartFailureReason reason,
                                                       gboolean shutdown_request_sent,
                                                       gboolean steam_confirmed_stopped,
                                                       gboolean launch_request_sent,
                                                       gboolean new_running_session_confirmed,
                                                       gboolean pending_state_cleared,
                                                       gboolean persistence_failed,
                                                       ProtonPlusServicesSteamSessionSnapshot* last_snapshot,
                                                       const gchar* diagnostic_detail)
{
	return proton_plus_models_steam_restart_operation_result_construct (PROTON_PLUS_MODELS_TYPE_STEAM_RESTART_OPERATION_RESULT, target, final_state, reason, shutdown_request_sent, steam_confirmed_stopped, launch_request_sent, new_running_session_confirmed, pending_state_cleared, persistence_failed, last_snapshot, diagnostic_detail);
}

ProtonPlusModelsSteamRestartTarget*
proton_plus_models_steam_restart_operation_result_get_target (ProtonPlusModelsSteamRestartOperationResult* self)
{
	ProtonPlusModelsSteamRestartTarget* result;
	ProtonPlusModelsSteamRestartTarget* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_target;
	result = _tmp0_;
	return result;
}

static gpointer
_g_object_ref0 (gpointer self)
{
	return self ? g_object_ref (self) : NULL;
}

static void
proton_plus_models_steam_restart_operation_result_set_target (ProtonPlusModelsSteamRestartOperationResult* self,
                                                              ProtonPlusModelsSteamRestartTarget* value)
{
	ProtonPlusModelsSteamRestartTarget* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_steam_restart_operation_result_get_target (self);
	if (old_value != value) {
		ProtonPlusModelsSteamRestartTarget* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_target);
		self->priv->_target = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_TARGET_PROPERTY]);
	}
}

ProtonPlusModelsSteamRestartOperationState
proton_plus_models_steam_restart_operation_result_get_final_state (ProtonPlusModelsSteamRestartOperationResult* self)
{
	ProtonPlusModelsSteamRestartOperationState result;
	g_return_val_if_fail (self != NULL, 0);
	result = self->priv->_final_state;
	return result;
}

static void
proton_plus_models_steam_restart_operation_result_set_final_state (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                   ProtonPlusModelsSteamRestartOperationState value)
{
	ProtonPlusModelsSteamRestartOperationState old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_steam_restart_operation_result_get_final_state (self);
	if (old_value != value) {
		self->priv->_final_state = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_FINAL_STATE_PROPERTY]);
	}
}

ProtonPlusModelsSteamRestartFailureReason
proton_plus_models_steam_restart_operation_result_get_reason (ProtonPlusModelsSteamRestartOperationResult* self)
{
	ProtonPlusModelsSteamRestartFailureReason result;
	g_return_val_if_fail (self != NULL, 0);
	result = self->priv->_reason;
	return result;
}

static void
proton_plus_models_steam_restart_operation_result_set_reason (ProtonPlusModelsSteamRestartOperationResult* self,
                                                              ProtonPlusModelsSteamRestartFailureReason value)
{
	ProtonPlusModelsSteamRestartFailureReason old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_steam_restart_operation_result_get_reason (self);
	if (old_value != value) {
		self->priv->_reason = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_REASON_PROPERTY]);
	}
}

gboolean
proton_plus_models_steam_restart_operation_result_get_shutdown_request_sent (ProtonPlusModelsSteamRestartOperationResult* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_shutdown_request_sent;
	return result;
}

static void
proton_plus_models_steam_restart_operation_result_set_shutdown_request_sent (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                             gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_steam_restart_operation_result_get_shutdown_request_sent (self);
	if (old_value != value) {
		self->priv->_shutdown_request_sent = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_SHUTDOWN_REQUEST_SENT_PROPERTY]);
	}
}

gboolean
proton_plus_models_steam_restart_operation_result_get_steam_confirmed_stopped (ProtonPlusModelsSteamRestartOperationResult* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_steam_confirmed_stopped;
	return result;
}

static void
proton_plus_models_steam_restart_operation_result_set_steam_confirmed_stopped (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                               gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_steam_restart_operation_result_get_steam_confirmed_stopped (self);
	if (old_value != value) {
		self->priv->_steam_confirmed_stopped = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_STEAM_CONFIRMED_STOPPED_PROPERTY]);
	}
}

gboolean
proton_plus_models_steam_restart_operation_result_get_launch_request_sent (ProtonPlusModelsSteamRestartOperationResult* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_launch_request_sent;
	return result;
}

static void
proton_plus_models_steam_restart_operation_result_set_launch_request_sent (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                           gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_steam_restart_operation_result_get_launch_request_sent (self);
	if (old_value != value) {
		self->priv->_launch_request_sent = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_LAUNCH_REQUEST_SENT_PROPERTY]);
	}
}

gboolean
proton_plus_models_steam_restart_operation_result_get_new_running_session_confirmed (ProtonPlusModelsSteamRestartOperationResult* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_new_running_session_confirmed;
	return result;
}

static void
proton_plus_models_steam_restart_operation_result_set_new_running_session_confirmed (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                                     gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_steam_restart_operation_result_get_new_running_session_confirmed (self);
	if (old_value != value) {
		self->priv->_new_running_session_confirmed = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_NEW_RUNNING_SESSION_CONFIRMED_PROPERTY]);
	}
}

gboolean
proton_plus_models_steam_restart_operation_result_get_pending_state_cleared (ProtonPlusModelsSteamRestartOperationResult* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_pending_state_cleared;
	return result;
}

static void
proton_plus_models_steam_restart_operation_result_set_pending_state_cleared (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                             gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_steam_restart_operation_result_get_pending_state_cleared (self);
	if (old_value != value) {
		self->priv->_pending_state_cleared = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_PENDING_STATE_CLEARED_PROPERTY]);
	}
}

gboolean
proton_plus_models_steam_restart_operation_result_get_persistence_failed (ProtonPlusModelsSteamRestartOperationResult* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_persistence_failed;
	return result;
}

static void
proton_plus_models_steam_restart_operation_result_set_persistence_failed (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                          gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_steam_restart_operation_result_get_persistence_failed (self);
	if (old_value != value) {
		self->priv->_persistence_failed = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_PERSISTENCE_FAILED_PROPERTY]);
	}
}

ProtonPlusServicesSteamSessionSnapshot*
proton_plus_models_steam_restart_operation_result_get_last_snapshot (ProtonPlusModelsSteamRestartOperationResult* self)
{
	ProtonPlusServicesSteamSessionSnapshot* result;
	ProtonPlusServicesSteamSessionSnapshot* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_last_snapshot;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_steam_restart_operation_result_set_last_snapshot (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                     ProtonPlusServicesSteamSessionSnapshot* value)
{
	ProtonPlusServicesSteamSessionSnapshot* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_steam_restart_operation_result_get_last_snapshot (self);
	if (old_value != value) {
		ProtonPlusServicesSteamSessionSnapshot* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_last_snapshot);
		self->priv->_last_snapshot = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_LAST_SNAPSHOT_PROPERTY]);
	}
}

const gchar*
proton_plus_models_steam_restart_operation_result_get_diagnostic_detail (ProtonPlusModelsSteamRestartOperationResult* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_diagnostic_detail;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_steam_restart_operation_result_set_diagnostic_detail (ProtonPlusModelsSteamRestartOperationResult* self,
                                                                         const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_steam_restart_operation_result_get_diagnostic_detail (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_diagnostic_detail);
		self->priv->_diagnostic_detail = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_DIAGNOSTIC_DETAIL_PROPERTY]);
	}
}

static void
proton_plus_models_steam_restart_operation_result_class_init (ProtonPlusModelsSteamRestartOperationResultClass * klass,
                                                              gpointer klass_data)
{
	proton_plus_models_steam_restart_operation_result_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusModelsSteamRestartOperationResult_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_models_steam_restart_operation_result_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_models_steam_restart_operation_result_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_models_steam_restart_operation_result_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_TARGET_PROPERTY, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_TARGET_PROPERTY] = g_param_spec_object ("target", "target", "target", PROTON_PLUS_MODELS_TYPE_STEAM_RESTART_TARGET, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_FINAL_STATE_PROPERTY, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_FINAL_STATE_PROPERTY] = g_param_spec_enum ("final-state", "final-state", "final-state", PROTON_PLUS_MODELS_TYPE_STEAM_RESTART_OPERATION_STATE, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_REASON_PROPERTY, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_REASON_PROPERTY] = g_param_spec_enum ("reason", "reason", "reason", PROTON_PLUS_MODELS_TYPE_STEAM_RESTART_FAILURE_REASON, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_SHUTDOWN_REQUEST_SENT_PROPERTY, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_SHUTDOWN_REQUEST_SENT_PROPERTY] = g_param_spec_boolean ("shutdown-request-sent", "shutdown-request-sent", "shutdown-request-sent", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_STEAM_CONFIRMED_STOPPED_PROPERTY, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_STEAM_CONFIRMED_STOPPED_PROPERTY] = g_param_spec_boolean ("steam-confirmed-stopped", "steam-confirmed-stopped", "steam-confirmed-stopped", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_LAUNCH_REQUEST_SENT_PROPERTY, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_LAUNCH_REQUEST_SENT_PROPERTY] = g_param_spec_boolean ("launch-request-sent", "launch-request-sent", "launch-request-sent", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_NEW_RUNNING_SESSION_CONFIRMED_PROPERTY, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_NEW_RUNNING_SESSION_CONFIRMED_PROPERTY] = g_param_spec_boolean ("new-running-session-confirmed", "new-running-session-confirmed", "new-running-session-confirmed", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_PENDING_STATE_CLEARED_PROPERTY, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_PENDING_STATE_CLEARED_PROPERTY] = g_param_spec_boolean ("pending-state-cleared", "pending-state-cleared", "pending-state-cleared", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_PERSISTENCE_FAILED_PROPERTY, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_PERSISTENCE_FAILED_PROPERTY] = g_param_spec_boolean ("persistence-failed", "persistence-failed", "persistence-failed", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_LAST_SNAPSHOT_PROPERTY, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_LAST_SNAPSHOT_PROPERTY] = g_param_spec_object ("last-snapshot", "last-snapshot", "last-snapshot", PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_SNAPSHOT, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_DIAGNOSTIC_DETAIL_PROPERTY, proton_plus_models_steam_restart_operation_result_properties[PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_DIAGNOSTIC_DETAIL_PROPERTY] = g_param_spec_string ("diagnostic-detail", "diagnostic-detail", "diagnostic-detail", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

static void
proton_plus_models_steam_restart_operation_result_instance_init (ProtonPlusModelsSteamRestartOperationResult * self,
                                                                 gpointer klass)
{
	self->priv = proton_plus_models_steam_restart_operation_result_get_instance_private (self);
}

static void
proton_plus_models_steam_restart_operation_result_finalize (GObject * obj)
{
	ProtonPlusModelsSteamRestartOperationResult * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_MODELS_TYPE_STEAM_RESTART_OPERATION_RESULT, ProtonPlusModelsSteamRestartOperationResult);
	_g_object_unref0 (self->priv->_target);
	_g_object_unref0 (self->priv->_last_snapshot);
	_g_free0 (self->priv->_diagnostic_detail);
	G_OBJECT_CLASS (proton_plus_models_steam_restart_operation_result_parent_class)->finalize (obj);
}

static GType
proton_plus_models_steam_restart_operation_result_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusModelsSteamRestartOperationResultClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_models_steam_restart_operation_result_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusModelsSteamRestartOperationResult), 0, (GInstanceInitFunc) proton_plus_models_steam_restart_operation_result_instance_init, NULL };
	GType proton_plus_models_steam_restart_operation_result_type_id;
	proton_plus_models_steam_restart_operation_result_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusModelsSteamRestartOperationResult", &g_define_type_info, 0);
	ProtonPlusModelsSteamRestartOperationResult_private_offset = g_type_add_instance_private (proton_plus_models_steam_restart_operation_result_type_id, sizeof (ProtonPlusModelsSteamRestartOperationResultPrivate));
	return proton_plus_models_steam_restart_operation_result_type_id;
}

GType
proton_plus_models_steam_restart_operation_result_get_type (void)
{
	static volatile gsize proton_plus_models_steam_restart_operation_result_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_models_steam_restart_operation_result_type_id__once)) {
		GType proton_plus_models_steam_restart_operation_result_type_id;
		proton_plus_models_steam_restart_operation_result_type_id = proton_plus_models_steam_restart_operation_result_get_type_once ();
		g_once_init_leave (&proton_plus_models_steam_restart_operation_result_type_id__once, proton_plus_models_steam_restart_operation_result_type_id);
	}
	return proton_plus_models_steam_restart_operation_result_type_id__once;
}

static void
_vala_proton_plus_models_steam_restart_operation_result_get_property (GObject * object,
                                                                      guint property_id,
                                                                      GValue * value,
                                                                      GParamSpec * pspec)
{
	ProtonPlusModelsSteamRestartOperationResult * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_TYPE_STEAM_RESTART_OPERATION_RESULT, ProtonPlusModelsSteamRestartOperationResult);
	switch (property_id) {
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_TARGET_PROPERTY:
		g_value_set_object (value, proton_plus_models_steam_restart_operation_result_get_target (self));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_FINAL_STATE_PROPERTY:
		g_value_set_enum (value, proton_plus_models_steam_restart_operation_result_get_final_state (self));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_REASON_PROPERTY:
		g_value_set_enum (value, proton_plus_models_steam_restart_operation_result_get_reason (self));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_SHUTDOWN_REQUEST_SENT_PROPERTY:
		g_value_set_boolean (value, proton_plus_models_steam_restart_operation_result_get_shutdown_request_sent (self));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_STEAM_CONFIRMED_STOPPED_PROPERTY:
		g_value_set_boolean (value, proton_plus_models_steam_restart_operation_result_get_steam_confirmed_stopped (self));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_LAUNCH_REQUEST_SENT_PROPERTY:
		g_value_set_boolean (value, proton_plus_models_steam_restart_operation_result_get_launch_request_sent (self));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_NEW_RUNNING_SESSION_CONFIRMED_PROPERTY:
		g_value_set_boolean (value, proton_plus_models_steam_restart_operation_result_get_new_running_session_confirmed (self));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_PENDING_STATE_CLEARED_PROPERTY:
		g_value_set_boolean (value, proton_plus_models_steam_restart_operation_result_get_pending_state_cleared (self));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_PERSISTENCE_FAILED_PROPERTY:
		g_value_set_boolean (value, proton_plus_models_steam_restart_operation_result_get_persistence_failed (self));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_LAST_SNAPSHOT_PROPERTY:
		g_value_set_object (value, proton_plus_models_steam_restart_operation_result_get_last_snapshot (self));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_DIAGNOSTIC_DETAIL_PROPERTY:
		g_value_set_string (value, proton_plus_models_steam_restart_operation_result_get_diagnostic_detail (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_models_steam_restart_operation_result_set_property (GObject * object,
                                                                      guint property_id,
                                                                      const GValue * value,
                                                                      GParamSpec * pspec)
{
	ProtonPlusModelsSteamRestartOperationResult * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_TYPE_STEAM_RESTART_OPERATION_RESULT, ProtonPlusModelsSteamRestartOperationResult);
	switch (property_id) {
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_TARGET_PROPERTY:
		proton_plus_models_steam_restart_operation_result_set_target (self, g_value_get_object (value));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_FINAL_STATE_PROPERTY:
		proton_plus_models_steam_restart_operation_result_set_final_state (self, g_value_get_enum (value));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_REASON_PROPERTY:
		proton_plus_models_steam_restart_operation_result_set_reason (self, g_value_get_enum (value));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_SHUTDOWN_REQUEST_SENT_PROPERTY:
		proton_plus_models_steam_restart_operation_result_set_shutdown_request_sent (self, g_value_get_boolean (value));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_STEAM_CONFIRMED_STOPPED_PROPERTY:
		proton_plus_models_steam_restart_operation_result_set_steam_confirmed_stopped (self, g_value_get_boolean (value));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_LAUNCH_REQUEST_SENT_PROPERTY:
		proton_plus_models_steam_restart_operation_result_set_launch_request_sent (self, g_value_get_boolean (value));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_NEW_RUNNING_SESSION_CONFIRMED_PROPERTY:
		proton_plus_models_steam_restart_operation_result_set_new_running_session_confirmed (self, g_value_get_boolean (value));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_PENDING_STATE_CLEARED_PROPERTY:
		proton_plus_models_steam_restart_operation_result_set_pending_state_cleared (self, g_value_get_boolean (value));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_PERSISTENCE_FAILED_PROPERTY:
		proton_plus_models_steam_restart_operation_result_set_persistence_failed (self, g_value_get_boolean (value));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_LAST_SNAPSHOT_PROPERTY:
		proton_plus_models_steam_restart_operation_result_set_last_snapshot (self, g_value_get_object (value));
		break;
		case PROTON_PLUS_MODELS_STEAM_RESTART_OPERATION_RESULT_DIAGNOSTIC_DETAIL_PROPERTY:
		proton_plus_models_steam_restart_operation_result_set_diagnostic_detail (self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static inline gpointer
_vala_memdup2 (gconstpointer mem,
               gsize byte_size)
{
	gpointer new_mem;
	if (mem && byte_size != 0) {
		new_mem = g_malloc (byte_size);
		memcpy (new_mem, mem, byte_size);
	} else {
		new_mem = NULL;
	}
	return new_mem;
}

