// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/access_control/v1/keyapis_access_control_sync_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/access_control/v1/KeyapisAccessControlSyncV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "keyapis/access_control/v1/KeyapisAccessControlAccessControlV1.pbobjc.h"
// @@protoc_insertion_point(imports)

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma clang diagnostic ignored "-Wdirect-ivar-access"
#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(GPBDoubleValue);
GPBObjCClassDeclaration(GPBInt32Value);
GPBObjCClassDeclaration(GPBInt64Value);
GPBObjCClassDeclaration(GPBStringValue);
GPBObjCClassDeclaration(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1BuildingSync);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetSyncBuildingsRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_BuildingList);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PostSyncBuildingRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PostSyncBuildingResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1ValidationError);

#pragma mark - KEYAPISACCESSCONTROLV1KeyapisAccessControlSyncV1Root

@implementation KEYAPISACCESSCONTROLV1KeyapisAccessControlSyncV1Root

+ (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 KEYAPISACCESSCONTROLV1KeyapisAccessControlSyncV1Root_FileDescription = {
  .package = "keyapis.access_control.v1",
  .prefix = "KEYAPISACCESSCONTROLV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - KEYAPISACCESSCONTROLV1BuildingSync

@implementation KEYAPISACCESSCONTROLV1BuildingSync

@dynamic id_p;
@dynamic orpon;
@dynamic city;
@dynamic street;
@dynamic number;
@dynamic cityOrpon;
@dynamic regionOrpon;
@dynamic hasArea, area;
@dynamic hasAreaOrpon, areaOrpon;
@dynamic hasAreaKladr, areaKladr;
@dynamic hasCapitalMarker, capitalMarker;
@dynamic hasCityKladr, cityKladr;
@dynamic hasKladr, kladr;
@dynamic hasFiasLevel, fiasLevel;
@dynamic hasFiasActualityState, fiasActualityState;
@dynamic hasGeoLat, geoLat;
@dynamic hasGeoLon, geoLon;
@dynamic hasOkato, okato;
@dynamic hasOktmo, oktmo;
@dynamic hasPostalCode, postalCode;
@dynamic hasRegion, region;
@dynamic hasRegionKladr, regionKladr;
@dynamic hasStreetKladr, streetKladr;
@dynamic hasStreetOrpon, streetOrpon;
@dynamic hasHouseKladr, houseKladr;

typedef struct KEYAPISACCESSCONTROLV1BuildingSync__storage_ {
  uint32_t _has_storage_[1];
  int32_t id_p;
  NSString *city;
  NSString *street;
  NSString *number;
  GPBStringValue *area;
  GPBInt64Value *areaOrpon;
  GPBStringValue *areaKladr;
  GPBInt32Value *capitalMarker;
  GPBStringValue *cityKladr;
  GPBStringValue *kladr;
  GPBInt32Value *fiasLevel;
  GPBInt32Value *fiasActualityState;
  GPBDoubleValue *geoLat;
  GPBDoubleValue *geoLon;
  GPBInt64Value *okato;
  GPBInt64Value *oktmo;
  GPBInt32Value *postalCode;
  GPBStringValue *region;
  GPBStringValue *regionKladr;
  GPBStringValue *streetKladr;
  GPBInt64Value *streetOrpon;
  GPBStringValue *houseKladr;
  int64_t orpon;
  int64_t cityOrpon;
  int64_t regionOrpon;
} KEYAPISACCESSCONTROLV1BuildingSync__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 = "id_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "orpon",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_Orpon,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, orpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "city",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_City,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, city),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "street",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_Street,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, street),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "number",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_Number,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, number),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "cityOrpon",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_CityOrpon,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, cityOrpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "regionOrpon",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_RegionOrpon,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, regionOrpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "area",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_Area,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, area),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "areaOrpon",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt64Value),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_AreaOrpon,
        .hasIndex = 8,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, areaOrpon),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "areaKladr",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_AreaKladr,
        .hasIndex = 9,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, areaKladr),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "capitalMarker",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_CapitalMarker,
        .hasIndex = 10,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, capitalMarker),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "cityKladr",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_CityKladr,
        .hasIndex = 11,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, cityKladr),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "kladr",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_Kladr,
        .hasIndex = 12,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, kladr),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "fiasLevel",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_FiasLevel,
        .hasIndex = 13,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, fiasLevel),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "fiasActualityState",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_FiasActualityState,
        .hasIndex = 14,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, fiasActualityState),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "geoLat",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBDoubleValue),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_GeoLat,
        .hasIndex = 15,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, geoLat),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "geoLon",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBDoubleValue),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_GeoLon,
        .hasIndex = 16,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, geoLon),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "okato",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt64Value),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_Okato,
        .hasIndex = 17,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, okato),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "oktmo",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt64Value),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_Oktmo,
        .hasIndex = 18,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, oktmo),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "postalCode",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_PostalCode,
        .hasIndex = 19,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, postalCode),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "region",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_Region,
        .hasIndex = 20,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, region),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "regionKladr",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_RegionKladr,
        .hasIndex = 21,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, regionKladr),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "streetKladr",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_StreetKladr,
        .hasIndex = 22,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, streetKladr),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "streetOrpon",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt64Value),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_StreetOrpon,
        .hasIndex = 23,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, streetOrpon),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "houseKladr",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISACCESSCONTROLV1BuildingSync_FieldNumber_HouseKladr,
        .hasIndex = 24,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1BuildingSync__storage_, houseKladr),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1BuildingSync)
                                   messageName:@"BuildingSync"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlSyncV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1BuildingSync__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 - KEYAPISACCESSCONTROLV1PostSyncBuildingRequest

