// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/device/v1/keyapis_device_trunk_config.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/KeyapisDeviceTrunkConfig.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "keyapis/device/v1/KeyapisDeviceDeviceV1.pbobjc.h"
#import "google/api/Visibility.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(GPBBoolValue);
GPBObjCClassDeclaration(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISDEVICEV1ValidationError);
GPBObjCClassDeclaration(KEYAPISDIALV1DeleteTrunkConfigRequest);
GPBObjCClassDeclaration(KEYAPISDIALV1DeleteTrunkConfigResponse);
GPBObjCClassDeclaration(KEYAPISDIALV1DeleteTrunkConfigResponse_Error);
GPBObjCClassDeclaration(KEYAPISDIALV1GetTrunkConfigCountRequest);
GPBObjCClassDeclaration(KEYAPISDIALV1GetTrunkConfigCountResponse);
GPBObjCClassDeclaration(KEYAPISDIALV1GetTrunkConfigCountResponse_Error);
GPBObjCClassDeclaration(KEYAPISDIALV1GetTrunkConfigListRequest);
GPBObjCClassDeclaration(KEYAPISDIALV1GetTrunkConfigListResponse);
GPBObjCClassDeclaration(KEYAPISDIALV1GetTrunkConfigListResponse_Error);
GPBObjCClassDeclaration(KEYAPISDIALV1GetTrunkConfigRequest);
GPBObjCClassDeclaration(KEYAPISDIALV1GetTrunkConfigResponse);
GPBObjCClassDeclaration(KEYAPISDIALV1GetTrunkConfigResponse_Error);
GPBObjCClassDeclaration(KEYAPISDIALV1PostTrunkConfigRequest);
GPBObjCClassDeclaration(KEYAPISDIALV1PostTrunkConfigResponse);
GPBObjCClassDeclaration(KEYAPISDIALV1PostTrunkConfigResponse_Error);
GPBObjCClassDeclaration(KEYAPISDIALV1PostTrunkConfigRestoreRequest);
GPBObjCClassDeclaration(KEYAPISDIALV1PostTrunkConfigRestoreResponse);
GPBObjCClassDeclaration(KEYAPISDIALV1PostTrunkConfigRestoreResponse_Error);
GPBObjCClassDeclaration(KEYAPISDIALV1TrunkConfig);
GPBObjCClassDeclaration(KEYAPISDIALV1TrunkConfigFilter);
GPBObjCClassDeclaration(KEYAPISDIALV1TrunkConfigPaging);
GPBObjCClassDeclaration(KEYAPISDIALV1TrunkConfig_SavingError);
GPBObjCClassDeclaration(KEYAPISDIALV1TrunkConfig_SavingError_Conflict);

#pragma mark - KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot

@implementation KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot

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

@end

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

#pragma mark - Enum KEYAPISDIALV1TrunkConfigPaging_OrderByType

