// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/device/v1/keyapis_device_event_alert_v1.proto

// This CPP symbol can be defined to use imports that match up to the framework
// imports needed when using CocoaPods.
#if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
 #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
#endif

#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
 #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
#else
 #import "GPBProtocolBuffers_RuntimeSupport.h"
#endif

#if GOOGLE_PROTOBUF_OBJC_VERSION < 30007
#error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
#if 30007 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
#error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
#endif

#import <stdatomic.h>

#import "keyapis/device/v1/KeyapisDeviceEventAlertV1.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
// @@protoc_insertion_point(imports)

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"

#pragma mark - Objective-C Class declarations
// Forward declarations of Objective-C classes that we can use as
// static values in struct initializers.
// We don't use [Foo class] because it is not a static value.
GPBObjCClassDeclaration(GPBInt32Value);
GPBObjCClassDeclaration(GPBStringValue);
GPBObjCClassDeclaration(KEYAPISDEVICEV1PlayStartTask);
GPBObjCClassDeclaration(KEYAPISDEVICEV1PlayStopTask);
GPBObjCClassDeclaration(KEYAPISDEVICEV1PrepareStartTask);
GPBObjCClassDeclaration(KEYAPISDEVICEV1PrepareStopTask);

#pragma mark - KEYAPISDEVICEV1KeyapisDeviceEventAlertV1Root

@implementation KEYAPISDEVICEV1KeyapisDeviceEventAlertV1Root

+ (GPBExtensionRegistry*)extensionRegistry {
  // This is called by +initialize so there is no need to worry
  // about thread safety and initialization of registry.
  static GPBExtensionRegistry* registry = nil;
  if (!registry) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    registry = [[GPBExtensionRegistry alloc] init];
    // Merge in the imports (direct or indirect) that defined extensions.
    [registry addExtensions:[GAPIFieldBehaviorRoot extensionRegistry]];
  }
  return registry;
}

@end

