validation.pb.go raw

   1  // Code generated by protoc-gen-go. DO NOT EDIT.
   2  // versions:
   3  // 	protoc-gen-go v1.36.6
   4  // 	protoc        v3.21.12
   5  // source: yandex/cloud/validation.proto
   6  
   7  package cloud
   8  
   9  import (
  10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12  	descriptorpb "google.golang.org/protobuf/types/descriptorpb"
  13  	reflect "reflect"
  14  	sync "sync"
  15  	unsafe "unsafe"
  16  )
  17  
  18  const (
  19  	// Verify that this generated code is sufficiently up-to-date.
  20  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21  	// Verify that runtime/protoimpl is sufficiently up-to-date.
  22  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23  )
  24  
  25  type MapKeySpec struct {
  26  	state         protoimpl.MessageState `protogen:"open.v1"`
  27  	Value         string                 `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
  28  	Pattern       string                 `protobuf:"bytes,2,opt,name=pattern,proto3" json:"pattern,omitempty"`
  29  	Length        string                 `protobuf:"bytes,3,opt,name=length,proto3" json:"length,omitempty"`
  30  	unknownFields protoimpl.UnknownFields
  31  	sizeCache     protoimpl.SizeCache
  32  }
  33  
  34  func (x *MapKeySpec) Reset() {
  35  	*x = MapKeySpec{}
  36  	mi := &file_yandex_cloud_validation_proto_msgTypes[0]
  37  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  38  	ms.StoreMessageInfo(mi)
  39  }
  40  
  41  func (x *MapKeySpec) String() string {
  42  	return protoimpl.X.MessageStringOf(x)
  43  }
  44  
  45  func (*MapKeySpec) ProtoMessage() {}
  46  
  47  func (x *MapKeySpec) ProtoReflect() protoreflect.Message {
  48  	mi := &file_yandex_cloud_validation_proto_msgTypes[0]
  49  	if x != nil {
  50  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  51  		if ms.LoadMessageInfo() == nil {
  52  			ms.StoreMessageInfo(mi)
  53  		}
  54  		return ms
  55  	}
  56  	return mi.MessageOf(x)
  57  }
  58  
  59  // Deprecated: Use MapKeySpec.ProtoReflect.Descriptor instead.
  60  func (*MapKeySpec) Descriptor() ([]byte, []int) {
  61  	return file_yandex_cloud_validation_proto_rawDescGZIP(), []int{0}
  62  }
  63  
  64  func (x *MapKeySpec) GetValue() string {
  65  	if x != nil {
  66  		return x.Value
  67  	}
  68  	return ""
  69  }
  70  
  71  func (x *MapKeySpec) GetPattern() string {
  72  	if x != nil {
  73  		return x.Pattern
  74  	}
  75  	return ""
  76  }
  77  
  78  func (x *MapKeySpec) GetLength() string {
  79  	if x != nil {
  80  		return x.Length
  81  	}
  82  	return ""
  83  }
  84  
  85  var file_yandex_cloud_validation_proto_extTypes = []protoimpl.ExtensionInfo{
  86  	{
  87  		ExtendedType:  (*descriptorpb.OneofOptions)(nil),
  88  		ExtensionType: (*bool)(nil),
  89  		Field:         101400,
  90  		Name:          "yandex.cloud.exactly_one",
  91  		Tag:           "varint,101400,opt,name=exactly_one",
  92  		Filename:      "yandex/cloud/validation.proto",
  93  	},
  94  	{
  95  		ExtendedType:  (*descriptorpb.FieldOptions)(nil),
  96  		ExtensionType: (*bool)(nil),
  97  		Field:         101501,
  98  		Name:          "yandex.cloud.required",
  99  		Tag:           "varint,101501,opt,name=required",
 100  		Filename:      "yandex/cloud/validation.proto",
 101  	},
 102  	{
 103  		ExtendedType:  (*descriptorpb.FieldOptions)(nil),
 104  		ExtensionType: (*string)(nil),
 105  		Field:         101502,
 106  		Name:          "yandex.cloud.pattern",
 107  		Tag:           "bytes,101502,opt,name=pattern",
 108  		Filename:      "yandex/cloud/validation.proto",
 109  	},
 110  	{
 111  		ExtendedType:  (*descriptorpb.FieldOptions)(nil),
 112  		ExtensionType: (*string)(nil),
 113  		Field:         101503,
 114  		Name:          "yandex.cloud.value",
 115  		Tag:           "bytes,101503,opt,name=value",
 116  		Filename:      "yandex/cloud/validation.proto",
 117  	},
 118  	{
 119  		ExtendedType:  (*descriptorpb.FieldOptions)(nil),
 120  		ExtensionType: (*string)(nil),
 121  		Field:         101504,
 122  		Name:          "yandex.cloud.size",
 123  		Tag:           "bytes,101504,opt,name=size",
 124  		Filename:      "yandex/cloud/validation.proto",
 125  	},
 126  	{
 127  		ExtendedType:  (*descriptorpb.FieldOptions)(nil),
 128  		ExtensionType: (*string)(nil),
 129  		Field:         101505,
 130  		Name:          "yandex.cloud.length",
 131  		Tag:           "bytes,101505,opt,name=length",
 132  		Filename:      "yandex/cloud/validation.proto",
 133  	},
 134  	{
 135  		ExtendedType:  (*descriptorpb.FieldOptions)(nil),
 136  		ExtensionType: (*bool)(nil),
 137  		Field:         101506,
 138  		Name:          "yandex.cloud.unique",
 139  		Tag:           "varint,101506,opt,name=unique",
 140  		Filename:      "yandex/cloud/validation.proto",
 141  	},
 142  	{
 143  		ExtendedType:  (*descriptorpb.FieldOptions)(nil),
 144  		ExtensionType: (*MapKeySpec)(nil),
 145  		Field:         101510,
 146  		Name:          "yandex.cloud.map_key",
 147  		Tag:           "bytes,101510,opt,name=map_key",
 148  		Filename:      "yandex/cloud/validation.proto",
 149  	},
 150  	{
 151  		ExtendedType:  (*descriptorpb.FieldOptions)(nil),
 152  		ExtensionType: (*string)(nil),
 153  		Field:         101511,
 154  		Name:          "yandex.cloud.bytes",
 155  		Tag:           "bytes,101511,opt,name=bytes",
 156  		Filename:      "yandex/cloud/validation.proto",
 157  	},
 158  }
 159  
 160  // Extension fields to descriptorpb.OneofOptions.
 161  var (
 162  	// optional bool exactly_one = 101400;
 163  	E_ExactlyOne = &file_yandex_cloud_validation_proto_extTypes[0]
 164  )
 165  
 166  // Extension fields to descriptorpb.FieldOptions.
 167  var (
 168  	// optional bool required = 101501;
 169  	E_Required = &file_yandex_cloud_validation_proto_extTypes[1]
 170  	// optional string pattern = 101502;
 171  	E_Pattern = &file_yandex_cloud_validation_proto_extTypes[2]
 172  	// optional string value = 101503;
 173  	E_Value = &file_yandex_cloud_validation_proto_extTypes[3]
 174  	// optional string size = 101504;
 175  	E_Size = &file_yandex_cloud_validation_proto_extTypes[4]
 176  	// optional string length = 101505;
 177  	E_Length = &file_yandex_cloud_validation_proto_extTypes[5]
 178  	// optional bool unique = 101506;
 179  	E_Unique = &file_yandex_cloud_validation_proto_extTypes[6]
 180  	// optional yandex.cloud.MapKeySpec map_key = 101510;
 181  	E_MapKey = &file_yandex_cloud_validation_proto_extTypes[7]
 182  	// optional string bytes = 101511;
 183  	E_Bytes = &file_yandex_cloud_validation_proto_extTypes[8]
 184  )
 185  
 186  var File_yandex_cloud_validation_proto protoreflect.FileDescriptor
 187  
 188  const file_yandex_cloud_validation_proto_rawDesc = "" +
 189  	"\n" +
 190  	"\x1dyandex/cloud/validation.proto\x12\fyandex.cloud\x1a google/protobuf/descriptor.proto\"T\n" +
 191  	"\n" +
 192  	"MapKeySpec\x12\x14\n" +
 193  	"\x05value\x18\x01 \x01(\tR\x05value\x12\x18\n" +
 194  	"\apattern\x18\x02 \x01(\tR\apattern\x12\x16\n" +
 195  	"\x06length\x18\x03 \x01(\tR\x06length:@\n" +
 196  	"\vexactly_one\x12\x1d.google.protobuf.OneofOptions\x18\x98\x98\x06 \x01(\bR\n" +
 197  	"exactlyOne:;\n" +
 198  	"\brequired\x12\x1d.google.protobuf.FieldOptions\x18\xfd\x98\x06 \x01(\bR\brequired:9\n" +
 199  	"\apattern\x12\x1d.google.protobuf.FieldOptions\x18\xfe\x98\x06 \x01(\tR\apattern:5\n" +
 200  	"\x05value\x12\x1d.google.protobuf.FieldOptions\x18\xff\x98\x06 \x01(\tR\x05value:3\n" +
 201  	"\x04size\x12\x1d.google.protobuf.FieldOptions\x18\x80\x99\x06 \x01(\tR\x04size:7\n" +
 202  	"\x06length\x12\x1d.google.protobuf.FieldOptions\x18\x81\x99\x06 \x01(\tR\x06length:7\n" +
 203  	"\x06unique\x12\x1d.google.protobuf.FieldOptions\x18\x82\x99\x06 \x01(\bR\x06unique:R\n" +
 204  	"\amap_key\x12\x1d.google.protobuf.FieldOptions\x18\x86\x99\x06 \x01(\v2\x18.yandex.cloud.MapKeySpecR\x06mapKey:5\n" +
 205  	"\x05bytes\x12\x1d.google.protobuf.FieldOptions\x18\x87\x99\x06 \x01(\tR\x05bytesBJ\n" +
 206  	"\x10yandex.cloud.apiZ6github.com/yandex-cloud/go-genproto/yandex/cloud;cloudb\x06proto3"
 207  
 208  var (
 209  	file_yandex_cloud_validation_proto_rawDescOnce sync.Once
 210  	file_yandex_cloud_validation_proto_rawDescData []byte
 211  )
 212  
 213  func file_yandex_cloud_validation_proto_rawDescGZIP() []byte {
 214  	file_yandex_cloud_validation_proto_rawDescOnce.Do(func() {
 215  		file_yandex_cloud_validation_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_validation_proto_rawDesc), len(file_yandex_cloud_validation_proto_rawDesc)))
 216  	})
 217  	return file_yandex_cloud_validation_proto_rawDescData
 218  }
 219  
 220  var file_yandex_cloud_validation_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
 221  var file_yandex_cloud_validation_proto_goTypes = []any{
 222  	(*MapKeySpec)(nil),                // 0: yandex.cloud.MapKeySpec
 223  	(*descriptorpb.OneofOptions)(nil), // 1: google.protobuf.OneofOptions
 224  	(*descriptorpb.FieldOptions)(nil), // 2: google.protobuf.FieldOptions
 225  }
 226  var file_yandex_cloud_validation_proto_depIdxs = []int32{
 227  	1,  // 0: yandex.cloud.exactly_one:extendee -> google.protobuf.OneofOptions
 228  	2,  // 1: yandex.cloud.required:extendee -> google.protobuf.FieldOptions
 229  	2,  // 2: yandex.cloud.pattern:extendee -> google.protobuf.FieldOptions
 230  	2,  // 3: yandex.cloud.value:extendee -> google.protobuf.FieldOptions
 231  	2,  // 4: yandex.cloud.size:extendee -> google.protobuf.FieldOptions
 232  	2,  // 5: yandex.cloud.length:extendee -> google.protobuf.FieldOptions
 233  	2,  // 6: yandex.cloud.unique:extendee -> google.protobuf.FieldOptions
 234  	2,  // 7: yandex.cloud.map_key:extendee -> google.protobuf.FieldOptions
 235  	2,  // 8: yandex.cloud.bytes:extendee -> google.protobuf.FieldOptions
 236  	0,  // 9: yandex.cloud.map_key:type_name -> yandex.cloud.MapKeySpec
 237  	10, // [10:10] is the sub-list for method output_type
 238  	10, // [10:10] is the sub-list for method input_type
 239  	9,  // [9:10] is the sub-list for extension type_name
 240  	0,  // [0:9] is the sub-list for extension extendee
 241  	0,  // [0:0] is the sub-list for field type_name
 242  }
 243  
 244  func init() { file_yandex_cloud_validation_proto_init() }
 245  func file_yandex_cloud_validation_proto_init() {
 246  	if File_yandex_cloud_validation_proto != nil {
 247  		return
 248  	}
 249  	type x struct{}
 250  	out := protoimpl.TypeBuilder{
 251  		File: protoimpl.DescBuilder{
 252  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 253  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_validation_proto_rawDesc), len(file_yandex_cloud_validation_proto_rawDesc)),
 254  			NumEnums:      0,
 255  			NumMessages:   1,
 256  			NumExtensions: 9,
 257  			NumServices:   0,
 258  		},
 259  		GoTypes:           file_yandex_cloud_validation_proto_goTypes,
 260  		DependencyIndexes: file_yandex_cloud_validation_proto_depIdxs,
 261  		MessageInfos:      file_yandex_cloud_validation_proto_msgTypes,
 262  		ExtensionInfos:    file_yandex_cloud_validation_proto_extTypes,
 263  	}.Build()
 264  	File_yandex_cloud_validation_proto = out.File
 265  	file_yandex_cloud_validation_proto_goTypes = nil
 266  	file_yandex_cloud_validation_proto_depIdxs = nil
 267  }
 268