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/distance_view.proto
20
21package resources
22
23import (
24	reflect "reflect"
25	sync "sync"
26
27	proto "github.com/golang/protobuf/proto"
28	enums "google.golang.org/genproto/googleapis/ads/googleads/v3/enums"
29	_ "google.golang.org/genproto/googleapis/api/annotations"
30	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
31	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
32	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
33)
34
35const (
36	// Verify that this generated code is sufficiently up-to-date.
37	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
38	// Verify that runtime/protoimpl is sufficiently up-to-date.
39	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
40)
41
42// This is a compile-time assertion that a sufficiently up-to-date version
43// of the legacy proto package is being used.
44const _ = proto.ProtoPackageIsVersion4
45
46// A distance view with metrics aggregated by the user's distance from an
47// advertiser's location extensions. Each DistanceBucket includes all
48// impressions that fall within its distance and a single impression will
49// contribute to the metrics for all DistanceBuckets that include the user's
50// distance.
51type DistanceView struct {
52	state         protoimpl.MessageState
53	sizeCache     protoimpl.SizeCache
54	unknownFields protoimpl.UnknownFields
55
56	// Output only. The resource name of the distance view.
57	// Distance view resource names have the form:
58	//
59	// `customers/{customer_id}/distanceViews/1~{distance_bucket}`
60	ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
61	// Output only. Grouping of user distance from location extensions.
62	DistanceBucket enums.DistanceBucketEnum_DistanceBucket `protobuf:"varint,2,opt,name=distance_bucket,json=distanceBucket,proto3,enum=google.ads.googleads.v3.enums.DistanceBucketEnum_DistanceBucket" json:"distance_bucket,omitempty"`
63	// Output only. True if the DistanceBucket is using the metric system, false otherwise.
64	MetricSystem *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=metric_system,json=metricSystem,proto3" json:"metric_system,omitempty"`
65}
66
67func (x *DistanceView) Reset() {
68	*x = DistanceView{}
69	if protoimpl.UnsafeEnabled {
70		mi := &file_google_ads_googleads_v3_resources_distance_view_proto_msgTypes[0]
71		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72		ms.StoreMessageInfo(mi)
73	}
74}
75
76func (x *DistanceView) String() string {
77	return protoimpl.X.MessageStringOf(x)
78}
79
80func (*DistanceView) ProtoMessage() {}
81
82func (x *DistanceView) ProtoReflect() protoreflect.Message {
83	mi := &file_google_ads_googleads_v3_resources_distance_view_proto_msgTypes[0]
84	if protoimpl.UnsafeEnabled && x != nil {
85		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
86		if ms.LoadMessageInfo() == nil {
87			ms.StoreMessageInfo(mi)
88		}
89		return ms
90	}
91	return mi.MessageOf(x)
92}
93
94// Deprecated: Use DistanceView.ProtoReflect.Descriptor instead.
95func (*DistanceView) Descriptor() ([]byte, []int) {
96	return file_google_ads_googleads_v3_resources_distance_view_proto_rawDescGZIP(), []int{0}
97}
98
99func (x *DistanceView) GetResourceName() string {
100	if x != nil {
101		return x.ResourceName
102	}
103	return ""
104}
105
106func (x *DistanceView) GetDistanceBucket() enums.DistanceBucketEnum_DistanceBucket {
107	if x != nil {
108		return x.DistanceBucket
109	}
110	return enums.DistanceBucketEnum_UNSPECIFIED
111}
112
113func (x *DistanceView) GetMetricSystem() *wrapperspb.BoolValue {
114	if x != nil {
115		return x.MetricSystem
116	}
117	return nil
118}
119
120var File_google_ads_googleads_v3_resources_distance_view_proto protoreflect.FileDescriptor
121
122var file_google_ads_googleads_v3_resources_distance_view_proto_rawDesc = []byte{
123	0x0a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f,
124	0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
125	0x63, 0x65, 0x73, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x76, 0x69, 0x65,
126	0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
127	0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x33,
128	0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x33, 0x67, 0x6f, 0x6f, 0x67,
129	0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73,
130	0x2f, 0x76, 0x33, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e,
131	0x63, 0x65, 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
132	0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c,
133	0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
134	0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73,
135	0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f,
136	0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61,
137	0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f,
138	0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
139	0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf8, 0x02, 0x0a, 0x0c, 0x44, 0x69,
140	0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x69, 0x65, 0x77, 0x12, 0x52, 0x0a, 0x0d, 0x72, 0x65,
141	0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
142	0x09, 0x42, 0x2d, 0xe0, 0x41, 0x03, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
143	0x65, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
144	0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x69, 0x65, 0x77,
145	0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x6e,
146	0x0a, 0x0f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65,
147	0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
148	0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76,
149	0x33, 0x2e, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
150	0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61,
151	0x6e, 0x63, 0x65, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0e,
152	0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x44,
153	0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18,
154	0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
155	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75,
156	0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x53, 0x79,
157	0x73, 0x74, 0x65, 0x6d, 0x3a, 0x5e, 0xea, 0x41, 0x5b, 0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
158	0x65, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
159	0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x69, 0x65, 0x77,
160	0x12, 0x32, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x63, 0x75, 0x73,
161	0x74, 0x6f, 0x6d, 0x65, 0x72, 0x7d, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x56,
162	0x69, 0x65, 0x77, 0x73, 0x2f, 0x7b, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x76,
163	0x69, 0x65, 0x77, 0x7d, 0x42, 0xfe, 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
164	0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64,
165	0x73, 0x2e, 0x76, 0x33, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x42, 0x11,
166	0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x69, 0x65, 0x77, 0x50, 0x72, 0x6f, 0x74,
167	0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61,
168	0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
169	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67,
170	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x65, 0x73, 0x6f,
171	0x75, 0x72, 0x63, 0x65, 0x73, 0x3b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0xa2,
172	0x02, 0x03, 0x47, 0x41, 0x41, 0xaa, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x41,
173	0x64, 0x73, 0x2e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x2e, 0x56, 0x33, 0x2e,
174	0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0xca, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67,
175	0x6c, 0x65, 0x5c, 0x41, 0x64, 0x73, 0x5c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73,
176	0x5c, 0x56, 0x33, 0x5c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0xea, 0x02, 0x25,
177	0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x41, 0x64, 0x73, 0x3a, 0x3a, 0x47, 0x6f, 0x6f,
178	0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x3a, 0x3a, 0x56, 0x33, 0x3a, 0x3a, 0x52, 0x65, 0x73, 0x6f,
179	0x75, 0x72, 0x63, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
180}
181
182var (
183	file_google_ads_googleads_v3_resources_distance_view_proto_rawDescOnce sync.Once
184	file_google_ads_googleads_v3_resources_distance_view_proto_rawDescData = file_google_ads_googleads_v3_resources_distance_view_proto_rawDesc
185)
186
187func file_google_ads_googleads_v3_resources_distance_view_proto_rawDescGZIP() []byte {
188	file_google_ads_googleads_v3_resources_distance_view_proto_rawDescOnce.Do(func() {
189		file_google_ads_googleads_v3_resources_distance_view_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_ads_googleads_v3_resources_distance_view_proto_rawDescData)
190	})
191	return file_google_ads_googleads_v3_resources_distance_view_proto_rawDescData
192}
193
194var file_google_ads_googleads_v3_resources_distance_view_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
195var file_google_ads_googleads_v3_resources_distance_view_proto_goTypes = []interface{}{
196	(*DistanceView)(nil),                         // 0: google.ads.googleads.v3.resources.DistanceView
197	(enums.DistanceBucketEnum_DistanceBucket)(0), // 1: google.ads.googleads.v3.enums.DistanceBucketEnum.DistanceBucket
198	(*wrapperspb.BoolValue)(nil),                 // 2: google.protobuf.BoolValue
199}
200var file_google_ads_googleads_v3_resources_distance_view_proto_depIdxs = []int32{
201	1, // 0: google.ads.googleads.v3.resources.DistanceView.distance_bucket:type_name -> google.ads.googleads.v3.enums.DistanceBucketEnum.DistanceBucket
202	2, // 1: google.ads.googleads.v3.resources.DistanceView.metric_system:type_name -> google.protobuf.BoolValue
203	2, // [2:2] is the sub-list for method output_type
204	2, // [2:2] is the sub-list for method input_type
205	2, // [2:2] is the sub-list for extension type_name
206	2, // [2:2] is the sub-list for extension extendee
207	0, // [0:2] is the sub-list for field type_name
208}
209
210func init() { file_google_ads_googleads_v3_resources_distance_view_proto_init() }
211func file_google_ads_googleads_v3_resources_distance_view_proto_init() {
212	if File_google_ads_googleads_v3_resources_distance_view_proto != nil {
213		return
214	}
215	if !protoimpl.UnsafeEnabled {
216		file_google_ads_googleads_v3_resources_distance_view_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
217			switch v := v.(*DistanceView); i {
218			case 0:
219				return &v.state
220			case 1:
221				return &v.sizeCache
222			case 2:
223				return &v.unknownFields
224			default:
225				return nil
226			}
227		}
228	}
229	type x struct{}
230	out := protoimpl.TypeBuilder{
231		File: protoimpl.DescBuilder{
232			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
233			RawDescriptor: file_google_ads_googleads_v3_resources_distance_view_proto_rawDesc,
234			NumEnums:      0,
235			NumMessages:   1,
236			NumExtensions: 0,
237			NumServices:   0,
238		},
239		GoTypes:           file_google_ads_googleads_v3_resources_distance_view_proto_goTypes,
240		DependencyIndexes: file_google_ads_googleads_v3_resources_distance_view_proto_depIdxs,
241		MessageInfos:      file_google_ads_googleads_v3_resources_distance_view_proto_msgTypes,
242	}.Build()
243	File_google_ads_googleads_v3_resources_distance_view_proto = out.File
244	file_google_ads_googleads_v3_resources_distance_view_proto_rawDesc = nil
245	file_google_ads_googleads_v3_resources_distance_view_proto_goTypes = nil
246	file_google_ads_googleads_v3_resources_distance_view_proto_depIdxs = nil
247}
248