GPBEnumDescriptor *KEYAPISDIALV1TrunkConfigPaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000Id\000ChangedAt\000CreatedA"
        "t\000";
    static const int32_t values[] = {
        KEYAPISDIALV1TrunkConfigPaging_OrderByType_OrderByTypeUnknown,
        KEYAPISDIALV1TrunkConfigPaging_OrderByType_Id,
        KEYAPISDIALV1TrunkConfigPaging_OrderByType_ChangedAt,
        KEYAPISDIALV1TrunkConfigPaging_OrderByType_CreatedAt,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISDIALV1TrunkConfigPaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISDIALV1TrunkConfigPaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISDIALV1TrunkConfigPaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISDIALV1TrunkConfigPaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISDIALV1TrunkConfigPaging_OrderByType_Id:
    case KEYAPISDIALV1TrunkConfigPaging_OrderByType_ChangedAt:
    case KEYAPISDIALV1TrunkConfigPaging_OrderByType_CreatedAt:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISDIALV1TrunkConfigPaging_DirectionType

GPBEnumDescriptor *KEYAPISDIALV1TrunkConfigPaging_DirectionType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "DirectionTypeUnknown\000Desc\000Asc\000";
    static const int32_t values[] = {
        KEYAPISDIALV1TrunkConfigPaging_DirectionType_DirectionTypeUnknown,
        KEYAPISDIALV1TrunkConfigPaging_DirectionType_Desc,
        KEYAPISDIALV1TrunkConfigPaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISDIALV1TrunkConfigPaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISDIALV1TrunkConfigPaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISDIALV1TrunkConfigPaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISDIALV1TrunkConfigPaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISDIALV1TrunkConfigPaging_DirectionType_Desc:
    case KEYAPISDIALV1TrunkConfigPaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISDIALV1TrunkConfig

@implementation KEYAPISDIALV1TrunkConfig

@dynamic id_p;
@dynamic cityOrponId;
@dynamic deviceSipTrunkSipType;
@dynamic ipAddress;
@dynamic port;
@dynamic hasCreatedAt, createdAt;
@dynamic hasChangedAt, changedAt;
@dynamic hasDeletedAt, deletedAt;

typedef struct KEYAPISDIALV1TrunkConfig__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISDEVICEV1Device_SipTrunk_SipType deviceSipTrunkSipType;
  int32_t port;
  NSString *id_p;
  NSString *ipAddress;
  GPBTimestamp *createdAt;
  GPBTimestamp *changedAt;
  GPBTimestamp *deletedAt;
  int64_t cityOrponId;
} KEYAPISDIALV1TrunkConfig__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 = KEYAPISDIALV1TrunkConfig_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfig__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "cityOrponId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDIALV1TrunkConfig_FieldNumber_CityOrponId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfig__storage_, cityOrponId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "deviceSipTrunkSipType",
        .dataTypeSpecific.enumDescFunc = KEYAPISDEVICEV1Device_SipTrunk_SipType_EnumDescriptor,
        .number = KEYAPISDIALV1TrunkConfig_FieldNumber_DeviceSipTrunkSipType,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfig__storage_, deviceSipTrunkSipType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "ipAddress",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDIALV1TrunkConfig_FieldNumber_IpAddress,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfig__storage_, ipAddress),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "port",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDIALV1TrunkConfig_FieldNumber_Port,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfig__storage_, port),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "createdAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISDIALV1TrunkConfig_FieldNumber_CreatedAt,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfig__storage_, createdAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "changedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISDIALV1TrunkConfig_FieldNumber_ChangedAt,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfig__storage_, changedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "deletedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISDIALV1TrunkConfig_FieldNumber_DeletedAt,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfig__storage_, deletedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1TrunkConfig)
                                   messageName:@"TrunkConfig"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1TrunkConfig__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 KEYAPISDIALV1TrunkConfig_DeviceSipTrunkSipType_RawValue(KEYAPISDIALV1TrunkConfig *message) {
  GPBDescriptor *descriptor = [KEYAPISDIALV1TrunkConfig descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDIALV1TrunkConfig_FieldNumber_DeviceSipTrunkSipType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISDIALV1TrunkConfig_DeviceSipTrunkSipType_RawValue(KEYAPISDIALV1TrunkConfig *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISDIALV1TrunkConfig descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDIALV1TrunkConfig_FieldNumber_DeviceSipTrunkSipType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISDIALV1TrunkConfig_SavingError

@implementation KEYAPISDIALV1TrunkConfig_SavingError

@dynamic reasonOneOfCase;
@dynamic conflict;

typedef struct KEYAPISDIALV1TrunkConfig_SavingError__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDIALV1TrunkConfig_SavingError_Conflict *conflict;
} KEYAPISDIALV1TrunkConfig_SavingError__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 = "conflict",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDIALV1TrunkConfig_SavingError_Conflict),
        .number = KEYAPISDIALV1TrunkConfig_SavingError_FieldNumber_Conflict,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfig_SavingError__storage_, conflict),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1TrunkConfig_SavingError)
                                   messageName:@"SavingError"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1TrunkConfig_SavingError__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(KEYAPISDIALV1TrunkConfig)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISDIALV1TrunkConfig_SavingError_Conflict


typedef struct KEYAPISDIALV1TrunkConfig_SavingError_Conflict__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISDIALV1TrunkConfig_SavingError_Conflict__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();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1TrunkConfig_SavingError_Conflict)
                                   messageName:@"Conflict"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISDIALV1TrunkConfig_SavingError_Conflict__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISDIALV1TrunkConfig_SavingError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISDIALV1TrunkConfigFilter

