// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/subscription/v1/keyapis_subscription_events_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 "keyapis/subscription/v1/KeyapisSubscriptionEventsV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "keyapis/subscription/v1/KeyapisSubscriptionPrivilegeV1.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(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1CmsInitTask);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1CommercialOfferCmsAvailableTask);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1CommercialOfferCmsUnavailableTask);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask);

#pragma mark - KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionEventsV1Root

@implementation KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionEventsV1Root

+ (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:[GAPIAnnotationsRoot extensionRegistry]];
    [registry addExtensions:[GAPIFieldBehaviorRoot extensionRegistry]];
  }
  return registry;
}

@end

static GPBFileDescription KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionEventsV1Root_FileDescription = {
  .package = "keyapis.subscription.v1",
  .prefix = "KEYAPISSUBSCRIPTIONV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - KEYAPISSUBSCRIPTIONV1CommercialOfferCmsAvailableTask

@implementation KEYAPISSUBSCRIPTIONV1CommercialOfferCmsAvailableTask

@dynamic requestId;
@dynamic orponId;
@dynamic privilegedRoomNumbersArray, privilegedRoomNumbersArray_Count;

typedef struct KEYAPISSUBSCRIPTIONV1CommercialOfferCmsAvailableTask__storage_ {
  uint32_t _has_storage_[1];
  NSString *requestId;
  NSMutableArray *privilegedRoomNumbersArray;
  int64_t orponId;
} KEYAPISSUBSCRIPTIONV1CommercialOfferCmsAvailableTask__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 = KEYAPISSUBSCRIPTIONV1CommercialOfferCmsAvailableTask_FieldNumber_RequestId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1CommercialOfferCmsAvailableTask__storage_, requestId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "orponId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISSUBSCRIPTIONV1CommercialOfferCmsAvailableTask_FieldNumber_OrponId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1CommercialOfferCmsAvailableTask__storage_, orponId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "privilegedRoomNumbersArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISSUBSCRIPTIONV1CommercialOfferCmsAvailableTask_FieldNumber_PrivilegedRoomNumbersArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1CommercialOfferCmsAvailableTask__storage_, privilegedRoomNumbersArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1CommercialOfferCmsAvailableTask)
                                   messageName:@"CommercialOfferCmsAvailableTask"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionEventsV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1CommercialOfferCmsAvailableTask__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 - KEYAPISSUBSCRIPTIONV1CommercialOfferCmsUnavailableTask

@implementation KEYAPISSUBSCRIPTIONV1CommercialOfferCmsUnavailableTask

@dynamic requestId;
@dynamic orponId;

typedef struct KEYAPISSUBSCRIPTIONV1CommercialOfferCmsUnavailableTask__storage_ {
  uint32_t _has_storage_[1];
  NSString *requestId;
  int64_t orponId;
} KEYAPISSUBSCRIPTIONV1CommercialOfferCmsUnavailableTask__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 = KEYAPISSUBSCRIPTIONV1CommercialOfferCmsUnavailableTask_FieldNumber_RequestId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1CommercialOfferCmsUnavailableTask__storage_, requestId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "orponId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISSUBSCRIPTIONV1CommercialOfferCmsUnavailableTask_FieldNumber_OrponId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1CommercialOfferCmsUnavailableTask__storage_, orponId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1CommercialOfferCmsUnavailableTask)
                                   messageName:@"CommercialOfferCmsUnavailableTask"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionEventsV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1CommercialOfferCmsUnavailableTask__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 - KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask

@implementation KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask

@dynamic requestId;
@dynamic orponId;
@dynamic roomNumber;
@dynamic privilegeType;
@dynamic stateType;
@dynamic previousStateType;
@dynamic hasUpdatedAt, updatedAt;

typedef struct KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISSUBSCRIPTIONV1Privilege_Type privilegeType;
  KEYAPISSUBSCRIPTIONV1Privilege_StateType stateType;
  KEYAPISSUBSCRIPTIONV1Privilege_StateType previousStateType;
  NSString *requestId;
  NSString *roomNumber;
  GPBTimestamp *updatedAt;
  int64_t orponId;
} KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask__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 = KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_FieldNumber_RequestId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask__storage_, requestId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "orponId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_FieldNumber_OrponId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask__storage_, orponId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "roomNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_FieldNumber_RoomNumber,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask__storage_, roomNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "privilegeType",
        .dataTypeSpecific.enumDescFunc = KEYAPISSUBSCRIPTIONV1Privilege_Type_EnumDescriptor,
        .number = KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_FieldNumber_PrivilegeType,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask__storage_, privilegeType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "stateType",
        .dataTypeSpecific.enumDescFunc = KEYAPISSUBSCRIPTIONV1Privilege_StateType_EnumDescriptor,
        .number = KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_FieldNumber_StateType,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask__storage_, stateType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "previousStateType",
        .dataTypeSpecific.enumDescFunc = KEYAPISSUBSCRIPTIONV1Privilege_StateType_EnumDescriptor,
        .number = KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_FieldNumber_PreviousStateType,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask__storage_, previousStateType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "updatedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_FieldNumber_UpdatedAt,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask__storage_, updatedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask)
                                   messageName:@"PrivilegeStateChangeTask"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionEventsV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask__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 KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_PrivilegeType_RawValue(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_FieldNumber_PrivilegeType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_PrivilegeType_RawValue(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_FieldNumber_PrivilegeType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_StateType_RawValue(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_FieldNumber_StateType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_StateType_RawValue(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_FieldNumber_StateType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_PreviousStateType_RawValue(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_FieldNumber_PreviousStateType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_PreviousStateType_RawValue(KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1PrivilegeStateChangeTask_FieldNumber_PreviousStateType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISSUBSCRIPTIONV1CmsInitTask

@implementation KEYAPISSUBSCRIPTIONV1CmsInitTask

@dynamic requestId;
@dynamic orponsArray, orponsArray_Count;

typedef struct KEYAPISSUBSCRIPTIONV1CmsInitTask__storage_ {
  uint32_t _has_storage_[1];
  NSString *requestId;
  GPBInt64Array *orponsArray;
} KEYAPISSUBSCRIPTIONV1CmsInitTask__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 = KEYAPISSUBSCRIPTIONV1CmsInitTask_FieldNumber_RequestId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1CmsInitTask__storage_, requestId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "orponsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISSUBSCRIPTIONV1CmsInitTask_FieldNumber_OrponsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1CmsInitTask__storage_, orponsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt64,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1CmsInitTask)
                                   messageName:@"CmsInitTask"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionEventsV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1CmsInitTask__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