static GPBFileDescription KEYAPISDEVICEV1KeyapisDeviceEventAlertV1Root_FileDescription = {
  .package = "keyapis.device.v1",
  .prefix = "KEYAPISDEVICEV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISDEVICEV1PrepareStartTask_PlayType

GPBEnumDescriptor *KEYAPISDEVICEV1PrepareStartTask_PlayType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "PlayTypeUnknown\000HandsetOnly\000SpeakerOnly\000"
        "HandsetAndSpeaker\000SpeakerAndHandset\000";
    static const int32_t values[] = {
        KEYAPISDEVICEV1PrepareStartTask_PlayType_PlayTypeUnknown,
        KEYAPISDEVICEV1PrepareStartTask_PlayType_HandsetOnly,
        KEYAPISDEVICEV1PrepareStartTask_PlayType_SpeakerOnly,
        KEYAPISDEVICEV1PrepareStartTask_PlayType_HandsetAndSpeaker,
        KEYAPISDEVICEV1PrepareStartTask_PlayType_SpeakerAndHandset,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISDEVICEV1PrepareStartTask_PlayType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISDEVICEV1PrepareStartTask_PlayType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISDEVICEV1PrepareStartTask_PlayType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISDEVICEV1PrepareStartTask_PlayType_PlayTypeUnknown:
    case KEYAPISDEVICEV1PrepareStartTask_PlayType_HandsetOnly:
    case KEYAPISDEVICEV1PrepareStartTask_PlayType_SpeakerOnly:
    case KEYAPISDEVICEV1PrepareStartTask_PlayType_HandsetAndSpeaker:
    case KEYAPISDEVICEV1PrepareStartTask_PlayType_SpeakerAndHandset:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISDEVICEV1PlayStartTask_PlayType

GPBEnumDescriptor *KEYAPISDEVICEV1PlayStartTask_PlayType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "PlayTypeUnknown\000HandsetOnly\000SpeakerOnly\000"
        "HandsetAndSpeaker\000SpeakerAndHandset\000";
    static const int32_t values[] = {
        KEYAPISDEVICEV1PlayStartTask_PlayType_PlayTypeUnknown,
        KEYAPISDEVICEV1PlayStartTask_PlayType_HandsetOnly,
        KEYAPISDEVICEV1PlayStartTask_PlayType_SpeakerOnly,
        KEYAPISDEVICEV1PlayStartTask_PlayType_HandsetAndSpeaker,
        KEYAPISDEVICEV1PlayStartTask_PlayType_SpeakerAndHandset,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISDEVICEV1PlayStartTask_PlayType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISDEVICEV1PlayStartTask_PlayType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISDEVICEV1PlayStartTask_PlayType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISDEVICEV1PlayStartTask_PlayType_PlayTypeUnknown:
    case KEYAPISDEVICEV1PlayStartTask_PlayType_HandsetOnly:
    case KEYAPISDEVICEV1PlayStartTask_PlayType_SpeakerOnly:
    case KEYAPISDEVICEV1PlayStartTask_PlayType_HandsetAndSpeaker:
    case KEYAPISDEVICEV1PlayStartTask_PlayType_SpeakerAndHandset:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISDEVICEV1PrepareStartTask

@implementation KEYAPISDEVICEV1PrepareStartTask

@dynamic requestId;
@dynamic soundFileUri;
@dynamic deviceId;
@dynamic tactPlayDuration;
@dynamic tactRepeatCount;
@dynamic playRepeatCount;
@dynamic playType;

typedef struct KEYAPISDEVICEV1PrepareStartTask__storage_ {
  uint32_t _has_storage_[1];
  int32_t deviceId;
  int32_t tactPlayDuration;
  int32_t tactRepeatCount;
  int32_t playRepeatCount;
  KEYAPISDEVICEV1PrepareStartTask_PlayType playType;
  NSString *requestId;
  NSString *soundFileUri;
} KEYAPISDEVICEV1PrepareStartTask__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "requestId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PrepareStartTask_FieldNumber_RequestId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PrepareStartTask__storage_, requestId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "soundFileUri",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PrepareStartTask_FieldNumber_SoundFileUri,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PrepareStartTask__storage_, soundFileUri),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "deviceId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PrepareStartTask_FieldNumber_DeviceId,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PrepareStartTask__storage_, deviceId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "tactPlayDuration",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PrepareStartTask_FieldNumber_TactPlayDuration,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PrepareStartTask__storage_, tactPlayDuration),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "tactRepeatCount",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PrepareStartTask_FieldNumber_TactRepeatCount,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PrepareStartTask__storage_, tactRepeatCount),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "playRepeatCount",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PrepareStartTask_FieldNumber_PlayRepeatCount,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PrepareStartTask__storage_, playRepeatCount),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "playType",
        .dataTypeSpecific.enumDescFunc = KEYAPISDEVICEV1PrepareStartTask_PlayType_EnumDescriptor,
        .number = KEYAPISDEVICEV1PrepareStartTask_FieldNumber_PlayType,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PrepareStartTask__storage_, playType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1PrepareStartTask)
                                   messageName:@"PrepareStartTask"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceEventAlertV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1PrepareStartTask__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

int32_t KEYAPISDEVICEV1PrepareStartTask_PlayType_RawValue(KEYAPISDEVICEV1PrepareStartTask *message) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1PrepareStartTask descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDEVICEV1PrepareStartTask_FieldNumber_PlayType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISDEVICEV1PrepareStartTask_PlayType_RawValue(KEYAPISDEVICEV1PrepareStartTask *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1PrepareStartTask descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDEVICEV1PrepareStartTask_FieldNumber_PlayType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISDEVICEV1PrepareStopTask

@implementation KEYAPISDEVICEV1PrepareStopTask

@dynamic requestId;
@dynamic deviceId;

typedef struct KEYAPISDEVICEV1PrepareStopTask__storage_ {
  uint32_t _has_storage_[1];
  int32_t deviceId;
  NSString *requestId;
} KEYAPISDEVICEV1PrepareStopTask__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "requestId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PrepareStopTask_FieldNumber_RequestId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PrepareStopTask__storage_, requestId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "deviceId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PrepareStopTask_FieldNumber_DeviceId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PrepareStopTask__storage_, deviceId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1PrepareStopTask)
                                   messageName:@"PrepareStopTask"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceEventAlertV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1PrepareStopTask__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISDEVICEV1PlayStartTask

@implementation KEYAPISDEVICEV1PlayStartTask

@dynamic requestId;
@dynamic deviceId;
@dynamic soundFileUri;
@dynamic ipAddress;
@dynamic hasPort, port;
@dynamic model;
@dynamic tactPlayDuration;
@dynamic tactRepeatCount;
@dynamic playRepeatCount;
@dynamic playType;
@dynamic hasLogin, login;
@dynamic hasPassword, password;

