// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: deviceapis/device/v1/deviceapis_device_concierge_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 "deviceapis/device/v1/DeviceapisDeviceConciergeV1.pbobjc.h"
#import "deviceapis/device/v1/DeviceapisDeviceCommonV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "protoc-gen-openapiv2/options/Annotations.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(DEVICEAPISDEVICEV1ConciergeSettings);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1EditConciergeSettingsRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1EditConciergeSettingsResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1EditConciergeSettingsResponse_Error);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetConciergeSettingsRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetConciergeSettingsResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1ValidationError);
GPBObjCClassDeclaration(GPBFieldMask);

#pragma mark - DEVICEAPISDEVICEV1DeviceapisDeviceConciergeV1Root

@implementation DEVICEAPISDEVICEV1DeviceapisDeviceConciergeV1Root

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

@end

static GPBFileDescription DEVICEAPISDEVICEV1DeviceapisDeviceConciergeV1Root_FileDescription = {
  .package = "deviceapis.device.v1",
  .prefix = "DEVICEAPISDEVICEV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - DEVICEAPISDEVICEV1ConciergeSettings

@implementation DEVICEAPISDEVICEV1ConciergeSettings

@dynamic isConciergeOn;
@dynamic sipInvite;
@dynamic sipServer;

typedef struct DEVICEAPISDEVICEV1ConciergeSettings__storage_ {
  uint32_t _has_storage_[1];
  NSString *sipInvite;
  NSString *sipServer;
} DEVICEAPISDEVICEV1ConciergeSettings__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 = "isConciergeOn",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1ConciergeSettings_FieldNumber_IsConciergeOn,
        .hasIndex = 0,
        .offset = 1,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
      {
        .name = "sipInvite",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1ConciergeSettings_FieldNumber_SipInvite,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1ConciergeSettings__storage_, sipInvite),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "sipServer",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1ConciergeSettings_FieldNumber_SipServer,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1ConciergeSettings__storage_, sipServer),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1ConciergeSettings)
                                   messageName:@"ConciergeSettings"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceConciergeV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1ConciergeSettings__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 - DEVICEAPISDEVICEV1EditConciergeSettingsRequest

@implementation DEVICEAPISDEVICEV1EditConciergeSettingsRequest

@dynamic hasData_p, data_p;
@dynamic hasUpdateMask, updateMask;

typedef struct DEVICEAPISDEVICEV1EditConciergeSettingsRequest__storage_ {
  uint32_t _has_storage_[1];
  DEVICEAPISDEVICEV1ConciergeSettings *data_p;
  GPBFieldMask *updateMask;
} DEVICEAPISDEVICEV1EditConciergeSettingsRequest__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(DEVICEAPISDEVICEV1ConciergeSettings),
        .number = DEVICEAPISDEVICEV1EditConciergeSettingsRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EditConciergeSettingsRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "updateMask",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBFieldMask),
        .number = DEVICEAPISDEVICEV1EditConciergeSettingsRequest_FieldNumber_UpdateMask,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EditConciergeSettingsRequest__storage_, updateMask),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1EditConciergeSettingsRequest)
                                   messageName:@"EditConciergeSettingsRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceConciergeV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1EditConciergeSettingsRequest__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 - DEVICEAPISDEVICEV1EditConciergeSettingsResponse

@implementation DEVICEAPISDEVICEV1EditConciergeSettingsResponse

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

typedef struct DEVICEAPISDEVICEV1EditConciergeSettingsResponse__storage_ {
  uint32_t _has_storage_[2];
  DEVICEAPISDEVICEV1ConciergeSettings *data_p;
  DEVICEAPISDEVICEV1EditConciergeSettingsResponse_Error *error;
} DEVICEAPISDEVICEV1EditConciergeSettingsResponse__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(DEVICEAPISDEVICEV1ConciergeSettings),
        .number = DEVICEAPISDEVICEV1EditConciergeSettingsResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EditConciergeSettingsResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1EditConciergeSettingsResponse_Error),
        .number = DEVICEAPISDEVICEV1EditConciergeSettingsResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EditConciergeSettingsResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1EditConciergeSettingsResponse)
                                   messageName:@"EditConciergeSettingsResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceConciergeV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1EditConciergeSettingsResponse__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 DEVICEAPISDEVICEV1EditConciergeSettingsResponse_ClearTypeOneOfCase(DEVICEAPISDEVICEV1EditConciergeSettingsResponse *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1EditConciergeSettingsResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - DEVICEAPISDEVICEV1EditConciergeSettingsResponse_Error

@implementation DEVICEAPISDEVICEV1EditConciergeSettingsResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation DEVICEAPISDEVICEV1GetConciergeSettingsRequest


typedef struct DEVICEAPISDEVICEV1GetConciergeSettingsRequest__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1GetConciergeSettingsRequest__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(DEVICEAPISDEVICEV1GetConciergeSettingsRequest)
                                   messageName:@"GetConciergeSettingsRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceConciergeV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetConciergeSettingsRequest__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 - DEVICEAPISDEVICEV1GetConciergeSettingsResponse

@implementation DEVICEAPISDEVICEV1GetConciergeSettingsResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct DEVICEAPISDEVICEV1GetConciergeSettingsResponse__storage_ {
  uint32_t _has_storage_[2];
  DEVICEAPISDEVICEV1ConciergeSettings *data_p;
} DEVICEAPISDEVICEV1GetConciergeSettingsResponse__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(DEVICEAPISDEVICEV1ConciergeSettings),
        .number = DEVICEAPISDEVICEV1GetConciergeSettingsResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1GetConciergeSettingsResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1GetConciergeSettingsResponse)
                                   messageName:@"GetConciergeSettingsResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceConciergeV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetConciergeSettingsResponse__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 DEVICEAPISDEVICEV1GetConciergeSettingsResponse_ClearTypeOneOfCase(DEVICEAPISDEVICEV1GetConciergeSettingsResponse *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1GetConciergeSettingsResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