@implementation KEYAPISDIALV1TrunkConfigFilter

@dynamic cityOrponIdsArray, cityOrponIdsArray_Count;
@dynamic ipAddressesArray, ipAddressesArray_Count;
@dynamic hasShowDeleted, showDeleted;

typedef struct KEYAPISDIALV1TrunkConfigFilter__storage_ {
  uint32_t _has_storage_[1];
  GPBInt64Array *cityOrponIdsArray;
  NSMutableArray *ipAddressesArray;
  GPBBoolValue *showDeleted;
} KEYAPISDIALV1TrunkConfigFilter__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 = "cityOrponIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDIALV1TrunkConfigFilter_FieldNumber_CityOrponIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfigFilter__storage_, cityOrponIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "ipAddressesArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDIALV1TrunkConfigFilter_FieldNumber_IpAddressesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfigFilter__storage_, ipAddressesArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "showDeleted",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBBoolValue),
        .number = KEYAPISDIALV1TrunkConfigFilter_FieldNumber_ShowDeleted,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfigFilter__storage_, showDeleted),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1TrunkConfigFilter)
                                   messageName:@"TrunkConfigFilter"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1TrunkConfigFilter__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 - KEYAPISDIALV1TrunkConfigPaging

@implementation KEYAPISDIALV1TrunkConfigPaging

@dynamic orderByType;
@dynamic directionType;
@dynamic limit;
@dynamic offset;

typedef struct KEYAPISDIALV1TrunkConfigPaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISDIALV1TrunkConfigPaging_OrderByType orderByType;
  KEYAPISDIALV1TrunkConfigPaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISDIALV1TrunkConfigPaging__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 = "orderByType",
        .dataTypeSpecific.enumDescFunc = KEYAPISDIALV1TrunkConfigPaging_OrderByType_EnumDescriptor,
        .number = KEYAPISDIALV1TrunkConfigPaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfigPaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISDIALV1TrunkConfigPaging_DirectionType_EnumDescriptor,
        .number = KEYAPISDIALV1TrunkConfigPaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfigPaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDIALV1TrunkConfigPaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfigPaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDIALV1TrunkConfigPaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1TrunkConfigPaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1TrunkConfigPaging)
                                   messageName:@"TrunkConfigPaging"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1TrunkConfigPaging__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 KEYAPISDIALV1TrunkConfigPaging_OrderByType_RawValue(KEYAPISDIALV1TrunkConfigPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISDIALV1TrunkConfigPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDIALV1TrunkConfigPaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISDIALV1TrunkConfigPaging_OrderByType_RawValue(KEYAPISDIALV1TrunkConfigPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISDIALV1TrunkConfigPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDIALV1TrunkConfigPaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISDIALV1TrunkConfigPaging_DirectionType_RawValue(KEYAPISDIALV1TrunkConfigPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISDIALV1TrunkConfigPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDIALV1TrunkConfigPaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISDIALV1TrunkConfigPaging_DirectionType_RawValue(KEYAPISDIALV1TrunkConfigPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISDIALV1TrunkConfigPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDIALV1TrunkConfigPaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISDIALV1PostTrunkConfigRequest

@implementation KEYAPISDIALV1PostTrunkConfigRequest

@dynamic hasData_p, data_p;

typedef struct KEYAPISDIALV1PostTrunkConfigRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISDIALV1TrunkConfig *data_p;
} KEYAPISDIALV1PostTrunkConfigRequest__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(KEYAPISDIALV1TrunkConfig),
        .number = KEYAPISDIALV1PostTrunkConfigRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1PostTrunkConfigRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1PostTrunkConfigRequest)
                                   messageName:@"PostTrunkConfigRequest"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1PostTrunkConfigRequest__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 - KEYAPISDIALV1PostTrunkConfigResponse

@implementation KEYAPISDIALV1PostTrunkConfigResponse

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

typedef struct KEYAPISDIALV1PostTrunkConfigResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDIALV1TrunkConfig *data_p;
  KEYAPISDIALV1PostTrunkConfigResponse_Error *error;
} KEYAPISDIALV1PostTrunkConfigResponse__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(KEYAPISDIALV1TrunkConfig),
        .number = KEYAPISDIALV1PostTrunkConfigResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1PostTrunkConfigResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDIALV1PostTrunkConfigResponse_Error),
        .number = KEYAPISDIALV1PostTrunkConfigResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1PostTrunkConfigResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1PostTrunkConfigResponse)
                                   messageName:@"PostTrunkConfigResponse"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1PostTrunkConfigResponse__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 KEYAPISDIALV1PostTrunkConfigResponse_ClearTypeOneOfCase(KEYAPISDIALV1PostTrunkConfigResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISDIALV1PostTrunkConfigResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISDIALV1PostTrunkConfigResponse_Error

@implementation KEYAPISDIALV1PostTrunkConfigResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;
@dynamic saving;

typedef struct KEYAPISDIALV1PostTrunkConfigResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDEVICEV1ValidationError *validation;
  KEYAPISDIALV1TrunkConfig_SavingError *saving;
} KEYAPISDIALV1PostTrunkConfigResponse_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(KEYAPISDEVICEV1ValidationError),
        .number = KEYAPISDIALV1PostTrunkConfigResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1PostTrunkConfigResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "saving",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDIALV1TrunkConfig_SavingError),
        .number = KEYAPISDIALV1PostTrunkConfigResponse_Error_FieldNumber_Saving,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1PostTrunkConfigResponse_Error__storage_, saving),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1PostTrunkConfigResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1PostTrunkConfigResponse_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(KEYAPISDIALV1PostTrunkConfigResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISDIALV1GetTrunkConfigRequest

@dynamic id_p;

typedef struct KEYAPISDIALV1GetTrunkConfigRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
} KEYAPISDIALV1GetTrunkConfigRequest__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 = KEYAPISDIALV1GetTrunkConfigRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetTrunkConfigRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1GetTrunkConfigRequest)
                                   messageName:@"GetTrunkConfigRequest"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1GetTrunkConfigRequest__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 - KEYAPISDIALV1GetTrunkConfigResponse

