| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/ads/googleads/v1/services/feed_item_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" |
| field_mask "google.golang.org/genproto/protobuf/field_mask" |
| 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 [FeedItemService.GetFeedItem][google.ads.googleads.v1.services.FeedItemService.GetFeedItem]. |
| type GetFeedItemRequest struct { |
| // The resource name of the feed item 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 *GetFeedItemRequest) Reset() { *m = GetFeedItemRequest{} } |
| func (m *GetFeedItemRequest) String() string { return proto.CompactTextString(m) } |
| func (*GetFeedItemRequest) ProtoMessage() {} |
| func (*GetFeedItemRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_7e460b42cd95bced, []int{0} |
| } |
| |
| func (m *GetFeedItemRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_GetFeedItemRequest.Unmarshal(m, b) |
| } |
| func (m *GetFeedItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_GetFeedItemRequest.Marshal(b, m, deterministic) |
| } |
| func (m *GetFeedItemRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetFeedItemRequest.Merge(m, src) |
| } |
| func (m *GetFeedItemRequest) XXX_Size() int { |
| return xxx_messageInfo_GetFeedItemRequest.Size(m) |
| } |
| func (m *GetFeedItemRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_GetFeedItemRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_GetFeedItemRequest proto.InternalMessageInfo |
| |
| func (m *GetFeedItemRequest) GetResourceName() string { |
| if m != nil { |
| return m.ResourceName |
| } |
| return "" |
| } |
| |
| // Request message for [FeedItemService.MutateFeedItems][google.ads.googleads.v1.services.FeedItemService.MutateFeedItems]. |
| type MutateFeedItemsRequest struct { |
| // The ID of the customer whose feed items 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 items. |
| Operations []*FeedItemOperation `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 *MutateFeedItemsRequest) Reset() { *m = MutateFeedItemsRequest{} } |
| func (m *MutateFeedItemsRequest) String() string { return proto.CompactTextString(m) } |
| func (*MutateFeedItemsRequest) ProtoMessage() {} |
| func (*MutateFeedItemsRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_7e460b42cd95bced, []int{1} |
| } |
| |
| func (m *MutateFeedItemsRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_MutateFeedItemsRequest.Unmarshal(m, b) |
| } |
| func (m *MutateFeedItemsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_MutateFeedItemsRequest.Marshal(b, m, deterministic) |
| } |
| func (m *MutateFeedItemsRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_MutateFeedItemsRequest.Merge(m, src) |
| } |
| func (m *MutateFeedItemsRequest) XXX_Size() int { |
| return xxx_messageInfo_MutateFeedItemsRequest.Size(m) |
| } |
| func (m *MutateFeedItemsRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_MutateFeedItemsRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_MutateFeedItemsRequest proto.InternalMessageInfo |
| |
| func (m *MutateFeedItemsRequest) GetCustomerId() string { |
| if m != nil { |
| return m.CustomerId |
| } |
| return "" |
| } |
| |
| func (m *MutateFeedItemsRequest) GetOperations() []*FeedItemOperation { |
| if m != nil { |
| return m.Operations |
| } |
| return nil |
| } |
| |
| func (m *MutateFeedItemsRequest) GetPartialFailure() bool { |
| if m != nil { |
| return m.PartialFailure |
| } |
| return false |
| } |
| |
| func (m *MutateFeedItemsRequest) GetValidateOnly() bool { |
| if m != nil { |
| return m.ValidateOnly |
| } |
| return false |
| } |
| |
| // A single operation (create, update, remove) on an feed item. |
| type FeedItemOperation struct { |
| // FieldMask that determines which resource fields are modified in an update. |
| UpdateMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` |
| // The mutate operation. |
| // |
| // Types that are valid to be assigned to Operation: |
| // *FeedItemOperation_Create |
| // *FeedItemOperation_Update |
| // *FeedItemOperation_Remove |
| Operation isFeedItemOperation_Operation `protobuf_oneof:"operation"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *FeedItemOperation) Reset() { *m = FeedItemOperation{} } |
| func (m *FeedItemOperation) String() string { return proto.CompactTextString(m) } |
| func (*FeedItemOperation) ProtoMessage() {} |
| func (*FeedItemOperation) Descriptor() ([]byte, []int) { |
| return fileDescriptor_7e460b42cd95bced, []int{2} |
| } |
| |
| func (m *FeedItemOperation) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_FeedItemOperation.Unmarshal(m, b) |
| } |
| func (m *FeedItemOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_FeedItemOperation.Marshal(b, m, deterministic) |
| } |
| func (m *FeedItemOperation) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_FeedItemOperation.Merge(m, src) |
| } |
| func (m *FeedItemOperation) XXX_Size() int { |
| return xxx_messageInfo_FeedItemOperation.Size(m) |
| } |
| func (m *FeedItemOperation) XXX_DiscardUnknown() { |
| xxx_messageInfo_FeedItemOperation.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_FeedItemOperation proto.InternalMessageInfo |
| |
| func (m *FeedItemOperation) GetUpdateMask() *field_mask.FieldMask { |
| if m != nil { |
| return m.UpdateMask |
| } |
| return nil |
| } |
| |
| type isFeedItemOperation_Operation interface { |
| isFeedItemOperation_Operation() |
| } |
| |
| type FeedItemOperation_Create struct { |
| Create *resources.FeedItem `protobuf:"bytes,1,opt,name=create,proto3,oneof"` |
| } |
| |
| type FeedItemOperation_Update struct { |
| Update *resources.FeedItem `protobuf:"bytes,2,opt,name=update,proto3,oneof"` |
| } |
| |
| type FeedItemOperation_Remove struct { |
| Remove string `protobuf:"bytes,3,opt,name=remove,proto3,oneof"` |
| } |
| |
| func (*FeedItemOperation_Create) isFeedItemOperation_Operation() {} |
| |
| func (*FeedItemOperation_Update) isFeedItemOperation_Operation() {} |
| |
| func (*FeedItemOperation_Remove) isFeedItemOperation_Operation() {} |
| |
| func (m *FeedItemOperation) GetOperation() isFeedItemOperation_Operation { |
| if m != nil { |
| return m.Operation |
| } |
| return nil |
| } |
| |
| func (m *FeedItemOperation) GetCreate() *resources.FeedItem { |
| if x, ok := m.GetOperation().(*FeedItemOperation_Create); ok { |
| return x.Create |
| } |
| return nil |
| } |
| |
| func (m *FeedItemOperation) GetUpdate() *resources.FeedItem { |
| if x, ok := m.GetOperation().(*FeedItemOperation_Update); ok { |
| return x.Update |
| } |
| return nil |
| } |
| |
| func (m *FeedItemOperation) GetRemove() string { |
| if x, ok := m.GetOperation().(*FeedItemOperation_Remove); ok { |
| return x.Remove |
| } |
| return "" |
| } |
| |
| // XXX_OneofWrappers is for the internal use of the proto package. |
| func (*FeedItemOperation) XXX_OneofWrappers() []interface{} { |
| return []interface{}{ |
| (*FeedItemOperation_Create)(nil), |
| (*FeedItemOperation_Update)(nil), |
| (*FeedItemOperation_Remove)(nil), |
| } |
| } |
| |
| // Response message for an feed item mutate. |
| type MutateFeedItemsResponse 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 []*MutateFeedItemResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *MutateFeedItemsResponse) Reset() { *m = MutateFeedItemsResponse{} } |
| func (m *MutateFeedItemsResponse) String() string { return proto.CompactTextString(m) } |
| func (*MutateFeedItemsResponse) ProtoMessage() {} |
| func (*MutateFeedItemsResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_7e460b42cd95bced, []int{3} |
| } |
| |
| func (m *MutateFeedItemsResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_MutateFeedItemsResponse.Unmarshal(m, b) |
| } |
| func (m *MutateFeedItemsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_MutateFeedItemsResponse.Marshal(b, m, deterministic) |
| } |
| func (m *MutateFeedItemsResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_MutateFeedItemsResponse.Merge(m, src) |
| } |
| func (m *MutateFeedItemsResponse) XXX_Size() int { |
| return xxx_messageInfo_MutateFeedItemsResponse.Size(m) |
| } |
| func (m *MutateFeedItemsResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_MutateFeedItemsResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_MutateFeedItemsResponse proto.InternalMessageInfo |
| |
| func (m *MutateFeedItemsResponse) GetPartialFailureError() *status.Status { |
| if m != nil { |
| return m.PartialFailureError |
| } |
| return nil |
| } |
| |
| func (m *MutateFeedItemsResponse) GetResults() []*MutateFeedItemResult { |
| if m != nil { |
| return m.Results |
| } |
| return nil |
| } |
| |
| // The result for the feed item mutate. |
| type MutateFeedItemResult 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 *MutateFeedItemResult) Reset() { *m = MutateFeedItemResult{} } |
| func (m *MutateFeedItemResult) String() string { return proto.CompactTextString(m) } |
| func (*MutateFeedItemResult) ProtoMessage() {} |
| func (*MutateFeedItemResult) Descriptor() ([]byte, []int) { |
| return fileDescriptor_7e460b42cd95bced, []int{4} |
| } |
| |
| func (m *MutateFeedItemResult) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_MutateFeedItemResult.Unmarshal(m, b) |
| } |
| func (m *MutateFeedItemResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_MutateFeedItemResult.Marshal(b, m, deterministic) |
| } |
| func (m *MutateFeedItemResult) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_MutateFeedItemResult.Merge(m, src) |
| } |
| func (m *MutateFeedItemResult) XXX_Size() int { |
| return xxx_messageInfo_MutateFeedItemResult.Size(m) |
| } |
| func (m *MutateFeedItemResult) XXX_DiscardUnknown() { |
| xxx_messageInfo_MutateFeedItemResult.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_MutateFeedItemResult proto.InternalMessageInfo |
| |
| func (m *MutateFeedItemResult) GetResourceName() string { |
| if m != nil { |
| return m.ResourceName |
| } |
| return "" |
| } |
| |
| func init() { |
| proto.RegisterType((*GetFeedItemRequest)(nil), "google.ads.googleads.v1.services.GetFeedItemRequest") |
| proto.RegisterType((*MutateFeedItemsRequest)(nil), "google.ads.googleads.v1.services.MutateFeedItemsRequest") |
| proto.RegisterType((*FeedItemOperation)(nil), "google.ads.googleads.v1.services.FeedItemOperation") |
| proto.RegisterType((*MutateFeedItemsResponse)(nil), "google.ads.googleads.v1.services.MutateFeedItemsResponse") |
| proto.RegisterType((*MutateFeedItemResult)(nil), "google.ads.googleads.v1.services.MutateFeedItemResult") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/ads/googleads/v1/services/feed_item_service.proto", fileDescriptor_7e460b42cd95bced) |
| } |
| |
| var fileDescriptor_7e460b42cd95bced = []byte{ |
| // 722 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x41, 0x6b, 0xdb, 0x4a, |
| 0x10, 0x7e, 0xb2, 0x1f, 0x79, 0x2f, 0xab, 0xb4, 0xa1, 0xdb, 0xb4, 0x31, 0x6e, 0xa1, 0x46, 0x0d, |
| 0x34, 0x38, 0x54, 0xc2, 0x76, 0x29, 0x89, 0x42, 0x0e, 0x0e, 0xc4, 0x49, 0x0e, 0x69, 0x82, 0x02, |
| 0x39, 0x14, 0x83, 0xd8, 0x48, 0x63, 0x23, 0x22, 0x69, 0xd5, 0xdd, 0x95, 0x21, 0x84, 0x5c, 0x0a, |
| 0xfd, 0x05, 0xbd, 0xf5, 0x58, 0xe8, 0xa5, 0xd7, 0xfe, 0x82, 0x5e, 0x73, 0xed, 0xb5, 0xc7, 0x9e, |
| 0xfa, 0x17, 0x7a, 0x29, 0xd2, 0x6a, 0xed, 0xd8, 0x69, 0x70, 0x93, 0xdb, 0x78, 0xf6, 0xfb, 0xbe, |
| 0xf9, 0x76, 0x66, 0x47, 0x46, 0xab, 0x7d, 0x4a, 0xfb, 0x21, 0x58, 0xc4, 0xe7, 0x96, 0x0c, 0xb3, |
| 0x68, 0xd0, 0xb0, 0x38, 0xb0, 0x41, 0xe0, 0x01, 0xb7, 0x7a, 0x00, 0xbe, 0x1b, 0x08, 0x88, 0xdc, |
| 0x22, 0x65, 0x26, 0x8c, 0x0a, 0x8a, 0x6b, 0x12, 0x6e, 0x12, 0x9f, 0x9b, 0x43, 0xa6, 0x39, 0x68, |
| 0x98, 0x8a, 0x59, 0x6d, 0x5c, 0xa7, 0xcd, 0x80, 0xd3, 0x94, 0x8d, 0x89, 0x4b, 0xd1, 0xea, 0x63, |
| 0x45, 0x49, 0x02, 0x8b, 0xc4, 0x31, 0x15, 0x44, 0x04, 0x34, 0xe6, 0xc5, 0x69, 0x51, 0xd2, 0xca, |
| 0x7f, 0x1d, 0xa7, 0x3d, 0xab, 0x17, 0x40, 0xe8, 0xbb, 0x11, 0xe1, 0x27, 0x05, 0x62, 0xb1, 0x40, |
| 0xb0, 0xc4, 0xb3, 0xb8, 0x20, 0x22, 0xe5, 0x13, 0x07, 0x99, 0xb0, 0x17, 0x06, 0x10, 0x0b, 0x79, |
| 0x60, 0xac, 0x21, 0xbc, 0x0d, 0xa2, 0x03, 0xe0, 0xef, 0x0a, 0x88, 0x1c, 0x78, 0x93, 0x02, 0x17, |
| 0xf8, 0x29,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d2, 0x87, 0x61, 0xa3, 0x7e, 0x3e, 0x32, 0x6f, 0x47, 0xb9, 0x90, |
| 0xad, 0xd5, 0xab, 0x8f, 0x2e, 0xda, 0x95, 0x51, 0xb1, 0x22, 0x4a, 0x02, 0x6e, 0x7a, 0x34, 0xda, |
| 0xfc, 0xa5, 0xa1, 0x25, 0x8f, 0x46, 0x53, 0x8d, 0x6d, 0x2e, 0x4c, 0x8c, 0xf0, 0x20, 0x5b, 0xce, |
| 0x03, 0xed, 0xf5, 0x4e, 0xc1, 0xec, 0xd3, 0x90, 0xc4, 0x7d, 0x93, 0xb2, 0xbe, 0xd5, 0x87, 0x38, |
| 0x5f, 0x5d, 0x6b, 0x54, 0xeb, 0xfa, 0xbf, 0x84, 0x75, 0x15, 0x7c, 0x2c, 0x95, 0xb7, 0xdb, 0xed, |
| 0xcf, 0xa5, 0xda, 0xb6, 0x14, 0x6c, 0xfb, 0xdc, 0x94, 0x61, 0x16, 0x1d, 0x35, 0xcc, 0xa2, 0x30, |
| 0xbf, 0x50, 0x90, 0x6e, 0xdb, 0xe7, 0xdd, 0x21, 0xa4, 0x7b, 0xd4, 0xe8, 0x2a, 0xc8, 0xcf, 0xd2, |
| 0x92, 0xcc, 0xdb, 0x76, 0xdb, 0xe7, 0xb6, 0x3d, 0x04, 0xd9, 0xf6, 0x51, 0xc3, 0xb6, 0x15, 0xec, |
| 0x78, 0x26, 0xf7, 0xd9, 0xfa, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x26, 0x2e, 0xd8, 0xb7, 0xb9, 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 |
| |
| // FeedItemServiceClient is the client API for FeedItemService service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type FeedItemServiceClient interface { |
| // Returns the requested feed item in full detail. |
| GetFeedItem(ctx context.Context, in *GetFeedItemRequest, opts ...grpc.CallOption) (*resources.FeedItem, error) |
| // Creates, updates, or removes feed items. Operation statuses are |
| // returned. |
| MutateFeedItems(ctx context.Context, in *MutateFeedItemsRequest, opts ...grpc.CallOption) (*MutateFeedItemsResponse, error) |
| } |
| |
| type feedItemServiceClient struct { |
| cc grpc.ClientConnInterface |
| } |
| |
| func NewFeedItemServiceClient(cc grpc.ClientConnInterface) FeedItemServiceClient { |
| return &feedItemServiceClient{cc} |
| } |
| |
| func (c *feedItemServiceClient) GetFeedItem(ctx context.Context, in *GetFeedItemRequest, opts ...grpc.CallOption) (*resources.FeedItem, error) { |
| out := new(resources.FeedItem) |
| err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.FeedItemService/GetFeedItem", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *feedItemServiceClient) MutateFeedItems(ctx context.Context, in *MutateFeedItemsRequest, opts ...grpc.CallOption) (*MutateFeedItemsResponse, error) { |
| out := new(MutateFeedItemsResponse) |
| err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.FeedItemService/MutateFeedItems", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // FeedItemServiceServer is the server API for FeedItemService service. |
| type FeedItemServiceServer interface { |
| // Returns the requested feed item in full detail. |
| GetFeedItem(context.Context, *GetFeedItemRequest) (*resources.FeedItem, error) |
| // Creates, updates, or removes feed items. Operation statuses are |
| // returned. |
| MutateFeedItems(context.Context, *MutateFeedItemsRequest) (*MutateFeedItemsResponse, error) |
| } |
| |
| // UnimplementedFeedItemServiceServer can be embedded to have forward compatible implementations. |
| type UnimplementedFeedItemServiceServer struct { |
| } |
| |
| func (*UnimplementedFeedItemServiceServer) GetFeedItem(ctx context.Context, req *GetFeedItemRequest) (*resources.FeedItem, error) { |
| return nil, status1.Errorf(codes.Unimplemented, "method GetFeedItem not implemented") |
| } |
| func (*UnimplementedFeedItemServiceServer) MutateFeedItems(ctx context.Context, req *MutateFeedItemsRequest) (*MutateFeedItemsResponse, error) { |
| return nil, status1.Errorf(codes.Unimplemented, "method MutateFeedItems not implemented") |
| } |
| |
| func RegisterFeedItemServiceServer(s *grpc.Server, srv FeedItemServiceServer) { |
| s.RegisterService(&_FeedItemService_serviceDesc, srv) |
| } |
| |
| func _FeedItemService_GetFeedItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetFeedItemRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(FeedItemServiceServer).GetFeedItem(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.ads.googleads.v1.services.FeedItemService/GetFeedItem", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(FeedItemServiceServer).GetFeedItem(ctx, req.(*GetFeedItemRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _FeedItemService_MutateFeedItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(MutateFeedItemsRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(FeedItemServiceServer).MutateFeedItems(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.ads.googleads.v1.services.FeedItemService/MutateFeedItems", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(FeedItemServiceServer).MutateFeedItems(ctx, req.(*MutateFeedItemsRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _FeedItemService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "google.ads.googleads.v1.services.FeedItemService", |
| HandlerType: (*FeedItemServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "GetFeedItem", |
| Handler: _FeedItemService_GetFeedItem_Handler, |
| }, |
| { |
| MethodName: "MutateFeedItems", |
| Handler: _FeedItemService_MutateFeedItems_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "google/ads/googleads/v1/services/feed_item_service.proto", |
| } |