1// Copyright 2020 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15// Code generated by protoc-gen-go. DO NOT EDIT. 16// versions: 17// protoc-gen-go v1.25.0 18// protoc v3.13.0 19// source: google/ads/googleads/v3/resources/label.proto 20 21package resources 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 proto "github.com/golang/protobuf/proto" 28 common "google.golang.org/genproto/googleapis/ads/googleads/v3/common" 29 enums "google.golang.org/genproto/googleapis/ads/googleads/v3/enums" 30 _ "google.golang.org/genproto/googleapis/api/annotations" 31 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 32 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 33 wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" 34) 35 36const ( 37 // Verify that this generated code is sufficiently up-to-date. 38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 39 // Verify that runtime/protoimpl is sufficiently up-to-date. 40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 41) 42 43// This is a compile-time assertion that a sufficiently up-to-date version 44// of the legacy proto package is being used. 45const _ = proto.ProtoPackageIsVersion4 46 47// A label. 48type Label struct { 49 state protoimpl.MessageState 50 sizeCache protoimpl.SizeCache 51 unknownFields protoimpl.UnknownFields 52 53 // Immutable. Name of the resource. 54 // Label resource names have the form: 55 // `customers/{customer_id}/labels/{label_id}` 56 ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` 57 // Output only. Id of the label. Read only. 58 Id *wrapperspb.Int64Value `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 59 // The name of the label. 60 // 61 // This field is required and should not be empty when creating a new label. 62 // 63 // The length of this string should be between 1 and 80, inclusive. 64 Name *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` 65 // Output only. Status of the label. Read only. 66 Status enums.LabelStatusEnum_LabelStatus `protobuf:"varint,4,opt,name=status,proto3,enum=google.ads.googleads.v3.enums.LabelStatusEnum_LabelStatus" json:"status,omitempty"` 67 // A type of label displaying text on a colored background. 68 TextLabel *common.TextLabel `protobuf:"bytes,5,opt,name=text_label,json=textLabel,proto3" json:"text_label,omitempty"` 69} 70 71func (x *Label) Reset() { 72 *x = Label{} 73 if protoimpl.UnsafeEnabled { 74 mi := &file_google_ads_googleads_v3_resources_label_proto_msgTypes[0] 75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 76 ms.StoreMessageInfo(mi) 77 } 78} 79 80func (x *Label) String() string { 81 return protoimpl.X.MessageStringOf(x) 82} 83 84func (*Label) ProtoMessage() {} 85 86func (x *Label) ProtoReflect() protoreflect.Message { 87 mi := &file_google_ads_googleads_v3_resources_label_proto_msgTypes[0] 88 if protoimpl.UnsafeEnabled && x != nil { 89 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 90 if ms.LoadMessageInfo() == nil { 91 ms.StoreMessageInfo(mi) 92 } 93 return ms 94 } 95 return mi.MessageOf(x) 96} 97 98// Deprecated: Use Label.ProtoReflect.Descriptor instead. 99func (*Label) Descriptor() ([]byte, []int) { 100 return file_google_ads_googleads_v3_resources_label_proto_rawDescGZIP(), []int{0} 101} 102 103func (x *Label) GetResourceName() string { 104 if x != nil { 105 return x.ResourceName 106 } 107 return "" 108} 109 110func (x *Label) GetId() *wrapperspb.Int64Value { 111 if x != nil { 112 return x.Id 113 } 114 return nil 115} 116 117func (x *Label) GetName() *wrapperspb.StringValue { 118 if x != nil { 119 return x.Name 120 } 121 return nil 122} 123 124func (x *Label) GetStatus() enums.LabelStatusEnum_LabelStatus { 125 if x != nil { 126 return x.Status 127 } 128 return enums.LabelStatusEnum_UNSPECIFIED 129} 130 131func (x *Label) GetTextLabel() *common.TextLabel { 132 if x != nil { 133 return x.TextLabel 134 } 135 return nil 136} 137 138var File_google_ads_googleads_v3_resources_label_proto protoreflect.FileDescriptor 139 140var file_google_ads_googleads_v3_resources_label_proto_rawDesc = []byte{ 141 0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 142 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 143 0x63, 0x65, 0x73, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 144 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 145 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x33, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 146 0x65, 0x73, 0x1a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 147 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 148 0x6f, 0x6e, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x2e, 0x70, 0x72, 149 0x6f, 0x74, 0x6f, 0x1a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f, 150 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x65, 0x6e, 0x75, 151 0x6d, 0x73, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 152 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 153 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 154 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 155 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 156 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 157 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 158 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 159 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 160 0xa5, 0x03, 0x0a, 0x05, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x4b, 0x0a, 0x0d, 0x72, 0x65, 0x73, 161 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 162 0x42, 0x26, 0xe0, 0x41, 0x05, 0xfa, 0x41, 0x20, 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 163 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 164 0x6f, 0x6d, 0x2f, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 165 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 166 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 167 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 168 0x03, 0xe0, 0x41, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 169 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 170 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 171 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x57, 0x0a, 0x06, 0x73, 0x74, 172 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 173 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 174 0x73, 0x2e, 0x76, 0x33, 0x2e, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 175 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 176 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 177 0x74, 0x75, 0x73, 0x12, 0x48, 0x0a, 0x0a, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x6c, 0x61, 0x62, 0x65, 178 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 179 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 180 0x33, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x4c, 0x61, 0x62, 181 0x65, 0x6c, 0x52, 0x09, 0x74, 0x65, 0x78, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x3a, 0x48, 0xea, 182 0x41, 0x45, 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 183 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4c, 0x61, 0x62, 184 0x65, 0x6c, 0x12, 0x23, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x63, 185 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x7d, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2f, 186 0x7b, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x7d, 0x42, 0xf7, 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 187 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 188 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x33, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 189 0x73, 0x42, 0x0a, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 190 0x4a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 191 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 192 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 193 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 194 0x73, 0x3b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x41, 195 0x41, 0xaa, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x41, 0x64, 0x73, 0x2e, 0x47, 196 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x2e, 0x56, 0x33, 0x2e, 0x52, 0x65, 0x73, 0x6f, 197 0x75, 0x72, 0x63, 0x65, 0x73, 0xca, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x41, 198 0x64, 0x73, 0x5c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x5c, 0x56, 0x33, 0x5c, 199 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0xea, 0x02, 0x25, 0x47, 0x6f, 0x6f, 0x67, 200 0x6c, 0x65, 0x3a, 0x3a, 0x41, 0x64, 0x73, 0x3a, 0x3a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 201 0x64, 0x73, 0x3a, 0x3a, 0x56, 0x33, 0x3a, 0x3a, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 202 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 203} 204 205var ( 206 file_google_ads_googleads_v3_resources_label_proto_rawDescOnce sync.Once 207 file_google_ads_googleads_v3_resources_label_proto_rawDescData = file_google_ads_googleads_v3_resources_label_proto_rawDesc 208) 209 210func file_google_ads_googleads_v3_resources_label_proto_rawDescGZIP() []byte { 211 file_google_ads_googleads_v3_resources_label_proto_rawDescOnce.Do(func() { 212 file_google_ads_googleads_v3_resources_label_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_ads_googleads_v3_resources_label_proto_rawDescData) 213 }) 214 return file_google_ads_googleads_v3_resources_label_proto_rawDescData 215} 216 217var file_google_ads_googleads_v3_resources_label_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 218var file_google_ads_googleads_v3_resources_label_proto_goTypes = []interface{}{ 219 (*Label)(nil), // 0: google.ads.googleads.v3.resources.Label 220 (*wrapperspb.Int64Value)(nil), // 1: google.protobuf.Int64Value 221 (*wrapperspb.StringValue)(nil), // 2: google.protobuf.StringValue 222 (enums.LabelStatusEnum_LabelStatus)(0), // 3: google.ads.googleads.v3.enums.LabelStatusEnum.LabelStatus 223 (*common.TextLabel)(nil), // 4: google.ads.googleads.v3.common.TextLabel 224} 225var file_google_ads_googleads_v3_resources_label_proto_depIdxs = []int32{ 226 1, // 0: google.ads.googleads.v3.resources.Label.id:type_name -> google.protobuf.Int64Value 227 2, // 1: google.ads.googleads.v3.resources.Label.name:type_name -> google.protobuf.StringValue 228 3, // 2: google.ads.googleads.v3.resources.Label.status:type_name -> google.ads.googleads.v3.enums.LabelStatusEnum.LabelStatus 229 4, // 3: google.ads.googleads.v3.resources.Label.text_label:type_name -> google.ads.googleads.v3.common.TextLabel 230 4, // [4:4] is the sub-list for method output_type 231 4, // [4:4] is the sub-list for method input_type 232 4, // [4:4] is the sub-list for extension type_name 233 4, // [4:4] is the sub-list for extension extendee 234 0, // [0:4] is the sub-list for field type_name 235} 236 237func init() { file_google_ads_googleads_v3_resources_label_proto_init() } 238func file_google_ads_googleads_v3_resources_label_proto_init() { 239 if File_google_ads_googleads_v3_resources_label_proto != nil { 240 return 241 } 242 if !protoimpl.UnsafeEnabled { 243 file_google_ads_googleads_v3_resources_label_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 244 switch v := v.(*Label); i { 245 case 0: 246 return &v.state 247 case 1: 248 return &v.sizeCache 249 case 2: 250 return &v.unknownFields 251 default: 252 return nil 253 } 254 } 255 } 256 type x struct{} 257 out := protoimpl.TypeBuilder{ 258 File: protoimpl.DescBuilder{ 259 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 260 RawDescriptor: file_google_ads_googleads_v3_resources_label_proto_rawDesc, 261 NumEnums: 0, 262 NumMessages: 1, 263 NumExtensions: 0, 264 NumServices: 0, 265 }, 266 GoTypes: file_google_ads_googleads_v3_resources_label_proto_goTypes, 267 DependencyIndexes: file_google_ads_googleads_v3_resources_label_proto_depIdxs, 268 MessageInfos: file_google_ads_googleads_v3_resources_label_proto_msgTypes, 269 }.Build() 270 File_google_ads_googleads_v3_resources_label_proto = out.File 271 file_google_ads_googleads_v3_resources_label_proto_rawDesc = nil 272 file_google_ads_googleads_v3_resources_label_proto_goTypes = nil 273 file_google_ads_googleads_v3_resources_label_proto_depIdxs = nil 274} 275