@implementation KEYAPISDIALV1GetTrunkConfigResponse

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

typedef struct KEYAPISDIALV1GetTrunkConfigResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDIALV1TrunkConfig *data_p;
  KEYAPISDIALV1GetTrunkConfigResponse_Error *error;
} KEYAPISDIALV1GetTrunkConfigResponse__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(KEYAPISDIALV1TrunkConfig),
        .number = KEYAPISDIALV1GetTrunkConfigResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetTrunkConfigResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDIALV1GetTrunkConfigResponse_Error),
        .number = KEYAPISDIALV1GetTrunkConfigResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetTrunkConfigResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1GetTrunkConfigResponse)
                                   messageName:@"GetTrunkConfigResponse"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1GetTrunkConfigResponse__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 KEYAPISDIALV1GetTrunkConfigResponse_ClearTypeOneOfCase(KEYAPISDIALV1GetTrunkConfigResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISDIALV1GetTrunkConfigResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISDIALV1GetTrunkConfigResponse_Error

@implementation KEYAPISDIALV1GetTrunkConfigResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISDIALV1GetTrunkConfigResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDEVICEV1ValidationError *validation;
} KEYAPISDIALV1GetTrunkConfigResponse_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(KEYAPISDEVICEV1ValidationError),
        .number = KEYAPISDIALV1GetTrunkConfigResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetTrunkConfigResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1GetTrunkConfigResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1GetTrunkConfigResponse_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(KEYAPISDIALV1GetTrunkConfigResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISDIALV1GetTrunkConfigListRequest

@dynamic paginationOneOfCase;
@dynamic hasFilter, filter;
@dynamic paging;

typedef struct KEYAPISDIALV1GetTrunkConfigListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDIALV1TrunkConfigFilter *filter;
  KEYAPISDIALV1TrunkConfigPaging *paging;
} KEYAPISDIALV1GetTrunkConfigListRequest__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 = "filter",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDIALV1TrunkConfigFilter),
        .number = KEYAPISDIALV1GetTrunkConfigListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetTrunkConfigListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDIALV1TrunkConfigPaging),
        .number = KEYAPISDIALV1GetTrunkConfigListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetTrunkConfigListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1GetTrunkConfigListRequest)
                                   messageName:@"GetTrunkConfigListRequest"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1GetTrunkConfigListRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "pagination",
    };
    [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 KEYAPISDIALV1GetTrunkConfigListRequest_ClearPaginationOneOfCase(KEYAPISDIALV1GetTrunkConfigListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISDIALV1GetTrunkConfigListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISDIALV1GetTrunkConfigListResponse

@implementation KEYAPISDIALV1GetTrunkConfigListResponse

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

typedef struct KEYAPISDIALV1GetTrunkConfigListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDIALV1TrunkConfig *data_p;
  KEYAPISDIALV1GetTrunkConfigListResponse_Error *error;
} KEYAPISDIALV1GetTrunkConfigListResponse__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(KEYAPISDIALV1TrunkConfig),
        .number = KEYAPISDIALV1GetTrunkConfigListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetTrunkConfigListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDIALV1GetTrunkConfigListResponse_Error),
        .number = KEYAPISDIALV1GetTrunkConfigListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetTrunkConfigListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1GetTrunkConfigListResponse)
                                   messageName:@"GetTrunkConfigListResponse"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1GetTrunkConfigListResponse__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 KEYAPISDIALV1GetTrunkConfigListResponse_ClearTypeOneOfCase(KEYAPISDIALV1GetTrunkConfigListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISDIALV1GetTrunkConfigListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISDIALV1GetTrunkConfigListResponse_Error

@implementation KEYAPISDIALV1GetTrunkConfigListResponse_Error

@dynamic hasValidationError, validationError;

typedef struct KEYAPISDIALV1GetTrunkConfigListResponse_Error__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISDEVICEV1ValidationError *validationError;
} KEYAPISDIALV1GetTrunkConfigListResponse_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 = "validationError",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDEVICEV1ValidationError),
        .number = KEYAPISDIALV1GetTrunkConfigListResponse_Error_FieldNumber_ValidationError,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetTrunkConfigListResponse_Error__storage_, validationError),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1GetTrunkConfigListResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1GetTrunkConfigListResponse_Error__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISDIALV1GetTrunkConfigListResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISDIALV1GetTrunkConfigCountRequest