@implementation KEYAPISACCESSCONTROLV1PostSyncBuildingRequest

@dynamic typeOneOfCase;
@dynamic buildingId;
@dynamic data_p;

typedef struct KEYAPISACCESSCONTROLV1PostSyncBuildingRequest__storage_ {
  uint32_t _has_storage_[2];
  int32_t buildingId;
  KEYAPISACCESSCONTROLV1BuildingSync *data_p;
} KEYAPISACCESSCONTROLV1PostSyncBuildingRequest__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 = "buildingId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1PostSyncBuildingRequest_FieldNumber_BuildingId,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostSyncBuildingRequest__storage_, buildingId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1BuildingSync),
        .number = KEYAPISACCESSCONTROLV1PostSyncBuildingRequest_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostSyncBuildingRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostSyncBuildingRequest)
                                   messageName:@"PostSyncBuildingRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlSyncV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PostSyncBuildingRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "type",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1PostSyncBuildingRequest_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1PostSyncBuildingRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PostSyncBuildingRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1PostSyncBuildingResponse

@implementation KEYAPISACCESSCONTROLV1PostSyncBuildingResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1PostSyncBuildingResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_Error *error;
} KEYAPISACCESSCONTROLV1PostSyncBuildingResponse__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 = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_Error),
        .number = KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostSyncBuildingResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostSyncBuildingResponse)
                                   messageName:@"PostSyncBuildingResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlSyncV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PostSyncBuildingResponse__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "type",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1PostSyncBuildingResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PostSyncBuildingResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_Error

@implementation KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_Error__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 = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlSyncV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_Error__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "reason",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostSyncBuildingResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_Error_ClearReasonOneOfCase(KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_Error *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PostSyncBuildingResponse_Error descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetSyncBuildingsRequest

@implementation KEYAPISACCESSCONTROLV1GetSyncBuildingsRequest

@dynamic batchSize;
@dynamic hasLastSyncBeforeAt, lastSyncBeforeAt;

typedef struct KEYAPISACCESSCONTROLV1GetSyncBuildingsRequest__storage_ {
  uint32_t _has_storage_[1];
  int32_t batchSize;
  GPBTimestamp *lastSyncBeforeAt;
} KEYAPISACCESSCONTROLV1GetSyncBuildingsRequest__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 = "batchSize",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1GetSyncBuildingsRequest_FieldNumber_BatchSize,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetSyncBuildingsRequest__storage_, batchSize),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "lastSyncBeforeAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISACCESSCONTROLV1GetSyncBuildingsRequest_FieldNumber_LastSyncBeforeAt,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetSyncBuildingsRequest__storage_, lastSyncBeforeAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetSyncBuildingsRequest)
                                   messageName:@"GetSyncBuildingsRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlSyncV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetSyncBuildingsRequest__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 - KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse

@implementation KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse

@dynamic typeOneOfCase;
@dynamic data_p;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_BuildingList *data_p;
  KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_Error *error;
} KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse__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 = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_BuildingList),
        .number = KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse)
                                   messageName:@"GetSyncBuildingsResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlSyncV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "type",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_BuildingList

@implementation KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_BuildingList

@dynamic buildingsArray, buildingsArray_Count;

typedef struct KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_BuildingList__storage_ {
  uint32_t _has_storage_[1];
  NSMutableArray *buildingsArray;
} KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_BuildingList__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 = "buildingsArray",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1BuildingSync),
        .number = KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_BuildingList_FieldNumber_BuildingsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_BuildingList__storage_, buildingsArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_BuildingList)
                                   messageName:@"BuildingList"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlSyncV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_BuildingList__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_Error

@implementation KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_Error__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 = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlSyncV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_Error__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "reason",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_Error_ClearReasonOneOfCase(KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_Error *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetSyncBuildingsResponse_Error descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
