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

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

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

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

#import <stdatomic.h>

#import "deviceapis/device/v1/DeviceapisDeviceSafeOsdV1.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(DEVICEAPISDEVICEV1EditSafeCityOsdRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1EditSafeCityOsdResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1EditSafeCityOsdResponse_Error);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetSafeCityOsdRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetSafeCityOsdResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1SafeCityOsd);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1ValidationError);
GPBObjCClassDeclaration(GPBFieldMask);

#pragma mark - DEVICEAPISDEVICEV1DeviceapisDeviceSafeOsdV1Root

@implementation DEVICEAPISDEVICEV1DeviceapisDeviceSafeOsdV1Root

+ (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 DEVICEAPISDEVICEV1DeviceapisDeviceSafeOsdV1Root_FileDescription = {
  .package = "deviceapis.device.v1",
  .prefix = "DEVICEAPISDEVICEV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum DEVICEAPISDEVICEV1SafeCityOsd_PlacementType

GPBEnumDescriptor *DEVICEAPISDEVICEV1SafeCityOsd_PlacementType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "PlacementTypeUnknown\000TopLeft\000TopRight\000Bo"
        "ttomLeft\000BottomRight\000";
    static const int32_t values[] = {
        DEVICEAPISDEVICEV1SafeCityOsd_PlacementType_PlacementTypeUnknown,
        DEVICEAPISDEVICEV1SafeCityOsd_PlacementType_TopLeft,
        DEVICEAPISDEVICEV1SafeCityOsd_PlacementType_TopRight,
        DEVICEAPISDEVICEV1SafeCityOsd_PlacementType_BottomLeft,
        DEVICEAPISDEVICEV1SafeCityOsd_PlacementType_BottomRight,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(DEVICEAPISDEVICEV1SafeCityOsd_PlacementType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:DEVICEAPISDEVICEV1SafeCityOsd_PlacementType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL DEVICEAPISDEVICEV1SafeCityOsd_PlacementType_IsValidValue(int32_t value__) {
  switch (value__) {
    case DEVICEAPISDEVICEV1SafeCityOsd_PlacementType_PlacementTypeUnknown:
    case DEVICEAPISDEVICEV1SafeCityOsd_PlacementType_TopLeft:
    case DEVICEAPISDEVICEV1SafeCityOsd_PlacementType_TopRight:
    case DEVICEAPISDEVICEV1SafeCityOsd_PlacementType_BottomLeft:
    case DEVICEAPISDEVICEV1SafeCityOsd_PlacementType_BottomRight:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType

GPBEnumDescriptor *DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "ShowDatetimeTypeUnknown\000Absent\000DayTime\000T"
        "ime\000";
    static const int32_t values[] = {
        DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType_ShowDatetimeTypeUnknown,
        DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType_Absent,
        DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType_DayTime,
        DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType_Time,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType_IsValidValue(int32_t value__) {
  switch (value__) {
    case DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType_ShowDatetimeTypeUnknown:
    case DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType_Absent:
    case DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType_DayTime:
    case DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType_Time:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - DEVICEAPISDEVICEV1EditSafeCityOsdRequest

@implementation DEVICEAPISDEVICEV1EditSafeCityOsdRequest

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

typedef struct DEVICEAPISDEVICEV1EditSafeCityOsdRequest__storage_ {
  uint32_t _has_storage_[1];
  DEVICEAPISDEVICEV1SafeCityOsd *data_p;
  GPBFieldMask *updateMask;
} DEVICEAPISDEVICEV1EditSafeCityOsdRequest__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(DEVICEAPISDEVICEV1SafeCityOsd),
        .number = DEVICEAPISDEVICEV1EditSafeCityOsdRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EditSafeCityOsdRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "updateMask",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBFieldMask),
        .number = DEVICEAPISDEVICEV1EditSafeCityOsdRequest_FieldNumber_UpdateMask,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EditSafeCityOsdRequest__storage_, updateMask),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1EditSafeCityOsdRequest)
                                   messageName:@"EditSafeCityOsdRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSafeOsdV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1EditSafeCityOsdRequest__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 - DEVICEAPISDEVICEV1EditSafeCityOsdResponse

@implementation DEVICEAPISDEVICEV1EditSafeCityOsdResponse

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

typedef struct DEVICEAPISDEVICEV1EditSafeCityOsdResponse__storage_ {
  uint32_t _has_storage_[2];
  DEVICEAPISDEVICEV1SafeCityOsd *data_p;
  DEVICEAPISDEVICEV1EditSafeCityOsdResponse_Error *error;
} DEVICEAPISDEVICEV1EditSafeCityOsdResponse__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(DEVICEAPISDEVICEV1SafeCityOsd),
        .number = DEVICEAPISDEVICEV1EditSafeCityOsdResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EditSafeCityOsdResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1EditSafeCityOsdResponse_Error),
        .number = DEVICEAPISDEVICEV1EditSafeCityOsdResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EditSafeCityOsdResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1EditSafeCityOsdResponse)
                                   messageName:@"EditSafeCityOsdResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSafeOsdV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1EditSafeCityOsdResponse__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 DEVICEAPISDEVICEV1EditSafeCityOsdResponse_ClearTypeOneOfCase(DEVICEAPISDEVICEV1EditSafeCityOsdResponse *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1EditSafeCityOsdResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - DEVICEAPISDEVICEV1EditSafeCityOsdResponse_Error

@implementation DEVICEAPISDEVICEV1EditSafeCityOsdResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation DEVICEAPISDEVICEV1GetSafeCityOsdRequest


typedef struct DEVICEAPISDEVICEV1GetSafeCityOsdRequest__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1GetSafeCityOsdRequest__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(DEVICEAPISDEVICEV1GetSafeCityOsdRequest)
                                   messageName:@"GetSafeCityOsdRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSafeOsdV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetSafeCityOsdRequest__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 - DEVICEAPISDEVICEV1GetSafeCityOsdResponse

@implementation DEVICEAPISDEVICEV1GetSafeCityOsdResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct DEVICEAPISDEVICEV1GetSafeCityOsdResponse__storage_ {
  uint32_t _has_storage_[2];
  DEVICEAPISDEVICEV1SafeCityOsd *data_p;
} DEVICEAPISDEVICEV1GetSafeCityOsdResponse__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(DEVICEAPISDEVICEV1SafeCityOsd),
        .number = DEVICEAPISDEVICEV1GetSafeCityOsdResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1GetSafeCityOsdResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1GetSafeCityOsdResponse)
                                   messageName:@"GetSafeCityOsdResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSafeOsdV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetSafeCityOsdResponse__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 DEVICEAPISDEVICEV1GetSafeCityOsdResponse_ClearTypeOneOfCase(DEVICEAPISDEVICEV1GetSafeCityOsdResponse *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1GetSafeCityOsdResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - DEVICEAPISDEVICEV1SafeCityOsd

@implementation DEVICEAPISDEVICEV1SafeCityOsd

@dynamic isOsdEnabled;
@dynamic textline;
@dynamic textsize;
@dynamic placementType;
@dynamic showDatetimeType;
@dynamic isShowFps;
@dynamic isShowBitrate;
@dynamic isShowCountOfStreams;
@dynamic isShowNameOfDevice;

typedef struct DEVICEAPISDEVICEV1SafeCityOsd__storage_ {
  uint32_t _has_storage_[1];
  int32_t textsize;
  DEVICEAPISDEVICEV1SafeCityOsd_PlacementType placementType;
  DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType showDatetimeType;
  NSString *textline;
} DEVICEAPISDEVICEV1SafeCityOsd__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 = "isOsdEnabled",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1SafeCityOsd_FieldNumber_IsOsdEnabled,
        .hasIndex = 0,
        .offset = 1,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
      {
        .name = "textline",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1SafeCityOsd_FieldNumber_Textline,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1SafeCityOsd__storage_, textline),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "textsize",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1SafeCityOsd_FieldNumber_Textsize,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1SafeCityOsd__storage_, textsize),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "placementType",
        .dataTypeSpecific.enumDescFunc = DEVICEAPISDEVICEV1SafeCityOsd_PlacementType_EnumDescriptor,
        .number = DEVICEAPISDEVICEV1SafeCityOsd_FieldNumber_PlacementType,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1SafeCityOsd__storage_, placementType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "showDatetimeType",
        .dataTypeSpecific.enumDescFunc = DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType_EnumDescriptor,
        .number = DEVICEAPISDEVICEV1SafeCityOsd_FieldNumber_ShowDatetimeType,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1SafeCityOsd__storage_, showDatetimeType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "isShowFps",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1SafeCityOsd_FieldNumber_IsShowFps,
        .hasIndex = 6,
        .offset = 7,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
      {
        .name = "isShowBitrate",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1SafeCityOsd_FieldNumber_IsShowBitrate,
        .hasIndex = 8,
        .offset = 9,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
      {
        .name = "isShowCountOfStreams",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1SafeCityOsd_FieldNumber_IsShowCountOfStreams,
        .hasIndex = 10,
        .offset = 11,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
      {
        .name = "isShowNameOfDevice",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1SafeCityOsd_FieldNumber_IsShowNameOfDevice,
        .hasIndex = 12,
        .offset = 13,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1SafeCityOsd)
                                   messageName:@"SafeCityOsd"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSafeOsdV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1SafeCityOsd__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 DEVICEAPISDEVICEV1SafeCityOsd_PlacementType_RawValue(DEVICEAPISDEVICEV1SafeCityOsd *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1SafeCityOsd descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1SafeCityOsd_FieldNumber_PlacementType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetDEVICEAPISDEVICEV1SafeCityOsd_PlacementType_RawValue(DEVICEAPISDEVICEV1SafeCityOsd *message, int32_t value) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1SafeCityOsd descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1SafeCityOsd_FieldNumber_PlacementType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t DEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType_RawValue(DEVICEAPISDEVICEV1SafeCityOsd *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1SafeCityOsd descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1SafeCityOsd_FieldNumber_ShowDatetimeType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetDEVICEAPISDEVICEV1SafeCityOsd_ShowDatetimeType_RawValue(DEVICEAPISDEVICEV1SafeCityOsd *message, int32_t value) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1SafeCityOsd descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1SafeCityOsd_FieldNumber_ShowDatetimeType];
  GPBSetMessageRawEnumField(message, field, value);
}


#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