@implementation KEYAPISDIALV1GetTrunkConfigCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISDIALV1GetTrunkConfigCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISDIALV1TrunkConfigFilter *filter;
} KEYAPISDIALV1GetTrunkConfigCountRequest__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 = "filter",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDIALV1TrunkConfigFilter),
        .number = KEYAPISDIALV1GetTrunkConfigCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetTrunkConfigCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1GetTrunkConfigCountRequest)
                                   messageName:@"GetTrunkConfigCountRequest"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1GetTrunkConfigCountRequest__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 - KEYAPISDIALV1GetTrunkConfigCountResponse

@implementation KEYAPISDIALV1GetTrunkConfigCountResponse

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

typedef struct KEYAPISDIALV1GetTrunkConfigCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
  KEYAPISDIALV1GetTrunkConfigCountResponse_Error *error;
} KEYAPISDIALV1GetTrunkConfigCountResponse__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 = Nil,
        .number = KEYAPISDIALV1GetTrunkConfigCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetTrunkConfigCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDIALV1GetTrunkConfigCountResponse_Error),
        .number = KEYAPISDIALV1GetTrunkConfigCountResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetTrunkConfigCountResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1GetTrunkConfigCountResponse)
                                   messageName:@"GetTrunkConfigCountResponse"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1GetTrunkConfigCountResponse__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 KEYAPISDIALV1GetTrunkConfigCountResponse_ClearTypeOneOfCase(KEYAPISDIALV1GetTrunkConfigCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISDIALV1GetTrunkConfigCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISDIALV1GetTrunkConfigCountResponse_Error

@implementation KEYAPISDIALV1GetTrunkConfigCountResponse_Error

@dynamic hasValidationError, validationError;

typedef struct KEYAPISDIALV1GetTrunkConfigCountResponse_Error__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISDEVICEV1ValidationError *validationError;
} KEYAPISDIALV1GetTrunkConfigCountResponse_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 = "validationError",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDEVICEV1ValidationError),
        .number = KEYAPISDIALV1GetTrunkConfigCountResponse_Error_FieldNumber_ValidationError,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetTrunkConfigCountResponse_Error__storage_, validationError),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1GetTrunkConfigCountResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1GetTrunkConfigCountResponse_Error__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISDIALV1GetTrunkConfigCountResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISDIALV1DeleteTrunkConfigRequest

