// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: deviceapis/device/v1/deviceapis_device_video_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/DeviceapisDeviceVideoV1.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(DEVICEAPISDEVICEV1EditVideoChannelRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1EditVideoChannelResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1EditVideoChannelResponse_Error);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetVideoChannelListRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetVideoChannelListResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1ValidationError);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1VideoChannel);
GPBObjCClassDeclaration(GPBFieldMask);

#pragma mark - DEVICEAPISDEVICEV1DeviceapisDeviceVideoV1Root

@implementation DEVICEAPISDEVICEV1DeviceapisDeviceVideoV1Root

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

#pragma mark - Enum DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType

GPBEnumDescriptor *DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "FlowControlModeTypeUnknown\000Vbr\000Cbr\000Cvbr\000"
        "Avbr\000Fixp\000Qvbr\000";
    static const int32_t values[] = {
        DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_FlowControlModeTypeUnknown,
        DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_Vbr,
        DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_Cbr,
        DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_Cvbr,
        DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_Avbr,
        DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_Fixp,
        DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_Qvbr,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_IsValidValue(int32_t value__) {
  switch (value__) {
    case DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_FlowControlModeTypeUnknown:
    case DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_Vbr:
    case DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_Cbr:
    case DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_Cvbr:
    case DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_Avbr:
    case DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_Fixp:
    case DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_Qvbr:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum DEVICEAPISDEVICEV1VideoChannel_FormatType

GPBEnumDescriptor *DEVICEAPISDEVICEV1VideoChannel_FormatType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "FormatTypeUnknown\000Mpeg\000H264\000H264Plus\000H26"
        "5\000";
    static const int32_t values[] = {
        DEVICEAPISDEVICEV1VideoChannel_FormatType_FormatTypeUnknown,
        DEVICEAPISDEVICEV1VideoChannel_FormatType_Mpeg,
        DEVICEAPISDEVICEV1VideoChannel_FormatType_H264,
        DEVICEAPISDEVICEV1VideoChannel_FormatType_H264Plus,
        DEVICEAPISDEVICEV1VideoChannel_FormatType_H265,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(DEVICEAPISDEVICEV1VideoChannel_FormatType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:DEVICEAPISDEVICEV1VideoChannel_FormatType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL DEVICEAPISDEVICEV1VideoChannel_FormatType_IsValidValue(int32_t value__) {
  switch (value__) {
    case DEVICEAPISDEVICEV1VideoChannel_FormatType_FormatTypeUnknown:
    case DEVICEAPISDEVICEV1VideoChannel_FormatType_Mpeg:
    case DEVICEAPISDEVICEV1VideoChannel_FormatType_H264:
    case DEVICEAPISDEVICEV1VideoChannel_FormatType_H264Plus:
    case DEVICEAPISDEVICEV1VideoChannel_FormatType_H265:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum DEVICEAPISDEVICEV1VideoChannel_ProfileType

GPBEnumDescriptor *DEVICEAPISDEVICEV1VideoChannel_ProfileType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "ProfileTypeUnknown\000ProfileHigh\000ProfileMa"
        "in\000ProfileBase\000";
    static const int32_t values[] = {
        DEVICEAPISDEVICEV1VideoChannel_ProfileType_ProfileTypeUnknown,
        DEVICEAPISDEVICEV1VideoChannel_ProfileType_ProfileHigh,
        DEVICEAPISDEVICEV1VideoChannel_ProfileType_ProfileMain,
        DEVICEAPISDEVICEV1VideoChannel_ProfileType_ProfileBase,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(DEVICEAPISDEVICEV1VideoChannel_ProfileType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:DEVICEAPISDEVICEV1VideoChannel_ProfileType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL DEVICEAPISDEVICEV1VideoChannel_ProfileType_IsValidValue(int32_t value__) {
  switch (value__) {
    case DEVICEAPISDEVICEV1VideoChannel_ProfileType_ProfileTypeUnknown:
    case DEVICEAPISDEVICEV1VideoChannel_ProfileType_ProfileHigh:
    case DEVICEAPISDEVICEV1VideoChannel_ProfileType_ProfileMain:
    case DEVICEAPISDEVICEV1VideoChannel_ProfileType_ProfileBase:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum DEVICEAPISDEVICEV1VideoChannel_ResolutionType

GPBEnumDescriptor *DEVICEAPISDEVICEV1VideoChannel_ResolutionType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "ResolutionTypeUnknown\000R2K\000Fullhd\000Hd\000Sd\000R"
        "4Cif\000Vga\000";
    static const int32_t values[] = {
        DEVICEAPISDEVICEV1VideoChannel_ResolutionType_ResolutionTypeUnknown,
        DEVICEAPISDEVICEV1VideoChannel_ResolutionType_R2K,
        DEVICEAPISDEVICEV1VideoChannel_ResolutionType_Fullhd,
        DEVICEAPISDEVICEV1VideoChannel_ResolutionType_Hd,
        DEVICEAPISDEVICEV1VideoChannel_ResolutionType_Sd,
        DEVICEAPISDEVICEV1VideoChannel_ResolutionType_R4Cif,
        DEVICEAPISDEVICEV1VideoChannel_ResolutionType_Vga,
    };
    static const char *extraTextFormatInfo = "\002\001\003\000\005\003b\000";
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(DEVICEAPISDEVICEV1VideoChannel_ResolutionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:DEVICEAPISDEVICEV1VideoChannel_ResolutionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None
                              extraTextFormatInfo:extraTextFormatInfo];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL DEVICEAPISDEVICEV1VideoChannel_ResolutionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case DEVICEAPISDEVICEV1VideoChannel_ResolutionType_ResolutionTypeUnknown:
    case DEVICEAPISDEVICEV1VideoChannel_ResolutionType_R2K:
    case DEVICEAPISDEVICEV1VideoChannel_ResolutionType_Fullhd:
    case DEVICEAPISDEVICEV1VideoChannel_ResolutionType_Hd:
    case DEVICEAPISDEVICEV1VideoChannel_ResolutionType_Sd:
    case DEVICEAPISDEVICEV1VideoChannel_ResolutionType_R4Cif:
    case DEVICEAPISDEVICEV1VideoChannel_ResolutionType_Vga:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - DEVICEAPISDEVICEV1EditVideoChannelRequest

@implementation DEVICEAPISDEVICEV1EditVideoChannelRequest

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

typedef struct DEVICEAPISDEVICEV1EditVideoChannelRequest__storage_ {
  uint32_t _has_storage_[1];
  DEVICEAPISDEVICEV1VideoChannel *data_p;
  GPBFieldMask *updateMask;
} DEVICEAPISDEVICEV1EditVideoChannelRequest__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(DEVICEAPISDEVICEV1VideoChannel),
        .number = DEVICEAPISDEVICEV1EditVideoChannelRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EditVideoChannelRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "updateMask",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBFieldMask),
        .number = DEVICEAPISDEVICEV1EditVideoChannelRequest_FieldNumber_UpdateMask,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EditVideoChannelRequest__storage_, updateMask),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1EditVideoChannelRequest)
                                   messageName:@"EditVideoChannelRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceVideoV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1EditVideoChannelRequest__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 - DEVICEAPISDEVICEV1EditVideoChannelResponse

@implementation DEVICEAPISDEVICEV1EditVideoChannelResponse

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

typedef struct DEVICEAPISDEVICEV1EditVideoChannelResponse__storage_ {
  uint32_t _has_storage_[2];
  DEVICEAPISDEVICEV1VideoChannel *data_p;
  DEVICEAPISDEVICEV1EditVideoChannelResponse_Error *error;
} DEVICEAPISDEVICEV1EditVideoChannelResponse__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(DEVICEAPISDEVICEV1VideoChannel),
        .number = DEVICEAPISDEVICEV1EditVideoChannelResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EditVideoChannelResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1EditVideoChannelResponse_Error),
        .number = DEVICEAPISDEVICEV1EditVideoChannelResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EditVideoChannelResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1EditVideoChannelResponse)
                                   messageName:@"EditVideoChannelResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceVideoV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1EditVideoChannelResponse__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 DEVICEAPISDEVICEV1EditVideoChannelResponse_ClearTypeOneOfCase(DEVICEAPISDEVICEV1EditVideoChannelResponse *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1EditVideoChannelResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - DEVICEAPISDEVICEV1EditVideoChannelResponse_Error

@implementation DEVICEAPISDEVICEV1EditVideoChannelResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation DEVICEAPISDEVICEV1GetVideoChannelListRequest


typedef struct DEVICEAPISDEVICEV1GetVideoChannelListRequest__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1GetVideoChannelListRequest__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(DEVICEAPISDEVICEV1GetVideoChannelListRequest)
                                   messageName:@"GetVideoChannelListRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceVideoV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetVideoChannelListRequest__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 - DEVICEAPISDEVICEV1GetVideoChannelListResponse

@implementation DEVICEAPISDEVICEV1GetVideoChannelListResponse

@dynamic dataArray, dataArray_Count;

typedef struct DEVICEAPISDEVICEV1GetVideoChannelListResponse__storage_ {
  uint32_t _has_storage_[1];
  NSMutableArray *dataArray;
} DEVICEAPISDEVICEV1GetVideoChannelListResponse__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 = "dataArray",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1VideoChannel),
        .number = DEVICEAPISDEVICEV1GetVideoChannelListResponse_FieldNumber_DataArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1GetVideoChannelListResponse__storage_, dataArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1GetVideoChannelListResponse)
                                   messageName:@"GetVideoChannelListResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceVideoV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetVideoChannelListResponse__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 - DEVICEAPISDEVICEV1VideoChannel

@implementation DEVICEAPISDEVICEV1VideoChannel

@dynamic chanelNumber;
@dynamic isEnabled;
@dynamic resolutionType;
@dynamic formatType;
@dynamic profileType;
@dynamic fps;
@dynamic gop;
@dynamic flowControlModeType;
@dynamic biterate;
@dynamic isRtspAudio;
@dynamic isUsedForSip;

typedef struct DEVICEAPISDEVICEV1VideoChannel__storage_ {
  uint32_t _has_storage_[1];
  int32_t chanelNumber;
  DEVICEAPISDEVICEV1VideoChannel_ResolutionType resolutionType;
  DEVICEAPISDEVICEV1VideoChannel_FormatType formatType;
  DEVICEAPISDEVICEV1VideoChannel_ProfileType profileType;
  int32_t fps;
  int32_t gop;
  DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType flowControlModeType;
  int32_t biterate;
} DEVICEAPISDEVICEV1VideoChannel__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 = "chanelNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1VideoChannel_FieldNumber_ChanelNumber,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1VideoChannel__storage_, chanelNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "isEnabled",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1VideoChannel_FieldNumber_IsEnabled,
        .hasIndex = 1,
        .offset = 2,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
      {
        .name = "resolutionType",
        .dataTypeSpecific.enumDescFunc = DEVICEAPISDEVICEV1VideoChannel_ResolutionType_EnumDescriptor,
        .number = DEVICEAPISDEVICEV1VideoChannel_FieldNumber_ResolutionType,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1VideoChannel__storage_, resolutionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "formatType",
        .dataTypeSpecific.enumDescFunc = DEVICEAPISDEVICEV1VideoChannel_FormatType_EnumDescriptor,
        .number = DEVICEAPISDEVICEV1VideoChannel_FieldNumber_FormatType,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1VideoChannel__storage_, formatType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "profileType",
        .dataTypeSpecific.enumDescFunc = DEVICEAPISDEVICEV1VideoChannel_ProfileType_EnumDescriptor,
        .number = DEVICEAPISDEVICEV1VideoChannel_FieldNumber_ProfileType,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1VideoChannel__storage_, profileType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "fps",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1VideoChannel_FieldNumber_Fps,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1VideoChannel__storage_, fps),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "gop",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1VideoChannel_FieldNumber_Gop,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1VideoChannel__storage_, gop),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "flowControlModeType",
        .dataTypeSpecific.enumDescFunc = DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_EnumDescriptor,
        .number = DEVICEAPISDEVICEV1VideoChannel_FieldNumber_FlowControlModeType,
        .hasIndex = 8,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1VideoChannel__storage_, flowControlModeType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "biterate",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1VideoChannel_FieldNumber_Biterate,
        .hasIndex = 9,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1VideoChannel__storage_, biterate),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "isRtspAudio",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1VideoChannel_FieldNumber_IsRtspAudio,
        .hasIndex = 10,
        .offset = 11,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
      {
        .name = "isUsedForSip",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1VideoChannel_FieldNumber_IsUsedForSip,
        .hasIndex = 12,
        .offset = 13,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1VideoChannel)
                                   messageName:@"VideoChannel"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceVideoV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1VideoChannel__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 DEVICEAPISDEVICEV1VideoChannel_ResolutionType_RawValue(DEVICEAPISDEVICEV1VideoChannel *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1VideoChannel descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1VideoChannel_FieldNumber_ResolutionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetDEVICEAPISDEVICEV1VideoChannel_ResolutionType_RawValue(DEVICEAPISDEVICEV1VideoChannel *message, int32_t value) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1VideoChannel descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1VideoChannel_FieldNumber_ResolutionType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t DEVICEAPISDEVICEV1VideoChannel_FormatType_RawValue(DEVICEAPISDEVICEV1VideoChannel *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1VideoChannel descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1VideoChannel_FieldNumber_FormatType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetDEVICEAPISDEVICEV1VideoChannel_FormatType_RawValue(DEVICEAPISDEVICEV1VideoChannel *message, int32_t value) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1VideoChannel descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1VideoChannel_FieldNumber_FormatType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t DEVICEAPISDEVICEV1VideoChannel_ProfileType_RawValue(DEVICEAPISDEVICEV1VideoChannel *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1VideoChannel descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1VideoChannel_FieldNumber_ProfileType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetDEVICEAPISDEVICEV1VideoChannel_ProfileType_RawValue(DEVICEAPISDEVICEV1VideoChannel *message, int32_t value) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1VideoChannel descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1VideoChannel_FieldNumber_ProfileType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t DEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_RawValue(DEVICEAPISDEVICEV1VideoChannel *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1VideoChannel descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1VideoChannel_FieldNumber_FlowControlModeType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetDEVICEAPISDEVICEV1VideoChannel_FlowControlModeType_RawValue(DEVICEAPISDEVICEV1VideoChannel *message, int32_t value) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1VideoChannel descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1VideoChannel_FieldNumber_FlowControlModeType];
  GPBSetMessageRawEnumField(message, field, value);
}


#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
