blob: 204b7bb2a4e1c458f58d68a6ac1dd94e3ff1ea84 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/services/feed_mapping_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status1 "google.golang.org/grpc/status"
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// Request message for [FeedMappingService.GetFeedMapping][google.ads.googleads.v1.services.FeedMappingService.GetFeedMapping].
type GetFeedMappingRequest struct {
// The resource name of the feed mapping to fetch.
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 *GetFeedMappingRequest) Reset() { *m = GetFeedMappingRequest{} }
func (m *GetFeedMappingRequest) String() string { return proto.CompactTextString(m) }
func (*GetFeedMappingRequest) ProtoMessage() {}
func (*GetFeedMappingRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0c4574cb8d3703b3, []int{0}
}
func (m *GetFeedMappingRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFeedMappingRequest.Unmarshal(m, b)
}
func (m *GetFeedMappingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFeedMappingRequest.Marshal(b, m, deterministic)
}
func (m *GetFeedMappingRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFeedMappingRequest.Merge(m, src)
}
func (m *GetFeedMappingRequest) XXX_Size() int {
return xxx_messageInfo_GetFeedMappingRequest.Size(m)
}
func (m *GetFeedMappingRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetFeedMappingRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetFeedMappingRequest proto.InternalMessageInfo
func (m *GetFeedMappingRequest) GetResourceName() string {
if m != nil {
return m.ResourceName
}
return ""
}
// Request message for [FeedMappingService.MutateFeedMappings][google.ads.googleads.v1.services.FeedMappingService.MutateFeedMappings].
type MutateFeedMappingsRequest struct {
// The ID of the customer whose feed mappings are being modified.
CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
// The list of operations to perform on individual feed mappings.
Operations []*FeedMappingOperation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
// If true, successful operations will be carried out and invalid
// operations will return errors. If false, all operations will be carried
// out in one transaction if and only if they are all valid.
// Default is false.
PartialFailure bool `protobuf:"varint,3,opt,name=partial_failure,json=partialFailure,proto3" json:"partial_failure,omitempty"`
// If true, the request is validated but not executed. Only errors are
// returned, not results.
ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateFeedMappingsRequest) Reset() { *m = MutateFeedMappingsRequest{} }
func (m *MutateFeedMappingsRequest) String() string { return proto.CompactTextString(m) }
func (*MutateFeedMappingsRequest) ProtoMessage() {}
func (*MutateFeedMappingsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0c4574cb8d3703b3, []int{1}
}
func (m *MutateFeedMappingsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateFeedMappingsRequest.Unmarshal(m, b)
}
func (m *MutateFeedMappingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateFeedMappingsRequest.Marshal(b, m, deterministic)
}
func (m *MutateFeedMappingsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateFeedMappingsRequest.Merge(m, src)
}
func (m *MutateFeedMappingsRequest) XXX_Size() int {
return xxx_messageInfo_MutateFeedMappingsRequest.Size(m)
}
func (m *MutateFeedMappingsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MutateFeedMappingsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MutateFeedMappingsRequest proto.InternalMessageInfo
func (m *MutateFeedMappingsRequest) GetCustomerId() string {
if m != nil {
return m.CustomerId
}
return ""
}
func (m *MutateFeedMappingsRequest) GetOperations() []*FeedMappingOperation {
if m != nil {
return m.Operations
}
return nil
}
func (m *MutateFeedMappingsRequest) GetPartialFailure() bool {
if m != nil {
return m.PartialFailure
}
return false
}
func (m *MutateFeedMappingsRequest) GetValidateOnly() bool {
if m != nil {
return m.ValidateOnly
}
return false
}
// A single operation (create, remove) on a feed mapping.
type FeedMappingOperation struct {
// The mutate operation.
//
// Types that are valid to be assigned to Operation:
// *FeedMappingOperation_Create
// *FeedMappingOperation_Remove
Operation isFeedMappingOperation_Operation `protobuf_oneof:"operation"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FeedMappingOperation) Reset() { *m = FeedMappingOperation{} }
func (m *FeedMappingOperation) String() string { return proto.CompactTextString(m) }
func (*FeedMappingOperation) ProtoMessage() {}
func (*FeedMappingOperation) Descriptor() ([]byte, []int) {
return fileDescriptor_0c4574cb8d3703b3, []int{2}
}
func (m *FeedMappingOperation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FeedMappingOperation.Unmarshal(m, b)
}
func (m *FeedMappingOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FeedMappingOperation.Marshal(b, m, deterministic)
}
func (m *FeedMappingOperation) XXX_Merge(src proto.Message) {
xxx_messageInfo_FeedMappingOperation.Merge(m, src)
}
func (m *FeedMappingOperation) XXX_Size() int {
return xxx_messageInfo_FeedMappingOperation.Size(m)
}
func (m *FeedMappingOperation) XXX_DiscardUnknown() {
xxx_messageInfo_FeedMappingOperation.DiscardUnknown(m)
}
var xxx_messageInfo_FeedMappingOperation proto.InternalMessageInfo
type isFeedMappingOperation_Operation interface {
isFeedMappingOperation_Operation()
}
type FeedMappingOperation_Create struct {
Create *resources.FeedMapping `protobuf:"bytes,1,opt,name=create,proto3,oneof"`
}
type FeedMappingOperation_Remove struct {
Remove string `protobuf:"bytes,3,opt,name=remove,proto3,oneof"`
}
func (*FeedMappingOperation_Create) isFeedMappingOperation_Operation() {}
func (*FeedMappingOperation_Remove) isFeedMappingOperation_Operation() {}
func (m *FeedMappingOperation) GetOperation() isFeedMappingOperation_Operation {
if m != nil {
return m.Operation
}
return nil
}
func (m *FeedMappingOperation) GetCreate() *resources.FeedMapping {
if x, ok := m.GetOperation().(*FeedMappingOperation_Create); ok {
return x.Create
}
return nil
}
func (m *FeedMappingOperation) GetRemove() string {
if x, ok := m.GetOperation().(*FeedMappingOperation_Remove); ok {
return x.Remove
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*FeedMappingOperation) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*FeedMappingOperation_Create)(nil),
(*FeedMappingOperation_Remove)(nil),
}
}
// Response message for a feed mapping mutate.
type MutateFeedMappingsResponse struct {
// Errors that pertain to operation failures in the partial failure mode.
// Returned only when partial_failure = true and all errors occur inside the
// operations. If any errors occur outside the operations (e.g. auth errors),
// we return an RPC level error.
PartialFailureError *status.Status `protobuf:"bytes,3,opt,name=partial_failure_error,json=partialFailureError,proto3" json:"partial_failure_error,omitempty"`
// All results for the mutate.
Results []*MutateFeedMappingResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateFeedMappingsResponse) Reset() { *m = MutateFeedMappingsResponse{} }
func (m *MutateFeedMappingsResponse) String() string { return proto.CompactTextString(m) }
func (*MutateFeedMappingsResponse) ProtoMessage() {}
func (*MutateFeedMappingsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0c4574cb8d3703b3, []int{3}
}
func (m *MutateFeedMappingsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateFeedMappingsResponse.Unmarshal(m, b)
}
func (m *MutateFeedMappingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateFeedMappingsResponse.Marshal(b, m, deterministic)
}
func (m *MutateFeedMappingsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateFeedMappingsResponse.Merge(m, src)
}
func (m *MutateFeedMappingsResponse) XXX_Size() int {
return xxx_messageInfo_MutateFeedMappingsResponse.Size(m)
}
func (m *MutateFeedMappingsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MutateFeedMappingsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MutateFeedMappingsResponse proto.InternalMessageInfo
func (m *MutateFeedMappingsResponse) GetPartialFailureError() *status.Status {
if m != nil {
return m.PartialFailureError
}
return nil
}
func (m *MutateFeedMappingsResponse) GetResults() []*MutateFeedMappingResult {
if m != nil {
return m.Results
}
return nil
}
// The result for the feed mapping mutate.
type MutateFeedMappingResult struct {
// Returned for successful operations.
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 *MutateFeedMappingResult) Reset() { *m = MutateFeedMappingResult{} }
func (m *MutateFeedMappingResult) String() string { return proto.CompactTextString(m) }
func (*MutateFeedMappingResult) ProtoMessage() {}
func (*MutateFeedMappingResult) Descriptor() ([]byte, []int) {
return fileDescriptor_0c4574cb8d3703b3, []int{4}
}
func (m *MutateFeedMappingResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateFeedMappingResult.Unmarshal(m, b)
}
func (m *MutateFeedMappingResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateFeedMappingResult.Marshal(b, m, deterministic)
}
func (m *MutateFeedMappingResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateFeedMappingResult.Merge(m, src)
}
func (m *MutateFeedMappingResult) XXX_Size() int {
return xxx_messageInfo_MutateFeedMappingResult.Size(m)
}
func (m *MutateFeedMappingResult) XXX_DiscardUnknown() {
xxx_messageInfo_MutateFeedMappingResult.DiscardUnknown(m)
}
var xxx_messageInfo_MutateFeedMappingResult proto.InternalMessageInfo
func (m *MutateFeedMappingResult) GetResourceName() string {
if m != nil {
return m.ResourceName
}
return ""
}
func init() {
proto.RegisterType((*GetFeedMappingRequest)(nil), "google.ads.googleads.v1.services.GetFeedMappingRequest")
proto.RegisterType((*MutateFeedMappingsRequest)(nil), "google.ads.googleads.v1.services.MutateFeedMappingsRequest")
proto.RegisterType((*FeedMappingOperation)(nil), "google.ads.googleads.v1.services.FeedMappingOperation")
proto.RegisterType((*MutateFeedMappingsResponse)(nil), "google.ads.googleads.v1.services.MutateFeedMappingsResponse")
proto.RegisterType((*MutateFeedMappingResult)(nil), "google.ads.googleads.v1.services.MutateFeedMappingResult")
}
func init() {
proto.RegisterFile("google/ads/googleads/v1/services/feed_mapping_service.proto", fileDescriptor_0c4574cb8d3703b3)
}
var fileDescriptor_0c4574cb8d3703b3 = []byte{
// 668 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcf, 0x6e, 0xd3, 0x4e,
0x10, 0xfe, 0x39, 0xf9, 0xa9, 0xd0, 0x4d, 0x29, 0xd2, 0x42, 0xd5, 0x10, 0x90, 0x88, 0x4c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a4, 0xf8, 0x81, 0x59, 0xe7, 0xe5, 0xa6, 0xff,
0xa8, 0xd7, 0xb5, 0xf1, 0xb1, 0x52, 0xdd, 0xe9, 0x76, 0x3f, 0x55, 0x9a, 0x3b, 0x8a, 0xb0, 0xeb,
0x0b, 0xa2, 0xcc, 0xdc, 0xea, 0xb5, 0x49, 0x59, 0x58, 0x9c, 0xe9, 0x94, 0x7e, 0xd7, 0x17, 0xfd,
0x61, 0x4a, 0xbf, 0xd7, 0xee, 0xeb, 0x94, 0x5f, 0x95, 0x15, 0xe5, 0xb7, 0xed, 0xae, 0x2f, 0x6c,
0x7b, 0x98, 0x64, 0xdb, 0xbd, 0xb6, 0x6d, 0xeb, 0xb4, 0x37, 0x73, 0x85, 0xce, 0xc7, 0x7f, 0x02,
0x00, 0x00, 0xff, 0xff, 0x52, 0x66, 0xd5, 0xbe, 0x4f, 0x06, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// 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.SupportPackageIsVersion6
// FeedMappingServiceClient is the client API for FeedMappingService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type FeedMappingServiceClient interface {
// Returns the requested feed mapping in full detail.
GetFeedMapping(ctx context.Context, in *GetFeedMappingRequest, opts ...grpc.CallOption) (*resources.FeedMapping, error)
// Creates or removes feed mappings. Operation statuses are
// returned.
MutateFeedMappings(ctx context.Context, in *MutateFeedMappingsRequest, opts ...grpc.CallOption) (*MutateFeedMappingsResponse, error)
}
type feedMappingServiceClient struct {
cc grpc.ClientConnInterface
}
func NewFeedMappingServiceClient(cc grpc.ClientConnInterface) FeedMappingServiceClient {
return &feedMappingServiceClient{cc}
}
func (c *feedMappingServiceClient) GetFeedMapping(ctx context.Context, in *GetFeedMappingRequest, opts ...grpc.CallOption) (*resources.FeedMapping, error) {
out := new(resources.FeedMapping)
err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.FeedMappingService/GetFeedMapping", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *feedMappingServiceClient) MutateFeedMappings(ctx context.Context, in *MutateFeedMappingsRequest, opts ...grpc.CallOption) (*MutateFeedMappingsResponse, error) {
out := new(MutateFeedMappingsResponse)
err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.FeedMappingService/MutateFeedMappings", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// FeedMappingServiceServer is the server API for FeedMappingService service.
type FeedMappingServiceServer interface {
// Returns the requested feed mapping in full detail.
GetFeedMapping(context.Context, *GetFeedMappingRequest) (*resources.FeedMapping, error)
// Creates or removes feed mappings. Operation statuses are
// returned.
MutateFeedMappings(context.Context, *MutateFeedMappingsRequest) (*MutateFeedMappingsResponse, error)
}
// UnimplementedFeedMappingServiceServer can be embedded to have forward compatible implementations.
type UnimplementedFeedMappingServiceServer struct {
}
func (*UnimplementedFeedMappingServiceServer) GetFeedMapping(ctx context.Context, req *GetFeedMappingRequest) (*resources.FeedMapping, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetFeedMapping not implemented")
}
func (*UnimplementedFeedMappingServiceServer) MutateFeedMappings(ctx context.Context, req *MutateFeedMappingsRequest) (*MutateFeedMappingsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method MutateFeedMappings not implemented")
}
func RegisterFeedMappingServiceServer(s *grpc.Server, srv FeedMappingServiceServer) {
s.RegisterService(&_FeedMappingService_serviceDesc, srv)
}
func _FeedMappingService_GetFeedMapping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetFeedMappingRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FeedMappingServiceServer).GetFeedMapping(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.ads.googleads.v1.services.FeedMappingService/GetFeedMapping",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FeedMappingServiceServer).GetFeedMapping(ctx, req.(*GetFeedMappingRequest))
}
return interceptor(ctx, in, info, handler)
}
func _FeedMappingService_MutateFeedMappings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MutateFeedMappingsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FeedMappingServiceServer).MutateFeedMappings(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.ads.googleads.v1.services.FeedMappingService/MutateFeedMappings",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FeedMappingServiceServer).MutateFeedMappings(ctx, req.(*MutateFeedMappingsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _FeedMappingService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.ads.googleads.v1.services.FeedMappingService",
HandlerType: (*FeedMappingServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetFeedMapping",
Handler: _FeedMappingService_GetFeedMapping_Handler,
},
{
MethodName: "MutateFeedMappings",
Handler: _FeedMappingService_MutateFeedMappings_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/ads/googleads/v1/services/feed_mapping_service.proto",
}