|
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: google/ads/googleads/v0/services/google_ads_field_service.proto
-
- package services // import "google.golang.org/genproto/googleapis/ads/googleads/v0/services"
-
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import resources "google.golang.org/genproto/googleapis/ads/googleads/v0/resources"
- import _ "google.golang.org/genproto/googleapis/api/annotations"
-
- import (
- context "golang.org/x/net/context"
- grpc "google.golang.org/grpc"
- )
-
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
-
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
-
- // Request message for
- // [GoogleAdsFieldService.GetGoogleAdsField][google.ads.googleads.v0.services.GoogleAdsFieldService.GetGoogleAdsField].
- type GetGoogleAdsFieldRequest struct {
- // The resource name of the field to get.
- ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *GetGoogleAdsFieldRequest) Reset() { *m = GetGoogleAdsFieldRequest{} }
- func (m *GetGoogleAdsFieldRequest) String() string { return proto.CompactTextString(m) }
- func (*GetGoogleAdsFieldRequest) ProtoMessage() {}
- func (*GetGoogleAdsFieldRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_google_ads_field_service_d89cb2ddce8b241d, []int{0}
- }
- func (m *GetGoogleAdsFieldRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_GetGoogleAdsFieldRequest.Unmarshal(m, b)
- }
- func (m *GetGoogleAdsFieldRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_GetGoogleAdsFieldRequest.Marshal(b, m, deterministic)
- }
- func (dst *GetGoogleAdsFieldRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetGoogleAdsFieldRequest.Merge(dst, src)
- }
- func (m *GetGoogleAdsFieldRequest) XXX_Size() int {
- return xxx_messageInfo_GetGoogleAdsFieldRequest.Size(m)
- }
- func (m *GetGoogleAdsFieldRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GetGoogleAdsFieldRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GetGoogleAdsFieldRequest proto.InternalMessageInfo
-
- func (m *GetGoogleAdsFieldRequest) GetResourceName() string {
- if m != nil {
- return m.ResourceName
- }
- return ""
- }
-
- // Request message for
- // [GoogleAdsFieldService.SearchGoogleAdsFields][google.ads.googleads.v0.services.GoogleAdsFieldService.SearchGoogleAdsFields].
- type SearchGoogleAdsFieldsRequest struct {
- // The query string.
- Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
- // Token of the page to retrieve. If not specified, the first page of
- // results will be returned. Use the value obtained from `next_page_token`
- // in the previous response in order to request the next page of results.
- PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
- // Number of elements to retrieve in a single page.
- // When too large a page is requested, the server may decide to further
- // limit the number of returned resources.
- PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *SearchGoogleAdsFieldsRequest) Reset() { *m = SearchGoogleAdsFieldsRequest{} }
- func (m *SearchGoogleAdsFieldsRequest) String() string { return proto.CompactTextString(m) }
- func (*SearchGoogleAdsFieldsRequest) ProtoMessage() {}
- func (*SearchGoogleAdsFieldsRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_google_ads_field_service_d89cb2ddce8b241d, []int{1}
- }
- func (m *SearchGoogleAdsFieldsRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_SearchGoogleAdsFieldsRequest.Unmarshal(m, b)
- }
- func (m *SearchGoogleAdsFieldsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_SearchGoogleAdsFieldsRequest.Marshal(b, m, deterministic)
- }
- func (dst *SearchGoogleAdsFieldsRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SearchGoogleAdsFieldsRequest.Merge(dst, src)
- }
- func (m *SearchGoogleAdsFieldsRequest) XXX_Size() int {
- return xxx_messageInfo_SearchGoogleAdsFieldsRequest.Size(m)
- }
- func (m *SearchGoogleAdsFieldsRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_SearchGoogleAdsFieldsRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_SearchGoogleAdsFieldsRequest proto.InternalMessageInfo
-
- func (m *SearchGoogleAdsFieldsRequest) GetQuery() string {
- if m != nil {
- return m.Query
- }
- return ""
- }
-
- func (m *SearchGoogleAdsFieldsRequest) GetPageToken() string {
- if m != nil {
- return m.PageToken
- }
- return ""
- }
-
- func (m *SearchGoogleAdsFieldsRequest) GetPageSize() int32 {
- if m != nil {
- return m.PageSize
- }
- return 0
- }
-
- // Response message for
- // [GoogleAdsFieldService.SearchGoogleAdsFields][google.ads.googleads.v0.services.GoogleAdsFieldService.SearchGoogleAdsFields].
- type SearchGoogleAdsFieldsResponse struct {
- // The list of fields that matched the query.
- Results []*resources.GoogleAdsField `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
- // Pagination token used to retrieve the next page of results. Pass the
- // content of this string as the `page_token` attribute of the next request.
- // `next_page_token` is not returned for the last page.
- NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
- // Total number of results that match the query ignoring the LIMIT clause.
- TotalResultsCount int64 `protobuf:"varint,3,opt,name=total_results_count,json=totalResultsCount,proto3" json:"total_results_count,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *SearchGoogleAdsFieldsResponse) Reset() { *m = SearchGoogleAdsFieldsResponse{} }
- func (m *SearchGoogleAdsFieldsResponse) String() string { return proto.CompactTextString(m) }
- func (*SearchGoogleAdsFieldsResponse) ProtoMessage() {}
- func (*SearchGoogleAdsFieldsResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_google_ads_field_service_d89cb2ddce8b241d, []int{2}
- }
- func (m *SearchGoogleAdsFieldsResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_SearchGoogleAdsFieldsResponse.Unmarshal(m, b)
- }
- func (m *SearchGoogleAdsFieldsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_SearchGoogleAdsFieldsResponse.Marshal(b, m, deterministic)
- }
- func (dst *SearchGoogleAdsFieldsResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SearchGoogleAdsFieldsResponse.Merge(dst, src)
- }
- func (m *SearchGoogleAdsFieldsResponse) XXX_Size() int {
- return xxx_messageInfo_SearchGoogleAdsFieldsResponse.Size(m)
- }
- func (m *SearchGoogleAdsFieldsResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_SearchGoogleAdsFieldsResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_SearchGoogleAdsFieldsResponse proto.InternalMessageInfo
-
- func (m *SearchGoogleAdsFieldsResponse) GetResults() []*resources.GoogleAdsField {
- if m != nil {
- return m.Results
- }
- return nil
- }
-
- func (m *SearchGoogleAdsFieldsResponse) GetNextPageToken() string {
- if m != nil {
- return m.NextPageToken
- }
- return ""
- }
-
- func (m *SearchGoogleAdsFieldsResponse) GetTotalResultsCount() int64 {
- if m != nil {
- return m.TotalResultsCount
- }
- return 0
- }
-
- func init() {
- proto.RegisterType((*GetGoogleAdsFieldRequest)(nil), "google.ads.googleads.v0.services.GetGoogleAdsFieldRequest")
- proto.RegisterType((*SearchGoogleAdsFieldsRequest)(nil), "google.ads.googleads.v0.services.SearchGoogleAdsFieldsRequest")
- proto.RegisterType((*SearchGoogleAdsFieldsResponse)(nil), "google.ads.googleads.v0.services.SearchGoogleAdsFieldsResponse")
- }
-
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConn
-
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion4
-
- // GoogleAdsFieldServiceClient is the client API for GoogleAdsFieldService service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type GoogleAdsFieldServiceClient interface {
- // Returns just the requested field.
- GetGoogleAdsField(ctx context.Context, in *GetGoogleAdsFieldRequest, opts ...grpc.CallOption) (*resources.GoogleAdsField, error)
- // Returns all fields that match the search query.
- SearchGoogleAdsFields(ctx context.Context, in *SearchGoogleAdsFieldsRequest, opts ...grpc.CallOption) (*SearchGoogleAdsFieldsResponse, error)
- }
-
- type googleAdsFieldServiceClient struct {
- cc *grpc.ClientConn
- }
-
- func NewGoogleAdsFieldServiceClient(cc *grpc.ClientConn) GoogleAdsFieldServiceClient {
- return &googleAdsFieldServiceClient{cc}
- }
-
- func (c *googleAdsFieldServiceClient) GetGoogleAdsField(ctx context.Context, in *GetGoogleAdsFieldRequest, opts ...grpc.CallOption) (*resources.GoogleAdsField, error) {
- out := new(resources.GoogleAdsField)
- err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.GoogleAdsFieldService/GetGoogleAdsField", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *googleAdsFieldServiceClient) SearchGoogleAdsFields(ctx context.Context, in *SearchGoogleAdsFieldsRequest, opts ...grpc.CallOption) (*SearchGoogleAdsFieldsResponse, error) {
- out := new(SearchGoogleAdsFieldsResponse)
- err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.GoogleAdsFieldService/SearchGoogleAdsFields", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- // GoogleAdsFieldServiceServer is the server API for GoogleAdsFieldService service.
- type GoogleAdsFieldServiceServer interface {
- // Returns just the requested field.
- GetGoogleAdsField(context.Context, *GetGoogleAdsFieldRequest) (*resources.GoogleAdsField, error)
- // Returns all fields that match the search query.
- SearchGoogleAdsFields(context.Context, *SearchGoogleAdsFieldsRequest) (*SearchGoogleAdsFieldsResponse, error)
- }
-
- func RegisterGoogleAdsFieldServiceServer(s *grpc.Server, srv GoogleAdsFieldServiceServer) {
- s.RegisterService(&_GoogleAdsFieldService_serviceDesc, srv)
- }
-
- func _GoogleAdsFieldService_GetGoogleAdsField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetGoogleAdsFieldRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GoogleAdsFieldServiceServer).GetGoogleAdsField(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.ads.googleads.v0.services.GoogleAdsFieldService/GetGoogleAdsField",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GoogleAdsFieldServiceServer).GetGoogleAdsField(ctx, req.(*GetGoogleAdsFieldRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _GoogleAdsFieldService_SearchGoogleAdsFields_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SearchGoogleAdsFieldsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GoogleAdsFieldServiceServer).SearchGoogleAdsFields(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.ads.googleads.v0.services.GoogleAdsFieldService/SearchGoogleAdsFields",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GoogleAdsFieldServiceServer).SearchGoogleAdsFields(ctx, req.(*SearchGoogleAdsFieldsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- var _GoogleAdsFieldService_serviceDesc = grpc.ServiceDesc{
- ServiceName: "google.ads.googleads.v0.services.GoogleAdsFieldService",
- HandlerType: (*GoogleAdsFieldServiceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "GetGoogleAdsField",
- Handler: _GoogleAdsFieldService_GetGoogleAdsField_Handler,
- },
- {
- MethodName: "SearchGoogleAdsFields",
- Handler: _GoogleAdsFieldService_SearchGoogleAdsFields_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "google/ads/googleads/v0/services/google_ads_field_service.proto",
- }
-
- func init() {
- proto.RegisterFile("google/ads/googleads/v0/services/google_ads_field_service.proto", fileDescriptor_google_ads_field_service_d89cb2ddce8b241d)
- }
-
- var fileDescriptor_google_ads_field_service_d89cb2ddce8b241d = []byte{
- // 539 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x8b, 0xd3, 0x4e,
- 0x14, 0x27, 0x29, 0xfb, 0xff, 0xbb, 0xa3, 0x8b, 0xec, 0xe8, 0x42, 0x89, 0xbb, 0x58, 0xe2, 0xae,
- 0x96, 0x05, 0x27, 0x75, 0xbd, 0xc8, 0x88, 0x96, 0xac, 0x60, 0x05, 0x41, 0x4a, 0x2b, 0x3d, 0x48,
- 0x21, 0x8c, 0xcd, 0x33, 0x06, 0xdb, 0x99, 0x6c, 0x66, 0x5a, 0x74, 0xc5, 0x83, 0xde, 0x3d, 0xf9,
- 0x0d, 0x3c, 0x7a, 0xf3, 0x13, 0x78, 0xf1, 0xe4, 0xd5, 0xaf, 0xe0, 0xc9, 0x4f, 0x21, 0x93, 0xe9,
- 0x04, 0xbb, 0xdb, 0x58, 0xf4, 0x36, 0x79, 0xbf, 0xf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