Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

135 rader
5.3 KiB

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