label.pb.go 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. // Code generated by protoc-gen-go.
  2. // source: google/api/label.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package label is a generated protocol buffer package.
  6. It is generated from these files:
  7. google/api/label.proto
  8. It has these top-level messages:
  9. LabelDescriptor
  10. */
  11. package label
  12. import proto "github.com/golang/protobuf/proto"
  13. import fmt "fmt"
  14. import math "math"
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  24. // Value types that can be used as label values.
  25. type LabelDescriptor_ValueType int32
  26. const (
  27. // A variable-length string. This is the default.
  28. LabelDescriptor_STRING LabelDescriptor_ValueType = 0
  29. // Boolean; true or false.
  30. LabelDescriptor_BOOL LabelDescriptor_ValueType = 1
  31. // A 64-bit signed integer.
  32. LabelDescriptor_INT64 LabelDescriptor_ValueType = 2
  33. )
  34. var LabelDescriptor_ValueType_name = map[int32]string{
  35. 0: "STRING",
  36. 1: "BOOL",
  37. 2: "INT64",
  38. }
  39. var LabelDescriptor_ValueType_value = map[string]int32{
  40. "STRING": 0,
  41. "BOOL": 1,
  42. "INT64": 2,
  43. }
  44. func (x LabelDescriptor_ValueType) String() string {
  45. return proto.EnumName(LabelDescriptor_ValueType_name, int32(x))
  46. }
  47. func (LabelDescriptor_ValueType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
  48. // A description of a label.
  49. type LabelDescriptor struct {
  50. // The label key.
  51. Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
  52. // The type of data that can be assigned to the label.
  53. ValueType LabelDescriptor_ValueType `protobuf:"varint,2,opt,name=value_type,json=valueType,enum=google.api.LabelDescriptor_ValueType" json:"value_type,omitempty"`
  54. // A human-readable description for the label.
  55. Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
  56. }
  57. func (m *LabelDescriptor) Reset() { *m = LabelDescriptor{} }
  58. func (m *LabelDescriptor) String() string { return proto.CompactTextString(m) }
  59. func (*LabelDescriptor) ProtoMessage() {}
  60. func (*LabelDescriptor) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  61. func (m *LabelDescriptor) GetKey() string {
  62. if m != nil {
  63. return m.Key
  64. }
  65. return ""
  66. }
  67. func (m *LabelDescriptor) GetValueType() LabelDescriptor_ValueType {
  68. if m != nil {
  69. return m.ValueType
  70. }
  71. return LabelDescriptor_STRING
  72. }
  73. func (m *LabelDescriptor) GetDescription() string {
  74. if m != nil {
  75. return m.Description
  76. }
  77. return ""
  78. }
  79. func init() {
  80. proto.RegisterType((*LabelDescriptor)(nil), "google.api.LabelDescriptor")
  81. proto.RegisterEnum("google.api.LabelDescriptor_ValueType", LabelDescriptor_ValueType_name, LabelDescriptor_ValueType_value)
  82. }
  83. func init() { proto.RegisterFile("google/api/label.proto", fileDescriptor0) }
  84. var fileDescriptor0 = []byte{
  85. // 252 bytes of a gzipped FileDescriptorProto
  86. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0xcf, 0xcf, 0x4f,
  87. 0xcf, 0x49, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0xcf, 0x49, 0x4c, 0x4a, 0xcd, 0xd1, 0x2b, 0x28, 0xca,
  88. 0x2f, 0xc9, 0x17, 0xe2, 0x82, 0x88, 0xeb, 0x25, 0x16, 0x64, 0x2a, 0xed, 0x64, 0xe4, 0xe2, 0xf7,
  89. 0x01, 0xc9, 0xb9, 0xa4, 0x16, 0x27, 0x17, 0x65, 0x16, 0x94, 0xe4, 0x17, 0x09, 0x09, 0x70, 0x31,
  90. 0x67, 0xa7, 0x56, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0x98, 0x42, 0x2e, 0x5c, 0x5c,
  91. 0x65, 0x89, 0x39, 0xa5, 0xa9, 0xf1, 0x25, 0x95, 0x05, 0xa9, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0x7c,
  92. 0x46, 0xaa, 0x7a, 0x08, 0x63, 0xf4, 0xd0, 0x8c, 0xd0, 0x0b, 0x03, 0xa9, 0x0e, 0xa9, 0x2c, 0x48,
  93. 0x0d, 0xe2, 0x2c, 0x83, 0x31, 0x85, 0x14, 0xb8, 0xb8, 0x53, 0xa0, 0x4a, 0x32, 0xf3, 0xf3, 0x24,
  94. 0x98, 0xc1, 0xe6, 0x23, 0x0b, 0x29, 0xe9, 0x70, 0x71, 0xc2, 0x75, 0x0a, 0x71, 0x71, 0xb1, 0x05,
  95. 0x87, 0x04, 0x79, 0xfa, 0xb9, 0x0b, 0x30, 0x08, 0x71, 0x70, 0xb1, 0x38, 0xf9, 0xfb, 0xfb, 0x08,
  96. 0x30, 0x0a, 0x71, 0x72, 0xb1, 0x7a, 0xfa, 0x85, 0x98, 0x99, 0x08, 0x30, 0x39, 0xc5, 0x73, 0xf1,
  97. 0x25, 0xe7, 0xe7, 0x22, 0x39, 0xc3, 0x89, 0x0b, 0xec, 0x8e, 0x00, 0x90, 0x2f, 0x03, 0x18, 0xa3,
  98. 0x4c, 0xa1, 0x32, 0xe9, 0xf9, 0x39, 0x89, 0x79, 0xe9, 0x7a, 0xf9, 0x45, 0xe9, 0xfa, 0xe9, 0xa9,
  99. 0x79, 0xe0, 0x30, 0xd0, 0x87, 0x48, 0x25, 0x16, 0x64, 0x16, 0x23, 0x82, 0xc7, 0x1a, 0x4c, 0xfe,
  100. 0x60, 0x64, 0x5c, 0xc4, 0xc4, 0xe2, 0xee, 0x18, 0xe0, 0x99, 0xc4, 0x06, 0x56, 0x6b, 0x0c, 0x08,
  101. 0x00, 0x00, 0xff, 0xff, 0x57, 0x04, 0xaa, 0x1f, 0x49, 0x01, 0x00, 0x00,
  102. }