您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

144 行
6.2 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v1/resources/label.proto
  3. package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v1/resources"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import wrappers "github.com/golang/protobuf/ptypes/wrappers"
  8. import common "google.golang.org/genproto/googleapis/ads/googleads/v1/common"
  9. import enums "google.golang.org/genproto/googleapis/ads/googleads/v1/enums"
  10. import _ "google.golang.org/genproto/googleapis/api/annotations"
  11. // Reference imports to suppress errors if they are not otherwise used.
  12. var _ = proto.Marshal
  13. var _ = fmt.Errorf
  14. var _ = math.Inf
  15. // This is a compile-time assertion to ensure that this generated file
  16. // is compatible with the proto package it is being compiled against.
  17. // A compilation error at this line likely means your copy of the
  18. // proto package needs to be updated.
  19. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  20. // A label.
  21. type Label struct {
  22. // Name of the resource.
  23. // Label resource names have the form:
  24. // `customers/{customer_id}/labels/{label_id}`
  25. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  26. // Id of the label. Read only.
  27. Id *wrappers.Int64Value `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
  28. // The name of the label.
  29. //
  30. // This field is required and should not be empty when creating a new label.
  31. //
  32. // The length of this string should be between 1 and 80, inclusive.
  33. Name *wrappers.StringValue `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
  34. // Status of the label. Read only.
  35. Status enums.LabelStatusEnum_LabelStatus `protobuf:"varint,4,opt,name=status,proto3,enum=google.ads.googleads.v1.enums.LabelStatusEnum_LabelStatus" json:"status,omitempty"`
  36. // A type of label displaying text on a colored background.
  37. TextLabel *common.TextLabel `protobuf:"bytes,5,opt,name=text_label,json=textLabel,proto3" json:"text_label,omitempty"`
  38. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  39. XXX_unrecognized []byte `json:"-"`
  40. XXX_sizecache int32 `json:"-"`
  41. }
  42. func (m *Label) Reset() { *m = Label{} }
  43. func (m *Label) String() string { return proto.CompactTextString(m) }
  44. func (*Label) ProtoMessage() {}
  45. func (*Label) Descriptor() ([]byte, []int) {
  46. return fileDescriptor_label_ea588ade0f743da2, []int{0}
  47. }
  48. func (m *Label) XXX_Unmarshal(b []byte) error {
  49. return xxx_messageInfo_Label.Unmarshal(m, b)
  50. }
  51. func (m *Label) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  52. return xxx_messageInfo_Label.Marshal(b, m, deterministic)
  53. }
  54. func (dst *Label) XXX_Merge(src proto.Message) {
  55. xxx_messageInfo_Label.Merge(dst, src)
  56. }
  57. func (m *Label) XXX_Size() int {
  58. return xxx_messageInfo_Label.Size(m)
  59. }
  60. func (m *Label) XXX_DiscardUnknown() {
  61. xxx_messageInfo_Label.DiscardUnknown(m)
  62. }
  63. var xxx_messageInfo_Label proto.InternalMessageInfo
  64. func (m *Label) GetResourceName() string {
  65. if m != nil {
  66. return m.ResourceName
  67. }
  68. return ""
  69. }
  70. func (m *Label) GetId() *wrappers.Int64Value {
  71. if m != nil {
  72. return m.Id
  73. }
  74. return nil
  75. }
  76. func (m *Label) GetName() *wrappers.StringValue {
  77. if m != nil {
  78. return m.Name
  79. }
  80. return nil
  81. }
  82. func (m *Label) GetStatus() enums.LabelStatusEnum_LabelStatus {
  83. if m != nil {
  84. return m.Status
  85. }
  86. return enums.LabelStatusEnum_UNSPECIFIED
  87. }
  88. func (m *Label) GetTextLabel() *common.TextLabel {
  89. if m != nil {
  90. return m.TextLabel
  91. }
  92. return nil
  93. }
  94. func init() {
  95. proto.RegisterType((*Label)(nil), "google.ads.googleads.v1.resources.Label")
  96. }
  97. func init() {
  98. proto.RegisterFile("google/ads/googleads/v1/resources/label.proto", fileDescriptor_label_ea588ade0f743da2)
  99. }
  100. var fileDescriptor_label_ea588ade0f743da2 = []byte{
  101. // 411 bytes of a gzipped FileDescriptorProto
  102. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcb, 0x8a, 0xdb, 0x30,
  103. 0x18, 0x85, 0xb1, 0x73, 0x81, 0xa8, 0x97, 0x85, 0x57, 0x26, 0x0d, 0x25, 0x69, 0x09, 0xa4, 0x94,
  104. 0x4a, 0x71, 0x5a, 0xba, 0x50, 0x57, 0x0e, 0x94, 0xb4, 0xa5, 0x94, 0xe0, 0x14, 0x2f, 0x8a, 0x21,
  105. 0x28, 0xb1, 0x6a, 0x0c, 0xb6, 0x64, 0x2c, 0x39, 0xcd, 0xf3, 0x74, 0xd7, 0x3e, 0xca, 0x3c, 0xca,
  106. 0xbc, 0xc0, 0x6c, 0x07, 0x4b, 0x96, 0x27, 0x30, 0x78, 0x66, 0x77, 0x64, 0x7d, 0xe7, 0xe8, 0xbf,
  107. 0x18, 0xbc, 0x4b, 0x38, 0x4f, 0x32, 0x8a, 0x48, 0x2c, 0x90, 0x96, 0xb5, 0x3a, 0x79, 0xa8, 0xa4,
  108. 0x82, 0x57, 0xe5, 0x91, 0x0a, 0x94, 0x91, 0x03, 0xcd, 0x60, 0x51, 0x72, 0xc9, 0x9d, 0x99, 0x66,
  109. 0x20, 0x89, 0x05, 0x6c, 0x71, 0x78, 0xf2, 0x60, 0x8b, 0x8f, 0x51, 0x57, 0xe2, 0x91, 0xe7, 0x39,
  110. 0x67, 0x48, 0xd2, 0xb3, 0xdc, 0x5f, 0x64, 0x8e, 0x97, 0x5d, 0x06, 0xca, 0xaa, 0xbc, 0x79, 0x7e,
  111. 0x2f, 0x24, 0x91, 0x95, 0x68, 0x1c, 0x2f, 0x1b, 0x87, 0x3a, 0x1d, 0xaa, 0xdf, 0xe8, 0x4f, 0x49,
  112. 0x8a, 0x82, 0x96, 0xe6, 0x7e, 0x62, 0x12, 0x8b, 0x14, 0x11, 0xc6, 0xb8, 0x24, 0x32, 0xe5, 0xac,
  113. 0xb9, 0x7d, 0xf5, 0xcf, 0x06, 0x83, 0xef, 0x75, 0xa8, 0xf3, 0x1a, 0x3c, 0x33, 0x75, 0xef, 0x19,
  114. 0xc9, 0xa9, 0x6b, 0x4d, 0xad, 0xc5, 0x28, 0x78, 0x6a, 0x3e, 0xfe, 0x20, 0x39, 0x75, 0xde, 0x02,
  115. 0x3b, 0x8d, 0x5d, 0x7b, 0x6a, 0x2d, 0x9e, 0xac, 0x5e, 0x34, 0x4d, 0x43, 0xf3, 0x32, 0xfc, 0xca,
  116. 0xe4, 0xc7, 0x0f, 0x21, 0xc9, 0x2a, 0x1a, 0xd8, 0x69, 0xec, 0x2c, 0x41, 0x5f, 0x05, 0xf5, 0x14,
  117. 0x3e, 0xb9, 0x87, 0xef, 0x64, 0x99, 0xb2, 0x44, 0xf3, 0x8a, 0x74, 0x02, 0x30, 0xd4, 0xbd, 0xb9,
  118. 0xfd, 0xa9, 0xb5, 0x78, 0xbe, 0xc2, 0xb0, 0x6b, 0xc4, 0x6a, 0x1c, 0x50, 0x55, 0xbe, 0x53, 0x8e,
  119. 0xcf, 0xac, 0xca, 0x2f, 0xcf, 0x41, 0x93, 0xe4, 0x7c, 0x01, 0xe0, 0x6e, 0xca, 0xee, 0x40, 0xd5,
  120. 0xf2, 0xa6, 0x33, 0x57, 0xef, 0x05, 0xfe, 0xa4, 0x67, 0xa9, 0xc2, 0x82, 0x91, 0x34, 0x72, 0x7d,
  121. 0x63, 0x81, 0xf9, 0x91, 0xe7, 0xf0, 0xd1, 0xb5, 0xaf, 0x81, 0x32, 0x6c, 0xeb, 0x46, 0xb7, 0xd6,
  122. 0xaf, 0x6f, 0x8d, 0x21, 0xe1, 0x19, 0x61, 0x09, 0xe4, 0x65, 0x82, 0x12, 0xca, 0xd4, 0x18, 0xcc,
  123. 0x8e, 0x8b, 0x54, 0x3c, 0xf0, 0xd7, 0x7d, 0x6a, 0xd5, 0x5f, 0xbb, 0xb7, 0xf1, 0xfd, 0xff, 0xf6,
  124. 0x6c, 0xa3, 0x23, 0xfd, 0x58, 0x40, 0x2d, 0x6b, 0x15, 0x7a, 0x30, 0x30, 0xe4, 0x95, 0x61, 0x22,
  125. 0x3f, 0x16, 0x51, 0xcb, 0x44, 0xa1, 0x17, 0xb5, 0xcc, 0xb5, 0x3d, 0xd7, 0x17, 0x18, 0xfb, 0xb1,
  126. 0xc0, 0xb8, 0xa5, 0x30, 0x0e, 0x3d, 0x8c, 0x5b, 0xee, 0x30, 0x54, 0xc5, 0xbe, 0xbf, 0x0d, 0x00,
  127. 0x00, 0xff, 0xff, 0xb1, 0x81, 0x7c, 0x83, 0x21, 0x03, 0x00, 0x00,
  128. }