| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/ads/googleads/v1/services/campaign_draft_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" |
| longrunning "google.golang.org/genproto/googleapis/longrunning" |
| 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 [CampaignDraftService.GetCampaignDraft][google.ads.googleads.v1.services.CampaignDraftService.GetCampaignDraft]. |
| type GetCampaignDraftRequest struct { |
| // The resource name of the campaign draft 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 *GetCampaignDraftRequest) Reset() { *m = GetCampaignDraftRequest{} } |
| func (m *GetCampaignDraftRequest) String() string { return proto.CompactTextString(m) } |
| func (*GetCampaignDraftRequest) ProtoMessage() {} |
| func (*GetCampaignDraftRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_f742bb1c3712c22e, []int{0} |
| } |
| |
| func (m *GetCampaignDraftRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_GetCampaignDraftRequest.Unmarshal(m, b) |
| } |
| func (m *GetCampaignDraftRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_GetCampaignDraftRequest.Marshal(b, m, deterministic) |
| } |
| func (m *GetCampaignDraftRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetCampaignDraftRequest.Merge(m, src) |
| } |
| func (m *GetCampaignDraftRequest) XXX_Size() int { |
| return xxx_messageInfo_GetCampaignDraftRequest.Size(m) |
| } |
| func (m *GetCampaignDraftRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_GetCampaignDraftRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_GetCampaignDraftRequest proto.InternalMessageInfo |
| |
| func (m *GetCampaignDraftRequest) GetResourceName() string { |
| if m != nil { |
| return m.ResourceName |
| } |
| return "" |
| } |
| |
| // Request message for [CampaignDraftService.MutateCampaignDrafts][google.ads.googleads.v1.services.CampaignDraftService.MutateCampaignDrafts]. |
| type MutateCampaignDraftsRequest struct { |
| // The ID of the customer whose campaign drafts 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 campaign drafts. |
| Operations []*CampaignDraftOperation `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 *MutateCampaignDraftsRequest) Reset() { *m = MutateCampaignDraftsRequest{} } |
| func (m *MutateCampaignDraftsRequest) String() string { return proto.CompactTextString(m) } |
| func (*MutateCampaignDraftsRequest) ProtoMessage() {} |
| func (*MutateCampaignDraftsRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_f742bb1c3712c22e, []int{1} |
| } |
| |
| func (m *MutateCampaignDraftsRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_MutateCampaignDraftsRequest.Unmarshal(m, b) |
| } |
| func (m *MutateCampaignDraftsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_MutateCampaignDraftsRequest.Marshal(b, m, deterministic) |
| } |
| func (m *MutateCampaignDraftsRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_MutateCampaignDraftsRequest.Merge(m, src) |
| } |
| func (m *MutateCampaignDraftsRequest) XXX_Size() int { |
| return xxx_messageInfo_MutateCampaignDraftsRequest.Size(m) |
| } |
| func (m *MutateCampaignDraftsRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_MutateCampaignDraftsRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_MutateCampaignDraftsRequest proto.InternalMessageInfo |
| |
| func (m *MutateCampaignDraftsRequest) GetCustomerId() string { |
| if m != nil { |
| return m.CustomerId |
| } |
| return "" |
| } |
| |
| func (m *MutateCampaignDraftsRequest) GetOperations() []*CampaignDraftOperation { |
| if m != nil { |
| return m.Operations |
| } |
| return nil |
| } |
| |
| func (m *MutateCampaignDraftsRequest) GetPartialFailure() bool { |
| if m != nil { |
| return m.PartialFailure |
| } |
| return false |
| } |
| |
| func (m *MutateCampaignDraftsRequest) GetValidateOnly() bool { |
| if m != nil { |
| return m.ValidateOnly |
| } |
| return false |
| } |
| |
| // Request message for [CampaignDraftService.PromoteCampaignDraft][google.ads.googleads.v1.services.CampaignDraftService.PromoteCampaignDraft]. |
| type PromoteCampaignDraftRequest struct { |
| // The resource name of the campaign draft to promote. |
| CampaignDraft string `protobuf:"bytes,1,opt,name=campaign_draft,json=campaignDraft,proto3" json:"campaign_draft,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *PromoteCampaignDraftRequest) Reset() { *m = PromoteCampaignDraftRequest{} } |
| func (m *PromoteCampaignDraftRequest) String() string { return proto.CompactTextString(m) } |
| func (*PromoteCampaignDraftRequest) ProtoMessage() {} |
| func (*PromoteCampaignDraftRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_f742bb1c3712c22e, []int{2} |
| } |
| |
| func (m *PromoteCampaignDraftRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_PromoteCampaignDraftRequest.Unmarshal(m, b) |
| } |
| func (m *PromoteCampaignDraftRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_PromoteCampaignDraftRequest.Marshal(b, m, deterministic) |
| } |
| func (m *PromoteCampaignDraftRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_PromoteCampaignDraftRequest.Merge(m, src) |
| } |
| func (m *PromoteCampaignDraftRequest) XXX_Size() int { |
| return xxx_messageInfo_PromoteCampaignDraftRequest.Size(m) |
| } |
| func (m *PromoteCampaignDraftRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_PromoteCampaignDraftRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_PromoteCampaignDraftRequest proto.InternalMessageInfo |
| |
| func (m *PromoteCampaignDraftRequest) GetCampaignDraft() string { |
| if m != nil { |
| return m.CampaignDraft |
| } |
| return "" |
| } |
| |
| // A single operation (create, update, remove) on a campaign draft. |
| type CampaignDraftOperation 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: |
| // *CampaignDraftOperation_Create |
| // *CampaignDraftOperation_Update |
| // *CampaignDraftOperation_Remove |
| Operation isCampaignDraftOperation_Operation `protobuf_oneof:"operation"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CampaignDraftOperation) Reset() { *m = CampaignDraftOperation{} } |
| func (m *CampaignDraftOperation) String() string { return proto.CompactTextString(m) } |
| func (*CampaignDraftOperation) ProtoMessage() {} |
| func (*CampaignDraftOperation) Descriptor() ([]byte, []int) { |
| return fileDescriptor_f742bb1c3712c22e, []int{3} |
| } |
| |
| func (m *CampaignDraftOperation) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CampaignDraftOperation.Unmarshal(m, b) |
| } |
| func (m *CampaignDraftOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CampaignDraftOperation.Marshal(b, m, deterministic) |
| } |
| func (m *CampaignDraftOperation) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CampaignDraftOperation.Merge(m, src) |
| } |
| func (m *CampaignDraftOperation) XXX_Size() int { |
| return xxx_messageInfo_CampaignDraftOperation.Size(m) |
| } |
| func (m *CampaignDraftOperation) XXX_DiscardUnknown() { |
| xxx_messageInfo_CampaignDraftOperation.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CampaignDraftOperation proto.InternalMessageInfo |
| |
| func (m *CampaignDraftOperation) GetUpdateMask() *field_mask.FieldMask { |
| if m != nil { |
| return m.UpdateMask |
| } |
| return nil |
| } |
| |
| type isCampaignDraftOperation_Operation interface { |
| isCampaignDraftOperation_Operation() |
| } |
| |
| type CampaignDraftOperation_Create struct { |
| Create *resources.CampaignDraft `protobuf:"bytes,1,opt,name=create,proto3,oneof"` |
| } |
| |
| type CampaignDraftOperation_Update struct { |
| Update *resources.CampaignDraft `protobuf:"bytes,2,opt,name=update,proto3,oneof"` |
| } |
| |
| type CampaignDraftOperation_Remove struct { |
| Remove string `protobuf:"bytes,3,opt,name=remove,proto3,oneof"` |
| } |
| |
| func (*CampaignDraftOperation_Create) isCampaignDraftOperation_Operation() {} |
| |
| func (*CampaignDraftOperation_Update) isCampaignDraftOperation_Operation() {} |
| |
| func (*CampaignDraftOperation_Remove) isCampaignDraftOperation_Operation() {} |
| |
| func (m *CampaignDraftOperation) GetOperation() isCampaignDraftOperation_Operation { |
| if m != nil { |
| return m.Operation |
| } |
| return nil |
| } |
| |
| func (m *CampaignDraftOperation) GetCreate() *resources.CampaignDraft { |
| if x, ok := m.GetOperation().(*CampaignDraftOperation_Create); ok { |
| return x.Create |
| } |
| return nil |
| } |
| |
| func (m *CampaignDraftOperation) GetUpdate() *resources.CampaignDraft { |
| if x, ok := m.GetOperation().(*CampaignDraftOperation_Update); ok { |
| return x.Update |
| } |
| return nil |
| } |
| |
| func (m *CampaignDraftOperation) GetRemove() string { |
| if x, ok := m.GetOperation().(*CampaignDraftOperation_Remove); ok { |
| return x.Remove |
| } |
| return "" |
| } |
| |
| // XXX_OneofWrappers is for the internal use of the proto package. |
| func (*CampaignDraftOperation) XXX_OneofWrappers() []interface{} { |
| return []interface{}{ |
| (*CampaignDraftOperation_Create)(nil), |
| (*CampaignDraftOperation_Update)(nil), |
| (*CampaignDraftOperation_Remove)(nil), |
| } |
| } |
| |
| // Response message for campaign draft mutate. |
| type MutateCampaignDraftsResponse 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 []*MutateCampaignDraftResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *MutateCampaignDraftsResponse) Reset() { *m = MutateCampaignDraftsResponse{} } |
| func (m *MutateCampaignDraftsResponse) String() string { return proto.CompactTextString(m) } |
| func (*MutateCampaignDraftsResponse) ProtoMessage() {} |
| func (*MutateCampaignDraftsResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_f742bb1c3712c22e, []int{4} |
| } |
| |
| func (m *MutateCampaignDraftsResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_MutateCampaignDraftsResponse.Unmarshal(m, b) |
| } |
| func (m *MutateCampaignDraftsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_MutateCampaignDraftsResponse.Marshal(b, m, deterministic) |
| } |
| func (m *MutateCampaignDraftsResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_MutateCampaignDraftsResponse.Merge(m, src) |
| } |
| func (m *MutateCampaignDraftsResponse) XXX_Size() int { |
| return xxx_messageInfo_MutateCampaignDraftsResponse.Size(m) |
| } |
| func (m *MutateCampaignDraftsResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_MutateCampaignDraftsResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_MutateCampaignDraftsResponse proto.InternalMessageInfo |
| |
| func (m *MutateCampaignDraftsResponse) GetPartialFailureError() *status.Status { |
| if m != nil { |
| return m.PartialFailureError |
| } |
| return nil |
| } |
| |
| func (m *MutateCampaignDraftsResponse) GetResults() []*MutateCampaignDraftResult { |
| if m != nil { |
| return m.Results |
| } |
| return nil |
| } |
| |
| // The result for the campaign draft mutate. |
| type MutateCampaignDraftResult 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 *MutateCampaignDraftResult) Reset() { *m = MutateCampaignDraftResult{} } |
| func (m *MutateCampaignDraftResult) String() string { return proto.CompactTextString(m) } |
| func (*MutateCampaignDraftResult) ProtoMessage() {} |
| func (*MutateCampaignDraftResult) Descriptor() ([]byte, []int) { |
| return fileDescriptor_f742bb1c3712c22e, []int{5} |
| } |
| |
| func (m *MutateCampaignDraftResult) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_MutateCampaignDraftResult.Unmarshal(m, b) |
| } |
| func (m *MutateCampaignDraftResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_MutateCampaignDraftResult.Marshal(b, m, deterministic) |
| } |
| func (m *MutateCampaignDraftResult) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_MutateCampaignDraftResult.Merge(m, src) |
| } |
| func (m *MutateCampaignDraftResult) XXX_Size() int { |
| return xxx_messageInfo_MutateCampaignDraftResult.Size(m) |
| } |
| func (m *MutateCampaignDraftResult) XXX_DiscardUnknown() { |
| xxx_messageInfo_MutateCampaignDraftResult.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_MutateCampaignDraftResult proto.InternalMessageInfo |
| |
| func (m *MutateCampaignDraftResult) GetResourceName() string { |
| if m != nil { |
| return m.ResourceName |
| } |
| return "" |
| } |
| |
| // Request message for [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v1.services.CampaignDraftService.ListCampaignDraftAsyncErrors]. |
| type ListCampaignDraftAsyncErrorsRequest struct { |
| // The name of the campaign draft from which to retrieve the async errors. |
| ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,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 a page request is too large, 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 *ListCampaignDraftAsyncErrorsRequest) Reset() { *m = ListCampaignDraftAsyncErrorsRequest{} } |
| func (m *ListCampaignDraftAsyncErrorsRequest) String() string { return proto.CompactTextString(m) } |
| func (*ListCampaignDraftAsyncErrorsRequest) ProtoMessage() {} |
| func (*ListCampaignDraftAsyncErrorsRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_f742bb1c3712c22e, []int{6} |
| } |
| |
| func (m *ListCampaignDraftAsyncErrorsRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ListCampaignDraftAsyncErrorsRequest.Unmarshal(m, b) |
| } |
| func (m *ListCampaignDraftAsyncErrorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ListCampaignDraftAsyncErrorsRequest.Marshal(b, m, deterministic) |
| } |
| func (m *ListCampaignDraftAsyncErrorsRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListCampaignDraftAsyncErrorsRequest.Merge(m, src) |
| } |
| func (m *ListCampaignDraftAsyncErrorsRequest) XXX_Size() int { |
| return xxx_messageInfo_ListCampaignDraftAsyncErrorsRequest.Size(m) |
| } |
| func (m *ListCampaignDraftAsyncErrorsRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListCampaignDraftAsyncErrorsRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListCampaignDraftAsyncErrorsRequest proto.InternalMessageInfo |
| |
| func (m *ListCampaignDraftAsyncErrorsRequest) GetResourceName() string { |
| if m != nil { |
| return m.ResourceName |
| } |
| return "" |
| } |
| |
| func (m *ListCampaignDraftAsyncErrorsRequest) GetPageToken() string { |
| if m != nil { |
| return m.PageToken |
| } |
| return "" |
| } |
| |
| func (m *ListCampaignDraftAsyncErrorsRequest) GetPageSize() int32 { |
| if m != nil { |
| return m.PageSize |
| } |
| return 0 |
| } |
| |
| // Response message for [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v1.services.CampaignDraftService.ListCampaignDraftAsyncErrors]. |
| type ListCampaignDraftAsyncErrorsResponse struct { |
| // Details of the errors when performing the asynchronous operation. |
| Errors []*status.Status `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,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"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ListCampaignDraftAsyncErrorsResponse) Reset() { *m = ListCampaignDraftAsyncErrorsResponse{} } |
| func (m *ListCampaignDraftAsyncErrorsResponse) String() string { return proto.CompactTextString(m) } |
| func (*ListCampaignDraftAsyncErrorsResponse) ProtoMessage() {} |
| func (*ListCampaignDraftAsyncErrorsResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_f742bb1c3712c22e, []int{7} |
| } |
| |
| func (m *ListCampaignDraftAsyncErrorsResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ListCampaignDraftAsyncErrorsResponse.Unmarshal(m, b) |
| } |
| func (m *ListCampaignDraftAsyncErrorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ListCampaignDraftAsyncErrorsResponse.Marshal(b, m, deterministic) |
| } |
| func (m *ListCampaignDraftAsyncErrorsResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListCampaignDraftAsyncErrorsResponse.Merge(m, src) |
| } |
| func (m *ListCampaignDraftAsyncErrorsResponse) XXX_Size() int { |
| return xxx_messageInfo_ListCampaignDraftAsyncErrorsResponse.Size(m) |
| } |
| func (m *ListCampaignDraftAsyncErrorsResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListCampaignDraftAsyncErrorsResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListCampaignDraftAsyncErrorsResponse proto.InternalMessageInfo |
| |
| func (m *ListCampaignDraftAsyncErrorsResponse) GetErrors() []*status.Status { |
| if m != nil { |
| return m.Errors |
| } |
| return nil |
| } |
| |
| func (m *ListCampaignDraftAsyncErrorsResponse) GetNextPageToken() string { |
| if m != nil { |
| return m.NextPageToken |
| } |
| return "" |
| } |
| |
| func init() { |
| proto.RegisterType((*GetCampaignDraftRequest)(nil), "google.ads.googleads.v1.services.GetCampaignDraftRequest") |
| proto.RegisterType((*MutateCampaignDraftsRequest)(nil), "google.ads.googleads.v1.services.MutateCampaignDraftsRequest") |
| proto.RegisterType((*PromoteCampaignDraftRequest)(nil), "google.ads.googleads.v1.services.PromoteCampaignDraftRequest") |
| proto.RegisterType((*CampaignDraftOperation)(nil), "google.ads.googleads.v1.services.CampaignDraftOperation") |
| proto.RegisterType((*MutateCampaignDraftsResponse)(nil), "google.ads.googleads.v1.services.MutateCampaignDraftsResponse") |
| proto.RegisterType((*MutateCampaignDraftResult)(nil), "google.ads.googleads.v1.services.MutateCampaignDraftResult") |
| proto.RegisterType((*ListCampaignDraftAsyncErrorsRequest)(nil), "google.ads.googleads.v1.services.ListCampaignDraftAsyncErrorsRequest") |
| proto.RegisterType((*ListCampaignDraftAsyncErrorsResponse)(nil), "google.ads.googleads.v1.services.ListCampaignDraftAsyncErrorsResponse") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/ads/googleads/v1/services/campaign_draft_service.proto", fileDescriptor_f742bb1c3712c22e) |
| } |
| |
| var fileDescriptor_f742bb1c3712c22e = []byte{ |
| // 954 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x4d, 0x6f, 0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1b, 0xb0, 0xa3, 0x7e, 0xca, 0xd1, |
| 0x61, 0xfb, 0x48, 0xa7, 0xfc, 0x53, 0x59, 0x29, 0xe2, 0x8e, 0xd3, 0x0d, 0x98, 0xe3, 0xf4, 0x93, |
| 0x1c, 0xe7, 0xb0, 0xed, 0x38, 0x3a, 0xed, 0xf9, 0xac, 0xe4, 0xf9, 0xf0, 0xbf, 0x00, 0x00, 0x00, |
| 0xff, 0xff, 0xaf, 0x85, 0x09, 0xc9, 0x63, 0x0a, 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 |
| |
| // CampaignDraftServiceClient is the client API for CampaignDraftService service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type CampaignDraftServiceClient interface { |
| // Returns the requested campaign draft in full detail. |
| GetCampaignDraft(ctx context.Context, in *GetCampaignDraftRequest, opts ...grpc.CallOption) (*resources.CampaignDraft, error) |
| // Creates, updates, or removes campaign drafts. Operation statuses are |
| // returned. |
| MutateCampaignDrafts(ctx context.Context, in *MutateCampaignDraftsRequest, opts ...grpc.CallOption) (*MutateCampaignDraftsResponse, error) |
| // Promotes the changes in a draft back to the base campaign. |
| // |
| // This method returns a Long Running Operation (LRO) indicating if the |
| // Promote is done. Use [Operations.GetOperation] to poll the LRO until it |
| // is done. Only a done status is returned in the response. See the status |
| // in the Campaign Draft resource to determine if the promotion was |
| // successful. If the LRO failed, use |
| // [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v1.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of |
| // error reasons. |
| PromoteCampaignDraft(ctx context.Context, in *PromoteCampaignDraftRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) |
| // Returns all errors that occurred during CampaignDraft promote. Throws an |
| // error if called before campaign draft is promoted. |
| // Supports standard list paging. |
| ListCampaignDraftAsyncErrors(ctx context.Context, in *ListCampaignDraftAsyncErrorsRequest, opts ...grpc.CallOption) (*ListCampaignDraftAsyncErrorsResponse, error) |
| } |
| |
| type campaignDraftServiceClient struct { |
| cc grpc.ClientConnInterface |
| } |
| |
| func NewCampaignDraftServiceClient(cc grpc.ClientConnInterface) CampaignDraftServiceClient { |
| return &campaignDraftServiceClient{cc} |
| } |
| |
| func (c *campaignDraftServiceClient) GetCampaignDraft(ctx context.Context, in *GetCampaignDraftRequest, opts ...grpc.CallOption) (*resources.CampaignDraft, error) { |
| out := new(resources.CampaignDraft) |
| err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.CampaignDraftService/GetCampaignDraft", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *campaignDraftServiceClient) MutateCampaignDrafts(ctx context.Context, in *MutateCampaignDraftsRequest, opts ...grpc.CallOption) (*MutateCampaignDraftsResponse, error) { |
| out := new(MutateCampaignDraftsResponse) |
| err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.CampaignDraftService/MutateCampaignDrafts", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *campaignDraftServiceClient) PromoteCampaignDraft(ctx context.Context, in *PromoteCampaignDraftRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { |
| out := new(longrunning.Operation) |
| err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.CampaignDraftService/PromoteCampaignDraft", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *campaignDraftServiceClient) ListCampaignDraftAsyncErrors(ctx context.Context, in *ListCampaignDraftAsyncErrorsRequest, opts ...grpc.CallOption) (*ListCampaignDraftAsyncErrorsResponse, error) { |
| out := new(ListCampaignDraftAsyncErrorsResponse) |
| err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.CampaignDraftService/ListCampaignDraftAsyncErrors", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // CampaignDraftServiceServer is the server API for CampaignDraftService service. |
| type CampaignDraftServiceServer interface { |
| // Returns the requested campaign draft in full detail. |
| GetCampaignDraft(context.Context, *GetCampaignDraftRequest) (*resources.CampaignDraft, error) |
| // Creates, updates, or removes campaign drafts. Operation statuses are |
| // returned. |
| MutateCampaignDrafts(context.Context, *MutateCampaignDraftsRequest) (*MutateCampaignDraftsResponse, error) |
| // Promotes the changes in a draft back to the base campaign. |
| // |
| // This method returns a Long Running Operation (LRO) indicating if the |
| // Promote is done. Use [Operations.GetOperation] to poll the LRO until it |
| // is done. Only a done status is returned in the response. See the status |
| // in the Campaign Draft resource to determine if the promotion was |
| // successful. If the LRO failed, use |
| // [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v1.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of |
| // error reasons. |
| PromoteCampaignDraft(context.Context, *PromoteCampaignDraftRequest) (*longrunning.Operation, error) |
| // Returns all errors that occurred during CampaignDraft promote. Throws an |
| // error if called before campaign draft is promoted. |
| // Supports standard list paging. |
| ListCampaignDraftAsyncErrors(context.Context, *ListCampaignDraftAsyncErrorsRequest) (*ListCampaignDraftAsyncErrorsResponse, error) |
| } |
| |
| // UnimplementedCampaignDraftServiceServer can be embedded to have forward compatible implementations. |
| type UnimplementedCampaignDraftServiceServer struct { |
| } |
| |
| func (*UnimplementedCampaignDraftServiceServer) GetCampaignDraft(ctx context.Context, req *GetCampaignDraftRequest) (*resources.CampaignDraft, error) { |
| return nil, status1.Errorf(codes.Unimplemented, "method GetCampaignDraft not implemented") |
| } |
| func (*UnimplementedCampaignDraftServiceServer) MutateCampaignDrafts(ctx context.Context, req *MutateCampaignDraftsRequest) (*MutateCampaignDraftsResponse, error) { |
| return nil, status1.Errorf(codes.Unimplemented, "method MutateCampaignDrafts not implemented") |
| } |
| func (*UnimplementedCampaignDraftServiceServer) PromoteCampaignDraft(ctx context.Context, req *PromoteCampaignDraftRequest) (*longrunning.Operation, error) { |
| return nil, status1.Errorf(codes.Unimplemented, "method PromoteCampaignDraft not implemented") |
| } |
| func (*UnimplementedCampaignDraftServiceServer) ListCampaignDraftAsyncErrors(ctx context.Context, req *ListCampaignDraftAsyncErrorsRequest) (*ListCampaignDraftAsyncErrorsResponse, error) { |
| return nil, status1.Errorf(codes.Unimplemented, "method ListCampaignDraftAsyncErrors not implemented") |
| } |
| |
| func RegisterCampaignDraftServiceServer(s *grpc.Server, srv CampaignDraftServiceServer) { |
| s.RegisterService(&_CampaignDraftService_serviceDesc, srv) |
| } |
| |
| func _CampaignDraftService_GetCampaignDraft_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetCampaignDraftRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CampaignDraftServiceServer).GetCampaignDraft(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.ads.googleads.v1.services.CampaignDraftService/GetCampaignDraft", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CampaignDraftServiceServer).GetCampaignDraft(ctx, req.(*GetCampaignDraftRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CampaignDraftService_MutateCampaignDrafts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(MutateCampaignDraftsRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CampaignDraftServiceServer).MutateCampaignDrafts(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.ads.googleads.v1.services.CampaignDraftService/MutateCampaignDrafts", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CampaignDraftServiceServer).MutateCampaignDrafts(ctx, req.(*MutateCampaignDraftsRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CampaignDraftService_PromoteCampaignDraft_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(PromoteCampaignDraftRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CampaignDraftServiceServer).PromoteCampaignDraft(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.ads.googleads.v1.services.CampaignDraftService/PromoteCampaignDraft", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CampaignDraftServiceServer).PromoteCampaignDraft(ctx, req.(*PromoteCampaignDraftRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CampaignDraftService_ListCampaignDraftAsyncErrors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(ListCampaignDraftAsyncErrorsRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CampaignDraftServiceServer).ListCampaignDraftAsyncErrors(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.ads.googleads.v1.services.CampaignDraftService/ListCampaignDraftAsyncErrors", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CampaignDraftServiceServer).ListCampaignDraftAsyncErrors(ctx, req.(*ListCampaignDraftAsyncErrorsRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _CampaignDraftService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "google.ads.googleads.v1.services.CampaignDraftService", |
| HandlerType: (*CampaignDraftServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "GetCampaignDraft", |
| Handler: _CampaignDraftService_GetCampaignDraft_Handler, |
| }, |
| { |
| MethodName: "MutateCampaignDrafts", |
| Handler: _CampaignDraftService_MutateCampaignDrafts_Handler, |
| }, |
| { |
| MethodName: "PromoteCampaignDraft", |
| Handler: _CampaignDraftService_PromoteCampaignDraft_Handler, |
| }, |
| { |
| MethodName: "ListCampaignDraftAsyncErrors", |
| Handler: _CampaignDraftService_ListCampaignDraftAsyncErrors_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "google/ads/googleads/v1/services/campaign_draft_service.proto", |
| } |