@implementation KEYAPISDIALV1DeleteTrunkConfigRequest

@dynamic id_p;

typedef struct KEYAPISDIALV1DeleteTrunkConfigRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
} KEYAPISDIALV1DeleteTrunkConfigRequest__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 = KEYAPISDIALV1DeleteTrunkConfigRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1DeleteTrunkConfigRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1DeleteTrunkConfigRequest)
                                   messageName:@"DeleteTrunkConfigRequest"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1DeleteTrunkConfigRequest__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 - KEYAPISDIALV1DeleteTrunkConfigResponse

@implementation KEYAPISDIALV1DeleteTrunkConfigResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISDIALV1DeleteTrunkConfigResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDIALV1DeleteTrunkConfigResponse_Error *error;
} KEYAPISDIALV1DeleteTrunkConfigResponse__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(KEYAPISDIALV1DeleteTrunkConfigResponse_Error),
        .number = KEYAPISDIALV1DeleteTrunkConfigResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1DeleteTrunkConfigResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1DeleteTrunkConfigResponse)
                                   messageName:@"DeleteTrunkConfigResponse"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1DeleteTrunkConfigResponse__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 KEYAPISDIALV1DeleteTrunkConfigResponse_ClearTypeOneOfCase(KEYAPISDIALV1DeleteTrunkConfigResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISDIALV1DeleteTrunkConfigResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISDIALV1DeleteTrunkConfigResponse_Error

@implementation KEYAPISDIALV1DeleteTrunkConfigResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISDIALV1DeleteTrunkConfigResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDEVICEV1ValidationError *validation;
} KEYAPISDIALV1DeleteTrunkConfigResponse_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(KEYAPISDEVICEV1ValidationError),
        .number = KEYAPISDIALV1DeleteTrunkConfigResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1DeleteTrunkConfigResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1DeleteTrunkConfigResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1DeleteTrunkConfigResponse_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(KEYAPISDIALV1DeleteTrunkConfigResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISDIALV1PostTrunkConfigRestoreRequest

@dynamic id_p;

typedef struct KEYAPISDIALV1PostTrunkConfigRestoreRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
} KEYAPISDIALV1PostTrunkConfigRestoreRequest__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 = KEYAPISDIALV1PostTrunkConfigRestoreRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1PostTrunkConfigRestoreRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1PostTrunkConfigRestoreRequest)
                                   messageName:@"PostTrunkConfigRestoreRequest"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1PostTrunkConfigRestoreRequest__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 - KEYAPISDIALV1PostTrunkConfigRestoreResponse

@implementation KEYAPISDIALV1PostTrunkConfigRestoreResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISDIALV1PostTrunkConfigRestoreResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDIALV1PostTrunkConfigRestoreResponse_Error *error;
} KEYAPISDIALV1PostTrunkConfigRestoreResponse__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(KEYAPISDIALV1PostTrunkConfigRestoreResponse_Error),
        .number = KEYAPISDIALV1PostTrunkConfigRestoreResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1PostTrunkConfigRestoreResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1PostTrunkConfigRestoreResponse)
                                   messageName:@"PostTrunkConfigRestoreResponse"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1PostTrunkConfigRestoreResponse__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 KEYAPISDIALV1PostTrunkConfigRestoreResponse_ClearTypeOneOfCase(KEYAPISDIALV1PostTrunkConfigRestoreResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISDIALV1PostTrunkConfigRestoreResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISDIALV1PostTrunkConfigRestoreResponse_Error

@implementation KEYAPISDIALV1PostTrunkConfigRestoreResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISDIALV1PostTrunkConfigRestoreResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDEVICEV1ValidationError *validation;
} KEYAPISDIALV1PostTrunkConfigRestoreResponse_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(KEYAPISDEVICEV1ValidationError),
        .number = KEYAPISDIALV1PostTrunkConfigRestoreResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1PostTrunkConfigRestoreResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1PostTrunkConfigRestoreResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISDIALV1KeyapisDeviceTrunkConfigRoot_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1PostTrunkConfigRestoreResponse_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(KEYAPISDIALV1PostTrunkConfigRestoreResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