typedef struct KEYAPISDEVICEV1PlayStartTask__storage_ {
  uint32_t _has_storage_[1];
  int32_t deviceId;
  int32_t tactPlayDuration;
  int32_t tactRepeatCount;
  int32_t playRepeatCount;
  KEYAPISDEVICEV1PlayStartTask_PlayType playType;
  NSString *requestId;
  NSString *soundFileUri;
  NSString *ipAddress;
  GPBInt32Value *port;
  NSString *model;
  GPBStringValue *login;
  GPBStringValue *password;
} KEYAPISDEVICEV1PlayStartTask__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "requestId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PlayStartTask_FieldNumber_RequestId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStartTask__storage_, requestId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "deviceId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PlayStartTask_FieldNumber_DeviceId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStartTask__storage_, deviceId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "soundFileUri",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PlayStartTask_FieldNumber_SoundFileUri,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStartTask__storage_, soundFileUri),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "ipAddress",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PlayStartTask_FieldNumber_IpAddress,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStartTask__storage_, ipAddress),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "port",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISDEVICEV1PlayStartTask_FieldNumber_Port,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStartTask__storage_, port),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "model",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PlayStartTask_FieldNumber_Model,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStartTask__storage_, model),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "tactPlayDuration",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PlayStartTask_FieldNumber_TactPlayDuration,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStartTask__storage_, tactPlayDuration),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "tactRepeatCount",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PlayStartTask_FieldNumber_TactRepeatCount,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStartTask__storage_, tactRepeatCount),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "playRepeatCount",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PlayStartTask_FieldNumber_PlayRepeatCount,
        .hasIndex = 8,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStartTask__storage_, playRepeatCount),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "playType",
        .dataTypeSpecific.enumDescFunc = KEYAPISDEVICEV1PlayStartTask_PlayType_EnumDescriptor,
        .number = KEYAPISDEVICEV1PlayStartTask_FieldNumber_PlayType,
        .hasIndex = 9,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStartTask__storage_, playType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "login",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISDEVICEV1PlayStartTask_FieldNumber_Login,
        .hasIndex = 10,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStartTask__storage_, login),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "password",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISDEVICEV1PlayStartTask_FieldNumber_Password,
        .hasIndex = 11,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStartTask__storage_, password),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1PlayStartTask)
                                   messageName:@"PlayStartTask"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceEventAlertV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1PlayStartTask__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

int32_t KEYAPISDEVICEV1PlayStartTask_PlayType_RawValue(KEYAPISDEVICEV1PlayStartTask *message) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1PlayStartTask descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDEVICEV1PlayStartTask_FieldNumber_PlayType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISDEVICEV1PlayStartTask_PlayType_RawValue(KEYAPISDEVICEV1PlayStartTask *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1PlayStartTask descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDEVICEV1PlayStartTask_FieldNumber_PlayType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISDEVICEV1PlayStopTask

@implementation KEYAPISDEVICEV1PlayStopTask

@dynamic requestId;
@dynamic deviceId;
@dynamic ipAddress;
@dynamic hasPort, port;
@dynamic model;
@dynamic hasLogin, login;
@dynamic hasPassword, password;

typedef struct KEYAPISDEVICEV1PlayStopTask__storage_ {
  uint32_t _has_storage_[1];
  int32_t deviceId;
  NSString *requestId;
  NSString *ipAddress;
  GPBInt32Value *port;
  NSString *model;
  GPBStringValue *login;
  GPBStringValue *password;
} KEYAPISDEVICEV1PlayStopTask__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "requestId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PlayStopTask_FieldNumber_RequestId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStopTask__storage_, requestId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "deviceId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PlayStopTask_FieldNumber_DeviceId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStopTask__storage_, deviceId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "ipAddress",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PlayStopTask_FieldNumber_IpAddress,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStopTask__storage_, ipAddress),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "port",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISDEVICEV1PlayStopTask_FieldNumber_Port,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStopTask__storage_, port),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "model",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PlayStopTask_FieldNumber_Model,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStopTask__storage_, model),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "login",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISDEVICEV1PlayStopTask_FieldNumber_Login,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStopTask__storage_, login),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "password",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISDEVICEV1PlayStopTask_FieldNumber_Password,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PlayStopTask__storage_, password),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1PlayStopTask)
                                   messageName:@"PlayStopTask"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceEventAlertV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1PlayStopTask__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end


#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
