You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

619 lines
29 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v0/services/geo_target_constant_service.proto
  3. package services // import "google.golang.org/genproto/googleapis/ads/googleads/v0/services"
  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 resources "google.golang.org/genproto/googleapis/ads/googleads/v0/resources"
  9. import _ "google.golang.org/genproto/googleapis/api/annotations"
  10. import (
  11. context "golang.org/x/net/context"
  12. grpc "google.golang.org/grpc"
  13. )
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var _ = proto.Marshal
  16. var _ = fmt.Errorf
  17. var _ = math.Inf
  18. // This is a compile-time assertion to ensure that this generated file
  19. // is compatible with the proto package it is being compiled against.
  20. // A compilation error at this line likely means your copy of the
  21. // proto package needs to be updated.
  22. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  23. // Request message for
  24. // [GeoTargetConstantService.GetGeoTargetConstant][google.ads.googleads.v0.services.GeoTargetConstantService.GetGeoTargetConstant].
  25. type GetGeoTargetConstantRequest struct {
  26. // The resource name of the geo target constant to fetch.
  27. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  28. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  29. XXX_unrecognized []byte `json:"-"`
  30. XXX_sizecache int32 `json:"-"`
  31. }
  32. func (m *GetGeoTargetConstantRequest) Reset() { *m = GetGeoTargetConstantRequest{} }
  33. func (m *GetGeoTargetConstantRequest) String() string { return proto.CompactTextString(m) }
  34. func (*GetGeoTargetConstantRequest) ProtoMessage() {}
  35. func (*GetGeoTargetConstantRequest) Descriptor() ([]byte, []int) {
  36. return fileDescriptor_geo_target_constant_service_92a604f8c20fd743, []int{0}
  37. }
  38. func (m *GetGeoTargetConstantRequest) XXX_Unmarshal(b []byte) error {
  39. return xxx_messageInfo_GetGeoTargetConstantRequest.Unmarshal(m, b)
  40. }
  41. func (m *GetGeoTargetConstantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  42. return xxx_messageInfo_GetGeoTargetConstantRequest.Marshal(b, m, deterministic)
  43. }
  44. func (dst *GetGeoTargetConstantRequest) XXX_Merge(src proto.Message) {
  45. xxx_messageInfo_GetGeoTargetConstantRequest.Merge(dst, src)
  46. }
  47. func (m *GetGeoTargetConstantRequest) XXX_Size() int {
  48. return xxx_messageInfo_GetGeoTargetConstantRequest.Size(m)
  49. }
  50. func (m *GetGeoTargetConstantRequest) XXX_DiscardUnknown() {
  51. xxx_messageInfo_GetGeoTargetConstantRequest.DiscardUnknown(m)
  52. }
  53. var xxx_messageInfo_GetGeoTargetConstantRequest proto.InternalMessageInfo
  54. func (m *GetGeoTargetConstantRequest) GetResourceName() string {
  55. if m != nil {
  56. return m.ResourceName
  57. }
  58. return ""
  59. }
  60. // Request message for
  61. // [GeoTargetConstantService.SuggestGeoTargetConstantsRequest][].
  62. type SuggestGeoTargetConstantsRequest struct {
  63. // If possible, returned geo targets are translated using this locale. If not,
  64. // en is used by default. This is also used as a hint for returned geo
  65. // targets.
  66. Locale *wrappers.StringValue `protobuf:"bytes,3,opt,name=locale,proto3" json:"locale,omitempty"`
  67. // Returned geo targets are restricted to this country code.
  68. CountryCode *wrappers.StringValue `protobuf:"bytes,5,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
  69. // Required. A selector of geo target constants.
  70. //
  71. // Types that are valid to be assigned to Query:
  72. // *SuggestGeoTargetConstantsRequest_LocationNames_
  73. // *SuggestGeoTargetConstantsRequest_GeoTargets_
  74. Query isSuggestGeoTargetConstantsRequest_Query `protobuf_oneof:"query"`
  75. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  76. XXX_unrecognized []byte `json:"-"`
  77. XXX_sizecache int32 `json:"-"`
  78. }
  79. func (m *SuggestGeoTargetConstantsRequest) Reset() { *m = SuggestGeoTargetConstantsRequest{} }
  80. func (m *SuggestGeoTargetConstantsRequest) String() string { return proto.CompactTextString(m) }
  81. func (*SuggestGeoTargetConstantsRequest) ProtoMessage() {}
  82. func (*SuggestGeoTargetConstantsRequest) Descriptor() ([]byte, []int) {
  83. return fileDescriptor_geo_target_constant_service_92a604f8c20fd743, []int{1}
  84. }
  85. func (m *SuggestGeoTargetConstantsRequest) XXX_Unmarshal(b []byte) error {
  86. return xxx_messageInfo_SuggestGeoTargetConstantsRequest.Unmarshal(m, b)
  87. }
  88. func (m *SuggestGeoTargetConstantsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  89. return xxx_messageInfo_SuggestGeoTargetConstantsRequest.Marshal(b, m, deterministic)
  90. }
  91. func (dst *SuggestGeoTargetConstantsRequest) XXX_Merge(src proto.Message) {
  92. xxx_messageInfo_SuggestGeoTargetConstantsRequest.Merge(dst, src)
  93. }
  94. func (m *SuggestGeoTargetConstantsRequest) XXX_Size() int {
  95. return xxx_messageInfo_SuggestGeoTargetConstantsRequest.Size(m)
  96. }
  97. func (m *SuggestGeoTargetConstantsRequest) XXX_DiscardUnknown() {
  98. xxx_messageInfo_SuggestGeoTargetConstantsRequest.DiscardUnknown(m)
  99. }
  100. var xxx_messageInfo_SuggestGeoTargetConstantsRequest proto.InternalMessageInfo
  101. func (m *SuggestGeoTargetConstantsRequest) GetLocale() *wrappers.StringValue {
  102. if m != nil {
  103. return m.Locale
  104. }
  105. return nil
  106. }
  107. func (m *SuggestGeoTargetConstantsRequest) GetCountryCode() *wrappers.StringValue {
  108. if m != nil {
  109. return m.CountryCode
  110. }
  111. return nil
  112. }
  113. type isSuggestGeoTargetConstantsRequest_Query interface {
  114. isSuggestGeoTargetConstantsRequest_Query()
  115. }
  116. type SuggestGeoTargetConstantsRequest_LocationNames_ struct {
  117. LocationNames *SuggestGeoTargetConstantsRequest_LocationNames `protobuf:"bytes,1,opt,name=location_names,json=locationNames,proto3,oneof"`
  118. }
  119. type SuggestGeoTargetConstantsRequest_GeoTargets_ struct {
  120. GeoTargets *SuggestGeoTargetConstantsRequest_GeoTargets `protobuf:"bytes,2,opt,name=geo_targets,json=geoTargets,proto3,oneof"`
  121. }
  122. func (*SuggestGeoTargetConstantsRequest_LocationNames_) isSuggestGeoTargetConstantsRequest_Query() {}
  123. func (*SuggestGeoTargetConstantsRequest_GeoTargets_) isSuggestGeoTargetConstantsRequest_Query() {}
  124. func (m *SuggestGeoTargetConstantsRequest) GetQuery() isSuggestGeoTargetConstantsRequest_Query {
  125. if m != nil {
  126. return m.Query
  127. }
  128. return nil
  129. }
  130. func (m *SuggestGeoTargetConstantsRequest) GetLocationNames() *SuggestGeoTargetConstantsRequest_LocationNames {
  131. if x, ok := m.GetQuery().(*SuggestGeoTargetConstantsRequest_LocationNames_); ok {
  132. return x.LocationNames
  133. }
  134. return nil
  135. }
  136. func (m *SuggestGeoTargetConstantsRequest) GetGeoTargets() *SuggestGeoTargetConstantsRequest_GeoTargets {
  137. if x, ok := m.GetQuery().(*SuggestGeoTargetConstantsRequest_GeoTargets_); ok {
  138. return x.GeoTargets
  139. }
  140. return nil
  141. }
  142. // XXX_OneofFuncs is for the internal use of the proto package.
  143. func (*SuggestGeoTargetConstantsRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  144. return _SuggestGeoTargetConstantsRequest_OneofMarshaler, _SuggestGeoTargetConstantsRequest_OneofUnmarshaler, _SuggestGeoTargetConstantsRequest_OneofSizer, []interface{}{
  145. (*SuggestGeoTargetConstantsRequest_LocationNames_)(nil),
  146. (*SuggestGeoTargetConstantsRequest_GeoTargets_)(nil),
  147. }
  148. }
  149. func _SuggestGeoTargetConstantsRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  150. m := msg.(*SuggestGeoTargetConstantsRequest)
  151. // query
  152. switch x := m.Query.(type) {
  153. case *SuggestGeoTargetConstantsRequest_LocationNames_:
  154. b.EncodeVarint(1<<3 | proto.WireBytes)
  155. if err := b.EncodeMessage(x.LocationNames); err != nil {
  156. return err
  157. }
  158. case *SuggestGeoTargetConstantsRequest_GeoTargets_:
  159. b.EncodeVarint(2<<3 | proto.WireBytes)
  160. if err := b.EncodeMessage(x.GeoTargets); err != nil {
  161. return err
  162. }
  163. case nil:
  164. default:
  165. return fmt.Errorf("SuggestGeoTargetConstantsRequest.Query has unexpected type %T", x)
  166. }
  167. return nil
  168. }
  169. func _SuggestGeoTargetConstantsRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  170. m := msg.(*SuggestGeoTargetConstantsRequest)
  171. switch tag {
  172. case 1: // query.location_names
  173. if wire != proto.WireBytes {
  174. return true, proto.ErrInternalBadWireType
  175. }
  176. msg := new(SuggestGeoTargetConstantsRequest_LocationNames)
  177. err := b.DecodeMessage(msg)
  178. m.Query = &SuggestGeoTargetConstantsRequest_LocationNames_{msg}
  179. return true, err
  180. case 2: // query.geo_targets
  181. if wire != proto.WireBytes {
  182. return true, proto.ErrInternalBadWireType
  183. }
  184. msg := new(SuggestGeoTargetConstantsRequest_GeoTargets)
  185. err := b.DecodeMessage(msg)
  186. m.Query = &SuggestGeoTargetConstantsRequest_GeoTargets_{msg}
  187. return true, err
  188. default:
  189. return false, nil
  190. }
  191. }
  192. func _SuggestGeoTargetConstantsRequest_OneofSizer(msg proto.Message) (n int) {
  193. m := msg.(*SuggestGeoTargetConstantsRequest)
  194. // query
  195. switch x := m.Query.(type) {
  196. case *SuggestGeoTargetConstantsRequest_LocationNames_:
  197. s := proto.Size(x.LocationNames)
  198. n += 1 // tag and wire
  199. n += proto.SizeVarint(uint64(s))
  200. n += s
  201. case *SuggestGeoTargetConstantsRequest_GeoTargets_:
  202. s := proto.Size(x.GeoTargets)
  203. n += 1 // tag and wire
  204. n += proto.SizeVarint(uint64(s))
  205. n += s
  206. case nil:
  207. default:
  208. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  209. }
  210. return n
  211. }
  212. // A list of location names.
  213. type SuggestGeoTargetConstantsRequest_LocationNames struct {
  214. // A list of location names.
  215. Names []*wrappers.StringValue `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
  216. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  217. XXX_unrecognized []byte `json:"-"`
  218. XXX_sizecache int32 `json:"-"`
  219. }
  220. func (m *SuggestGeoTargetConstantsRequest_LocationNames) Reset() {
  221. *m = SuggestGeoTargetConstantsRequest_LocationNames{}
  222. }
  223. func (m *SuggestGeoTargetConstantsRequest_LocationNames) String() string {
  224. return proto.CompactTextString(m)
  225. }
  226. func (*SuggestGeoTargetConstantsRequest_LocationNames) ProtoMessage() {}
  227. func (*SuggestGeoTargetConstantsRequest_LocationNames) Descriptor() ([]byte, []int) {
  228. return fileDescriptor_geo_target_constant_service_92a604f8c20fd743, []int{1, 0}
  229. }
  230. func (m *SuggestGeoTargetConstantsRequest_LocationNames) XXX_Unmarshal(b []byte) error {
  231. return xxx_messageInfo_SuggestGeoTargetConstantsRequest_LocationNames.Unmarshal(m, b)
  232. }
  233. func (m *SuggestGeoTargetConstantsRequest_LocationNames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  234. return xxx_messageInfo_SuggestGeoTargetConstantsRequest_LocationNames.Marshal(b, m, deterministic)
  235. }
  236. func (dst *SuggestGeoTargetConstantsRequest_LocationNames) XXX_Merge(src proto.Message) {
  237. xxx_messageInfo_SuggestGeoTargetConstantsRequest_LocationNames.Merge(dst, src)
  238. }
  239. func (m *SuggestGeoTargetConstantsRequest_LocationNames) XXX_Size() int {
  240. return xxx_messageInfo_SuggestGeoTargetConstantsRequest_LocationNames.Size(m)
  241. }
  242. func (m *SuggestGeoTargetConstantsRequest_LocationNames) XXX_DiscardUnknown() {
  243. xxx_messageInfo_SuggestGeoTargetConstantsRequest_LocationNames.DiscardUnknown(m)
  244. }
  245. var xxx_messageInfo_SuggestGeoTargetConstantsRequest_LocationNames proto.InternalMessageInfo
  246. func (m *SuggestGeoTargetConstantsRequest_LocationNames) GetNames() []*wrappers.StringValue {
  247. if m != nil {
  248. return m.Names
  249. }
  250. return nil
  251. }
  252. // A list of geo target constant resource names.
  253. type SuggestGeoTargetConstantsRequest_GeoTargets struct {
  254. // A list of geo target constant resource names.
  255. GeoTargetConstants []*wrappers.StringValue `protobuf:"bytes,1,rep,name=geo_target_constants,json=geoTargetConstants,proto3" json:"geo_target_constants,omitempty"`
  256. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  257. XXX_unrecognized []byte `json:"-"`
  258. XXX_sizecache int32 `json:"-"`
  259. }
  260. func (m *SuggestGeoTargetConstantsRequest_GeoTargets) Reset() {
  261. *m = SuggestGeoTargetConstantsRequest_GeoTargets{}
  262. }
  263. func (m *SuggestGeoTargetConstantsRequest_GeoTargets) String() string {
  264. return proto.CompactTextString(m)
  265. }
  266. func (*SuggestGeoTargetConstantsRequest_GeoTargets) ProtoMessage() {}
  267. func (*SuggestGeoTargetConstantsRequest_GeoTargets) Descriptor() ([]byte, []int) {
  268. return fileDescriptor_geo_target_constant_service_92a604f8c20fd743, []int{1, 1}
  269. }
  270. func (m *SuggestGeoTargetConstantsRequest_GeoTargets) XXX_Unmarshal(b []byte) error {
  271. return xxx_messageInfo_SuggestGeoTargetConstantsRequest_GeoTargets.Unmarshal(m, b)
  272. }
  273. func (m *SuggestGeoTargetConstantsRequest_GeoTargets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  274. return xxx_messageInfo_SuggestGeoTargetConstantsRequest_GeoTargets.Marshal(b, m, deterministic)
  275. }
  276. func (dst *SuggestGeoTargetConstantsRequest_GeoTargets) XXX_Merge(src proto.Message) {
  277. xxx_messageInfo_SuggestGeoTargetConstantsRequest_GeoTargets.Merge(dst, src)
  278. }
  279. func (m *SuggestGeoTargetConstantsRequest_GeoTargets) XXX_Size() int {
  280. return xxx_messageInfo_SuggestGeoTargetConstantsRequest_GeoTargets.Size(m)
  281. }
  282. func (m *SuggestGeoTargetConstantsRequest_GeoTargets) XXX_DiscardUnknown() {
  283. xxx_messageInfo_SuggestGeoTargetConstantsRequest_GeoTargets.DiscardUnknown(m)
  284. }
  285. var xxx_messageInfo_SuggestGeoTargetConstantsRequest_GeoTargets proto.InternalMessageInfo
  286. func (m *SuggestGeoTargetConstantsRequest_GeoTargets) GetGeoTargetConstants() []*wrappers.StringValue {
  287. if m != nil {
  288. return m.GeoTargetConstants
  289. }
  290. return nil
  291. }
  292. // Response message for
  293. // [GeoTargetConstantService.SuggestGeoTargetConstants][google.ads.googleads.v0.services.GeoTargetConstantService.SuggestGeoTargetConstants]
  294. type SuggestGeoTargetConstantsResponse struct {
  295. // Geo target constant suggestions.
  296. GeoTargetConstantSuggestions []*GeoTargetConstantSuggestion `protobuf:"bytes,1,rep,name=geo_target_constant_suggestions,json=geoTargetConstantSuggestions,proto3" json:"geo_target_constant_suggestions,omitempty"`
  297. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  298. XXX_unrecognized []byte `json:"-"`
  299. XXX_sizecache int32 `json:"-"`
  300. }
  301. func (m *SuggestGeoTargetConstantsResponse) Reset() { *m = SuggestGeoTargetConstantsResponse{} }
  302. func (m *SuggestGeoTargetConstantsResponse) String() string { return proto.CompactTextString(m) }
  303. func (*SuggestGeoTargetConstantsResponse) ProtoMessage() {}
  304. func (*SuggestGeoTargetConstantsResponse) Descriptor() ([]byte, []int) {
  305. return fileDescriptor_geo_target_constant_service_92a604f8c20fd743, []int{2}
  306. }
  307. func (m *SuggestGeoTargetConstantsResponse) XXX_Unmarshal(b []byte) error {
  308. return xxx_messageInfo_SuggestGeoTargetConstantsResponse.Unmarshal(m, b)
  309. }
  310. func (m *SuggestGeoTargetConstantsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  311. return xxx_messageInfo_SuggestGeoTargetConstantsResponse.Marshal(b, m, deterministic)
  312. }
  313. func (dst *SuggestGeoTargetConstantsResponse) XXX_Merge(src proto.Message) {
  314. xxx_messageInfo_SuggestGeoTargetConstantsResponse.Merge(dst, src)
  315. }
  316. func (m *SuggestGeoTargetConstantsResponse) XXX_Size() int {
  317. return xxx_messageInfo_SuggestGeoTargetConstantsResponse.Size(m)
  318. }
  319. func (m *SuggestGeoTargetConstantsResponse) XXX_DiscardUnknown() {
  320. xxx_messageInfo_SuggestGeoTargetConstantsResponse.DiscardUnknown(m)
  321. }
  322. var xxx_messageInfo_SuggestGeoTargetConstantsResponse proto.InternalMessageInfo
  323. func (m *SuggestGeoTargetConstantsResponse) GetGeoTargetConstantSuggestions() []*GeoTargetConstantSuggestion {
  324. if m != nil {
  325. return m.GeoTargetConstantSuggestions
  326. }
  327. return nil
  328. }
  329. // A geo target constant suggestion.
  330. type GeoTargetConstantSuggestion struct {
  331. // The language this GeoTargetConstantSuggestion is currently translated to.
  332. // It affects the name of geo target fields. For example, if locale=en, then
  333. // name=Spain. If locale=es, then name=España. The default locale will be
  334. // returned if no translation exists for the locale in the request.
  335. Locale *wrappers.StringValue `protobuf:"bytes,1,opt,name=locale,proto3" json:"locale,omitempty"`
  336. // Approximate user population that will be targeted, rounded to the
  337. // nearest 100.
  338. Reach *wrappers.Int64Value `protobuf:"bytes,2,opt,name=reach,proto3" json:"reach,omitempty"`
  339. // If the request searched by location name, this is the location name that
  340. // matched the geo target.
  341. SearchTerm *wrappers.StringValue `protobuf:"bytes,3,opt,name=search_term,json=searchTerm,proto3" json:"search_term,omitempty"`
  342. // The GeoTargetConstant result.
  343. GeoTargetConstant *resources.GeoTargetConstant `protobuf:"bytes,4,opt,name=geo_target_constant,json=geoTargetConstant,proto3" json:"geo_target_constant,omitempty"`
  344. // The list of parents of the geo target constant.
  345. GeoTargetConstantParents []*resources.GeoTargetConstant `protobuf:"bytes,5,rep,name=geo_target_constant_parents,json=geoTargetConstantParents,proto3" json:"geo_target_constant_parents,omitempty"`
  346. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  347. XXX_unrecognized []byte `json:"-"`
  348. XXX_sizecache int32 `json:"-"`
  349. }
  350. func (m *GeoTargetConstantSuggestion) Reset() { *m = GeoTargetConstantSuggestion{} }
  351. func (m *GeoTargetConstantSuggestion) String() string { return proto.CompactTextString(m) }
  352. func (*GeoTargetConstantSuggestion) ProtoMessage() {}
  353. func (*GeoTargetConstantSuggestion) Descriptor() ([]byte, []int) {
  354. return fileDescriptor_geo_target_constant_service_92a604f8c20fd743, []int{3}
  355. }
  356. func (m *GeoTargetConstantSuggestion) XXX_Unmarshal(b []byte) error {
  357. return xxx_messageInfo_GeoTargetConstantSuggestion.Unmarshal(m, b)
  358. }
  359. func (m *GeoTargetConstantSuggestion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  360. return xxx_messageInfo_GeoTargetConstantSuggestion.Marshal(b, m, deterministic)
  361. }
  362. func (dst *GeoTargetConstantSuggestion) XXX_Merge(src proto.Message) {
  363. xxx_messageInfo_GeoTargetConstantSuggestion.Merge(dst, src)
  364. }
  365. func (m *GeoTargetConstantSuggestion) XXX_Size() int {
  366. return xxx_messageInfo_GeoTargetConstantSuggestion.Size(m)
  367. }
  368. func (m *GeoTargetConstantSuggestion) XXX_DiscardUnknown() {
  369. xxx_messageInfo_GeoTargetConstantSuggestion.DiscardUnknown(m)
  370. }
  371. var xxx_messageInfo_GeoTargetConstantSuggestion proto.InternalMessageInfo
  372. func (m *GeoTargetConstantSuggestion) GetLocale() *wrappers.StringValue {
  373. if m != nil {
  374. return m.Locale
  375. }
  376. return nil
  377. }
  378. func (m *GeoTargetConstantSuggestion) GetReach() *wrappers.Int64Value {
  379. if m != nil {
  380. return m.Reach
  381. }
  382. return nil
  383. }
  384. func (m *GeoTargetConstantSuggestion) GetSearchTerm() *wrappers.StringValue {
  385. if m != nil {
  386. return m.SearchTerm
  387. }
  388. return nil
  389. }
  390. func (m *GeoTargetConstantSuggestion) GetGeoTargetConstant() *resources.GeoTargetConstant {
  391. if m != nil {
  392. return m.GeoTargetConstant
  393. }
  394. return nil
  395. }
  396. func (m *GeoTargetConstantSuggestion) GetGeoTargetConstantParents() []*resources.GeoTargetConstant {
  397. if m != nil {
  398. return m.GeoTargetConstantParents
  399. }
  400. return nil
  401. }
  402. func init() {
  403. proto.RegisterType((*GetGeoTargetConstantRequest)(nil), "google.ads.googleads.v0.services.GetGeoTargetConstantRequest")
  404. proto.RegisterType((*SuggestGeoTargetConstantsRequest)(nil), "google.ads.googleads.v0.services.SuggestGeoTargetConstantsRequest")
  405. proto.RegisterType((*SuggestGeoTargetConstantsRequest_LocationNames)(nil), "google.ads.googleads.v0.services.SuggestGeoTargetConstantsRequest.LocationNames")
  406. proto.RegisterType((*SuggestGeoTargetConstantsRequest_GeoTargets)(nil), "google.ads.googleads.v0.services.SuggestGeoTargetConstantsRequest.GeoTargets")
  407. proto.RegisterType((*SuggestGeoTargetConstantsResponse)(nil), "google.ads.googleads.v0.services.SuggestGeoTargetConstantsResponse")
  408. proto.RegisterType((*GeoTargetConstantSuggestion)(nil), "google.ads.googleads.v0.services.GeoTargetConstantSuggestion")
  409. }
  410. // Reference imports to suppress errors if they are not otherwise used.
  411. var _ context.Context
  412. var _ grpc.ClientConn
  413. // This is a compile-time assertion to ensure that this generated file
  414. // is compatible with the grpc package it is being compiled against.
  415. const _ = grpc.SupportPackageIsVersion4
  416. // GeoTargetConstantServiceClient is the client API for GeoTargetConstantService service.
  417. //
  418. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  419. type GeoTargetConstantServiceClient interface {
  420. // Returns the requested geo target constant in full detail.
  421. GetGeoTargetConstant(ctx context.Context, in *GetGeoTargetConstantRequest, opts ...grpc.CallOption) (*resources.GeoTargetConstant, error)
  422. // Returns GeoTargetConstant suggestions by location name or by resource name.
  423. SuggestGeoTargetConstants(ctx context.Context, in *SuggestGeoTargetConstantsRequest, opts ...grpc.CallOption) (*SuggestGeoTargetConstantsResponse, error)
  424. }
  425. type geoTargetConstantServiceClient struct {
  426. cc *grpc.ClientConn
  427. }
  428. func NewGeoTargetConstantServiceClient(cc *grpc.ClientConn) GeoTargetConstantServiceClient {
  429. return &geoTargetConstantServiceClient{cc}
  430. }
  431. func (c *geoTargetConstantServiceClient) GetGeoTargetConstant(ctx context.Context, in *GetGeoTargetConstantRequest, opts ...grpc.CallOption) (*resources.GeoTargetConstant, error) {
  432. out := new(resources.GeoTargetConstant)
  433. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.GeoTargetConstantService/GetGeoTargetConstant", in, out, opts...)
  434. if err != nil {
  435. return nil, err
  436. }
  437. return out, nil
  438. }
  439. func (c *geoTargetConstantServiceClient) SuggestGeoTargetConstants(ctx context.Context, in *SuggestGeoTargetConstantsRequest, opts ...grpc.CallOption) (*SuggestGeoTargetConstantsResponse, error) {
  440. out := new(SuggestGeoTargetConstantsResponse)
  441. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.GeoTargetConstantService/SuggestGeoTargetConstants", in, out, opts...)
  442. if err != nil {
  443. return nil, err
  444. }
  445. return out, nil
  446. }
  447. // GeoTargetConstantServiceServer is the server API for GeoTargetConstantService service.
  448. type GeoTargetConstantServiceServer interface {
  449. // Returns the requested geo target constant in full detail.
  450. GetGeoTargetConstant(context.Context, *GetGeoTargetConstantRequest) (*resources.GeoTargetConstant, error)
  451. // Returns GeoTargetConstant suggestions by location name or by resource name.
  452. SuggestGeoTargetConstants(context.Context, *SuggestGeoTargetConstantsRequest) (*SuggestGeoTargetConstantsResponse, error)
  453. }
  454. func RegisterGeoTargetConstantServiceServer(s *grpc.Server, srv GeoTargetConstantServiceServer) {
  455. s.RegisterService(&_GeoTargetConstantService_serviceDesc, srv)
  456. }
  457. func _GeoTargetConstantService_GetGeoTargetConstant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  458. in := new(GetGeoTargetConstantRequest)
  459. if err := dec(in); err != nil {
  460. return nil, err
  461. }
  462. if interceptor == nil {
  463. return srv.(GeoTargetConstantServiceServer).GetGeoTargetConstant(ctx, in)
  464. }
  465. info := &grpc.UnaryServerInfo{
  466. Server: srv,
  467. FullMethod: "/google.ads.googleads.v0.services.GeoTargetConstantService/GetGeoTargetConstant",
  468. }
  469. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  470. return srv.(GeoTargetConstantServiceServer).GetGeoTargetConstant(ctx, req.(*GetGeoTargetConstantRequest))
  471. }
  472. return interceptor(ctx, in, info, handler)
  473. }
  474. func _GeoTargetConstantService_SuggestGeoTargetConstants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  475. in := new(SuggestGeoTargetConstantsRequest)
  476. if err := dec(in); err != nil {
  477. return nil, err
  478. }
  479. if interceptor == nil {
  480. return srv.(GeoTargetConstantServiceServer).SuggestGeoTargetConstants(ctx, in)
  481. }
  482. info := &grpc.UnaryServerInfo{
  483. Server: srv,
  484. FullMethod: "/google.ads.googleads.v0.services.GeoTargetConstantService/SuggestGeoTargetConstants",
  485. }
  486. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  487. return srv.(GeoTargetConstantServiceServer).SuggestGeoTargetConstants(ctx, req.(*SuggestGeoTargetConstantsRequest))
  488. }
  489. return interceptor(ctx, in, info, handler)
  490. }
  491. var _GeoTargetConstantService_serviceDesc = grpc.ServiceDesc{
  492. ServiceName: "google.ads.googleads.v0.services.GeoTargetConstantService",
  493. HandlerType: (*GeoTargetConstantServiceServer)(nil),
  494. Methods: []grpc.MethodDesc{
  495. {
  496. MethodName: "GetGeoTargetConstant",
  497. Handler: _GeoTargetConstantService_GetGeoTargetConstant_Handler,
  498. },
  499. {
  500. MethodName: "SuggestGeoTargetConstants",
  501. Handler: _GeoTargetConstantService_SuggestGeoTargetConstants_Handler,
  502. },
  503. },
  504. Streams: []grpc.StreamDesc{},
  505. Metadata: "google/ads/googleads/v0/services/geo_target_constant_service.proto",
  506. }
  507. func init() {
  508. proto.RegisterFile("google/ads/googleads/v0/services/geo_target_constant_service.proto", fileDescriptor_geo_target_constant_service_92a604f8c20fd743)
  509. }
  510. var fileDescriptor_geo_target_constant_service_92a604f8c20fd743 = []byte{
  511. // 714 bytes of a gzipped FileDescriptorProto
  512. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcd, 0x6e, 0xd3, 0x4c,
  513. 0x14, 0xfd, 0x9c, 0x34, 0xfd, 0xc4, 0xa4, 0x45, 0x62, 0xe8, 0xc2, 0xa4, 0xa5, 0x04, 0xb7, 0x8b,
  514. 0xd2, 0x85, 0x1d, 0x42, 0xc5, 0xc2, 0x55, 0x85, 0x92, 0x2c, 0x52, 0x24, 0xa8, 0xa2, 0xb4, 0xca,
  515. 0x02, 0x45, 0x8a, 0xa6, 0xf6, 0x65, 0x1a, 0x29, 0xf1, 0xb8, 0x33, 0xe3, 0xa2, 0x0a, 0xb1, 0x41,
  516. 0x7d, 0x03, 0x5e, 0x00, 0xb1, 0xac, 0x58, 0xb1, 0xe7, 0x05, 0xd8, 0xb0, 0xe0, 0x15, 0x58, 0xf1,
  517. 0x14, 0xc8, 0xf6, 0xd8, 0x6d, 0xe5, 0x98, 0x84, 0x96, 0xdd, 0x78, 0xee, 0xbd, 0xe7, 0xcc, 0xb9,
  518. 0x7f, 0x46, 0x4d, 0xca, 0x18, 0x1d, 0x81, 0x45, 0x5c, 0x61, 0xc5, 0xc7, 0xf0, 0x74, 0x52, 0xb3,
  519. 0x04, 0xf0, 0x93, 0xa1, 0x03, 0xc2, 0xa2, 0xc0, 0x06, 0x92, 0x70, 0x0a, 0x72, 0xe0, 0x30, 0x4f,
  520. 0x48, 0xe2, 0xc9, 0x81, 0x32, 0x9a, 0x3e, 0x67, 0x92, 0xe1, 0x6a, 0x1c, 0x68, 0x12, 0x57, 0x98,
  521. 0x29, 0x86, 0x79, 0x52, 0x33, 0x13, 0x8c, 0xca, 0x76, 0x1e, 0x0b, 0x07, 0xc1, 0x02, 0x9e, 0x43,
  522. 0x13, 0xc3, 0x57, 0x56, 0x92, 0x60, 0x7f, 0x68, 0x11, 0xcf, 0x63, 0x92, 0xc8, 0x21, 0xf3, 0x84,
  523. 0xb2, 0xae, 0x2a, 0x6b, 0xf4, 0x75, 0x18, 0xbc, 0xb6, 0xde, 0x70, 0xe2, 0xfb, 0xc0, 0x95, 0xdd,
  524. 0x68, 0xa2, 0xe5, 0x36, 0xc8, 0x36, 0xb0, 0x83, 0x08, 0xbc, 0xa5, 0xb0, 0xbb, 0x70, 0x1c, 0x80,
  525. 0x90, 0x78, 0x0d, 0x2d, 0x26, 0x6f, 0x18, 0x78, 0x64, 0x0c, 0xba, 0x56, 0xd5, 0x36, 0x6e, 0x75,
  526. 0x17, 0x92, 0xcb, 0x3d, 0x32, 0x06, 0xe3, 0xcb, 0x1c, 0xaa, 0xee, 0x07, 0x94, 0x82, 0xc8, 0x02,
  527. 0x89, 0x04, 0x69, 0x0b, 0xcd, 0x8f, 0x98, 0x43, 0x46, 0xa0, 0x17, 0xab, 0xda, 0x46, 0xb9, 0xbe,
  528. 0xa2, 0x72, 0x61, 0x26, 0x2f, 0x33, 0xf7, 0x25, 0x1f, 0x7a, 0xb4, 0x47, 0x46, 0x01, 0x74, 0x95,
  529. 0x2f, 0x7e, 0x86, 0x16, 0x1c, 0x16, 0x78, 0x92, 0x9f, 0x0e, 0x1c, 0xe6, 0x82, 0x5e, 0x9a, 0x21,
  530. 0xb6, 0xac, 0x22, 0x5a, 0xcc, 0x05, 0x7c, 0x8a, 0x6e, 0x87, 0x50, 0x61, 0x4a, 0x22, 0x01, 0x22,
  531. 0x52, 0x50, 0xae, 0x77, 0xcc, 0x69, 0x55, 0x31, 0xa7, 0x49, 0x32, 0x5f, 0x28, 0xe0, 0x30, 0x09,
  532. 0x62, 0xf7, 0xbf, 0xee, 0xe2, 0xe8, 0xf2, 0x05, 0xf6, 0x51, 0xf9, 0xa2, 0x6a, 0x42, 0x2f, 0x44,
  533. 0xbc, 0x2f, 0xff, 0x01, 0x6f, 0x6a, 0x09, 0x49, 0x11, 0x4d, 0xbf, 0x2a, 0x2d, 0xb4, 0x78, 0xe5,
  534. 0x4d, 0xb8, 0x8e, 0x4a, 0x89, 0xe8, 0xe2, 0xd4, 0xbc, 0xc5, 0xae, 0x95, 0x3e, 0x42, 0x17, 0x04,
  535. 0x78, 0x0f, 0x2d, 0x4d, 0x68, 0xbd, 0xd9, 0x00, 0x31, 0xcd, 0x48, 0x68, 0xfe, 0x8f, 0x4a, 0xc7,
  536. 0x01, 0xf0, 0x53, 0xe3, 0x5c, 0x43, 0x0f, 0xff, 0xa0, 0x54, 0xf8, 0xcc, 0x13, 0x80, 0xcf, 0x34,
  537. 0xf4, 0x60, 0xe2, 0x84, 0xc5, 0x91, 0x61, 0xa3, 0xab, 0xa7, 0xec, 0x4c, 0x4f, 0x6c, 0x86, 0x67,
  538. 0x3f, 0x45, 0xe9, 0xae, 0xd0, 0x7c, 0xa3, 0x30, 0x3e, 0x16, 0xc3, 0x31, 0xc9, 0x75, 0xb8, 0xd4,
  539. 0xdc, 0xda, 0x5f, 0x34, 0xf7, 0x63, 0x54, 0xe2, 0x40, 0x9c, 0x23, 0xd5, 0x1a, 0xcb, 0x99, 0xa0,
  540. 0xe7, 0x9e, 0x7c, 0xba, 0xa5, 0x8a, 0x13, 0x79, 0xe2, 0x1d, 0x54, 0x16, 0x40, 0xb8, 0x73, 0x34,
  541. 0x90, 0xc0, 0xc7, 0x33, 0x8d, 0x12, 0x8a, 0x03, 0x0e, 0x80, 0x8f, 0xb1, 0x8b, 0xee, 0x4e, 0xc8,
  542. 0xa6, 0x3e, 0x17, 0xc1, 0x6c, 0xe5, 0x66, 0x30, 0x5d, 0x43, 0xd9, 0x14, 0x76, 0xef, 0x64, 0x12,
  543. 0x87, 0x05, 0x5a, 0x9e, 0x54, 0x33, 0x9f, 0x70, 0x08, 0x5b, 0xa7, 0x14, 0xd5, 0xeb, 0x7a, 0x6c,
  544. 0x7a, 0x86, 0xad, 0x13, 0xa3, 0xd6, 0x3f, 0x17, 0x91, 0x9e, 0x2d, 0x51, 0x5c, 0x7a, 0xfc, 0x55,
  545. 0x43, 0x4b, 0x93, 0xd6, 0x1c, 0x9e, 0xa9, 0x6b, 0x72, 0xd7, 0x63, 0xe5, 0x5a, 0x22, 0x8c, 0xda,
  546. 0xfb, 0x1f, 0x3f, 0x3f, 0x14, 0x36, 0xf1, 0x46, 0xb8, 0xe2, 0xdf, 0x5e, 0xd9, 0xaf, 0x3b, 0xd9,
  547. 0x91, 0xb1, 0x36, 0xdf, 0xe1, 0xef, 0x1a, 0xba, 0x97, 0x3b, 0x2c, 0xb8, 0x79, 0xf3, 0x9d, 0x52,
  548. 0x69, 0xdd, 0x08, 0x23, 0x9e, 0x56, 0xe3, 0x51, 0x24, 0x6c, 0xcd, 0x58, 0x0d, 0x85, 0x65, 0x95,
  549. 0xd8, 0x6a, 0x6a, 0x6d, 0x6d, 0xb3, 0x79, 0x56, 0x40, 0xeb, 0x0e, 0x1b, 0x4f, 0x65, 0x6d, 0xde,
  550. 0xcf, 0x2b, 0x6a, 0x27, 0x6c, 0xf6, 0x8e, 0xf6, 0x6a, 0x57, 0x41, 0x50, 0x36, 0x22, 0x1e, 0x35,
  551. 0x19, 0xa7, 0x16, 0x05, 0x2f, 0x1a, 0x85, 0xe4, 0x67, 0xea, 0x0f, 0x45, 0xfe, 0x1f, 0x7c, 0x3b,
  552. 0x39, 0x7c, 0x2a, 0x14, 0xdb, 0x8d, 0xc6, 0x79, 0xa1, 0xda, 0x8e, 0x01, 0x1b, 0xae, 0x30, 0xe3,
  553. 0x63, 0x78, 0xea, 0xd5, 0x4c, 0x45, 0x2c, 0xbe, 0x25, 0x2e, 0xfd, 0x86, 0x2b, 0xfa, 0xa9, 0x4b,
  554. 0xbf, 0x57, 0xeb, 0x27, 0x2e, 0xbf, 0x0a, 0xeb, 0xf1, 0xbd, 0x6d, 0x37, 0x5c, 0x61, 0xdb, 0xa9,
  555. 0x93, 0x6d, 0xf7, 0x6a, 0xb6, 0x9d, 0xb8, 0x1d, 0xce, 0x47, 0xef, 0x7c, 0xf2, 0x3b, 0x00, 0x00,
  556. 0xff, 0xff, 0x48, 0xae, 0x77, 0xa6, 0x68, 0x08, 0x00, 0x00,
  557. }