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.
 
 
 

224 lines
11 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v0/services/payments_account_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 resources "google.golang.org/genproto/googleapis/ads/googleads/v0/resources"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. import (
  10. context "golang.org/x/net/context"
  11. grpc "google.golang.org/grpc"
  12. )
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  22. // Request message for fetching all accessible Payments accounts.
  23. type ListPaymentsAccountsRequest struct {
  24. // The ID of the customer to apply the PaymentsAccount list operation to.
  25. CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
  26. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  27. XXX_unrecognized []byte `json:"-"`
  28. XXX_sizecache int32 `json:"-"`
  29. }
  30. func (m *ListPaymentsAccountsRequest) Reset() { *m = ListPaymentsAccountsRequest{} }
  31. func (m *ListPaymentsAccountsRequest) String() string { return proto.CompactTextString(m) }
  32. func (*ListPaymentsAccountsRequest) ProtoMessage() {}
  33. func (*ListPaymentsAccountsRequest) Descriptor() ([]byte, []int) {
  34. return fileDescriptor_payments_account_service_4c750b022223f6eb, []int{0}
  35. }
  36. func (m *ListPaymentsAccountsRequest) XXX_Unmarshal(b []byte) error {
  37. return xxx_messageInfo_ListPaymentsAccountsRequest.Unmarshal(m, b)
  38. }
  39. func (m *ListPaymentsAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  40. return xxx_messageInfo_ListPaymentsAccountsRequest.Marshal(b, m, deterministic)
  41. }
  42. func (dst *ListPaymentsAccountsRequest) XXX_Merge(src proto.Message) {
  43. xxx_messageInfo_ListPaymentsAccountsRequest.Merge(dst, src)
  44. }
  45. func (m *ListPaymentsAccountsRequest) XXX_Size() int {
  46. return xxx_messageInfo_ListPaymentsAccountsRequest.Size(m)
  47. }
  48. func (m *ListPaymentsAccountsRequest) XXX_DiscardUnknown() {
  49. xxx_messageInfo_ListPaymentsAccountsRequest.DiscardUnknown(m)
  50. }
  51. var xxx_messageInfo_ListPaymentsAccountsRequest proto.InternalMessageInfo
  52. func (m *ListPaymentsAccountsRequest) GetCustomerId() string {
  53. if m != nil {
  54. return m.CustomerId
  55. }
  56. return ""
  57. }
  58. // Response message for
  59. // [PaymentsAccountService.ListPaymentsAccounts][google.ads.googleads.v0.services.PaymentsAccountService.ListPaymentsAccounts].
  60. type ListPaymentsAccountsResponse struct {
  61. // The list of accessible Payments accounts.
  62. PaymentsAccounts []*resources.PaymentsAccount `protobuf:"bytes,1,rep,name=payments_accounts,json=paymentsAccounts,proto3" json:"payments_accounts,omitempty"`
  63. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  64. XXX_unrecognized []byte `json:"-"`
  65. XXX_sizecache int32 `json:"-"`
  66. }
  67. func (m *ListPaymentsAccountsResponse) Reset() { *m = ListPaymentsAccountsResponse{} }
  68. func (m *ListPaymentsAccountsResponse) String() string { return proto.CompactTextString(m) }
  69. func (*ListPaymentsAccountsResponse) ProtoMessage() {}
  70. func (*ListPaymentsAccountsResponse) Descriptor() ([]byte, []int) {
  71. return fileDescriptor_payments_account_service_4c750b022223f6eb, []int{1}
  72. }
  73. func (m *ListPaymentsAccountsResponse) XXX_Unmarshal(b []byte) error {
  74. return xxx_messageInfo_ListPaymentsAccountsResponse.Unmarshal(m, b)
  75. }
  76. func (m *ListPaymentsAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  77. return xxx_messageInfo_ListPaymentsAccountsResponse.Marshal(b, m, deterministic)
  78. }
  79. func (dst *ListPaymentsAccountsResponse) XXX_Merge(src proto.Message) {
  80. xxx_messageInfo_ListPaymentsAccountsResponse.Merge(dst, src)
  81. }
  82. func (m *ListPaymentsAccountsResponse) XXX_Size() int {
  83. return xxx_messageInfo_ListPaymentsAccountsResponse.Size(m)
  84. }
  85. func (m *ListPaymentsAccountsResponse) XXX_DiscardUnknown() {
  86. xxx_messageInfo_ListPaymentsAccountsResponse.DiscardUnknown(m)
  87. }
  88. var xxx_messageInfo_ListPaymentsAccountsResponse proto.InternalMessageInfo
  89. func (m *ListPaymentsAccountsResponse) GetPaymentsAccounts() []*resources.PaymentsAccount {
  90. if m != nil {
  91. return m.PaymentsAccounts
  92. }
  93. return nil
  94. }
  95. func init() {
  96. proto.RegisterType((*ListPaymentsAccountsRequest)(nil), "google.ads.googleads.v0.services.ListPaymentsAccountsRequest")
  97. proto.RegisterType((*ListPaymentsAccountsResponse)(nil), "google.ads.googleads.v0.services.ListPaymentsAccountsResponse")
  98. }
  99. // Reference imports to suppress errors if they are not otherwise used.
  100. var _ context.Context
  101. var _ grpc.ClientConn
  102. // This is a compile-time assertion to ensure that this generated file
  103. // is compatible with the grpc package it is being compiled against.
  104. const _ = grpc.SupportPackageIsVersion4
  105. // PaymentsAccountServiceClient is the client API for PaymentsAccountService service.
  106. //
  107. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  108. type PaymentsAccountServiceClient interface {
  109. // Returns all Payments accounts associated with all managers
  110. // between the login customer ID and specified serving customer in the
  111. // hierarchy, inclusive.
  112. ListPaymentsAccounts(ctx context.Context, in *ListPaymentsAccountsRequest, opts ...grpc.CallOption) (*ListPaymentsAccountsResponse, error)
  113. }
  114. type paymentsAccountServiceClient struct {
  115. cc *grpc.ClientConn
  116. }
  117. func NewPaymentsAccountServiceClient(cc *grpc.ClientConn) PaymentsAccountServiceClient {
  118. return &paymentsAccountServiceClient{cc}
  119. }
  120. func (c *paymentsAccountServiceClient) ListPaymentsAccounts(ctx context.Context, in *ListPaymentsAccountsRequest, opts ...grpc.CallOption) (*ListPaymentsAccountsResponse, error) {
  121. out := new(ListPaymentsAccountsResponse)
  122. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.PaymentsAccountService/ListPaymentsAccounts", in, out, opts...)
  123. if err != nil {
  124. return nil, err
  125. }
  126. return out, nil
  127. }
  128. // PaymentsAccountServiceServer is the server API for PaymentsAccountService service.
  129. type PaymentsAccountServiceServer interface {
  130. // Returns all Payments accounts associated with all managers
  131. // between the login customer ID and specified serving customer in the
  132. // hierarchy, inclusive.
  133. ListPaymentsAccounts(context.Context, *ListPaymentsAccountsRequest) (*ListPaymentsAccountsResponse, error)
  134. }
  135. func RegisterPaymentsAccountServiceServer(s *grpc.Server, srv PaymentsAccountServiceServer) {
  136. s.RegisterService(&_PaymentsAccountService_serviceDesc, srv)
  137. }
  138. func _PaymentsAccountService_ListPaymentsAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  139. in := new(ListPaymentsAccountsRequest)
  140. if err := dec(in); err != nil {
  141. return nil, err
  142. }
  143. if interceptor == nil {
  144. return srv.(PaymentsAccountServiceServer).ListPaymentsAccounts(ctx, in)
  145. }
  146. info := &grpc.UnaryServerInfo{
  147. Server: srv,
  148. FullMethod: "/google.ads.googleads.v0.services.PaymentsAccountService/ListPaymentsAccounts",
  149. }
  150. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  151. return srv.(PaymentsAccountServiceServer).ListPaymentsAccounts(ctx, req.(*ListPaymentsAccountsRequest))
  152. }
  153. return interceptor(ctx, in, info, handler)
  154. }
  155. var _PaymentsAccountService_serviceDesc = grpc.ServiceDesc{
  156. ServiceName: "google.ads.googleads.v0.services.PaymentsAccountService",
  157. HandlerType: (*PaymentsAccountServiceServer)(nil),
  158. Methods: []grpc.MethodDesc{
  159. {
  160. MethodName: "ListPaymentsAccounts",
  161. Handler: _PaymentsAccountService_ListPaymentsAccounts_Handler,
  162. },
  163. },
  164. Streams: []grpc.StreamDesc{},
  165. Metadata: "google/ads/googleads/v0/services/payments_account_service.proto",
  166. }
  167. func init() {
  168. proto.RegisterFile("google/ads/googleads/v0/services/payments_account_service.proto", fileDescriptor_payments_account_service_4c750b022223f6eb)
  169. }
  170. var fileDescriptor_payments_account_service_4c750b022223f6eb = []byte{
  171. // 398 bytes of a gzipped FileDescriptorProto
  172. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x52, 0xcf, 0x6a, 0xdb, 0x30,
  173. 0x18, 0xc7, 0x0e, 0x0c, 0xa6, 0x5c, 0x36, 0x33, 0x46, 0x48, 0x02, 0x33, 0x21, 0x87, 0xb0, 0x83,
  174. 0x64, 0x32, 0x18, 0x43, 0x23, 0x19, 0xce, 0x25, 0x1b, 0xec, 0x10, 0x32, 0xc8, 0x61, 0x18, 0x8c,
  175. 0x6b, 0x0b, 0x63, 0x48, 0x24, 0xd7, 0x9f, 0x1c, 0x28, 0xa5, 0x14, 0xf2, 0x0a, 0x7d, 0x83, 0x1e,
  176. 0xfb, 0x28, 0x85, 0x9e, 0xfa, 0x0a, 0x3d, 0x94, 0x3e, 0x45, 0x71, 0x64, 0x99, 0x62, 0x9c, 0x06,
  177. 0x7a, 0xfb, 0x21, 0xfd, 0xfe, 0xe8, 0xfb, 0xe9, 0x43, 0xbf, 0x62, 0x21, 0xe2, 0x35, 0x23, 0x41,
  178. 0x04, 0x44, 0xc1, 0x02, 0x6d, 0x1d, 0x02, 0x2c, 0xdb, 0x26, 0x21, 0x03, 0x92, 0x06, 0x67, 0x1b,
  179. 0xc6, 0x25, 0xf8, 0x41, 0x18, 0x8a, 0x9c, 0x4b, 0xbf, 0xbc, 0xc1, 0x69, 0x26, 0xa4, 0xb0, 0x6c,
  180. 0xa5, 0xc2, 0x41, 0x04, 0xb8, 0x32, 0xc0, 0x5b, 0x07, 0x6b, 0x83, 0xee, 0x8f, 0x43, 0x11, 0x19,
  181. 0x03, 0x91, 0x67, 0x4d, 0x19, 0xca, 0xbb, 0xdb, 0xd7, 0xca, 0x34, 0x21, 0x01, 0xe7, 0x42, 0x06,
  182. 0x32, 0x11, 0x1c, 0xd4, 0xed, 0x60, 0x8a, 0x7a, 0x7f, 0x13, 0x90, 0x8b, 0x52, 0xeb, 0x2a, 0x29,
  183. 0x2c, 0xd9, 0x69, 0xce, 0x40, 0x5a, 0x5f, 0x50, 0x3b, 0xcc, 0x41, 0x8a, 0x0d, 0xcb, 0xfc, 0x24,
  184. 0xea, 0x18, 0xb6, 0x31, 0x7a, 0xbf, 0x44, 0xfa, 0xe8, 0x4f, 0x34, 0xb8, 0x44, 0xfd, 0x66, 0x3d,
  185. 0xa4, 0x82, 0x03, 0xb3, 0x7c, 0xf4, 0xb1, 0xfe, 0x2e, 0xe8, 0x18, 0x76, 0x6b, 0xd4, 0x1e, 0x8f,
  186. 0xf1, 0xa1, 0xa9, 0xab, 0x99, 0x70, 0xcd, 0x77, 0xf9, 0x21, 0xad, 0x05, 0x8d, 0x1f, 0x0d, 0xf4,
  187. 0xb9, 0xc6, 0xfa, 0xa7, 0x4a, 0xb3, 0xee, 0x0c, 0xf4, 0xa9, 0xe9, 0x71, 0xd6, 0x04, 0x1f, 0xeb,
  188. 0x1b, 0xbf, 0x52, 0x4a, 0x77, 0xfa, 0x56, 0xb9, 0xea, 0x64, 0xf0, 0x7d, 0x77, 0xff, 0x70, 0x65,
  189. 0x3a, 0x16, 0x2e, 0xfe, 0x4f, 0x77, 0x09, 0xe4, 0xfc, 0x45, 0xd3, 0x93, 0xaf, 0x17, 0xa4, 0x3e,
  190. 0xea, 0x6c, 0x67, 0xa2, 0x61, 0x28, 0x36, 0x47, 0xd3, 0x67, 0xbd, 0xe6, 0x42, 0x16, 0xc5, 0x8f,
  191. 0x2f, 0x8c, 0xff, 0xbf, 0x4b, 0x83, 0x58, 0xac, 0x03, 0x1e, 0x63, 0x91, 0xc5, 0x24, 0x66, 0x7c,
  192. 0xbf, 0x0f, 0x7a, 0xb7, 0xd2, 0x04, 0x0e, 0x6f, 0xf3, 0x4f, 0x0d, 0xae, 0xcd, 0xd6, 0xdc, 0x75,
  193. 0x6f, 0x4c, 0x7b, 0xae, 0x0c, 0xdd, 0x08, 0xb0, 0x82, 0x05, 0x5a, 0x39, 0xb8, 0x0c, 0x86, 0x5b,
  194. 0x4d, 0xf1, 0xdc, 0x08, 0xbc, 0x8a, 0xe2, 0xad, 0x1c, 0x4f, 0x53, 0x9e, 0xcc, 0xa1, 0x3a, 0xa7,
  195. 0xd4, 0x8d, 0x80, 0xd2, 0x8a, 0x44, 0xe9, 0xca, 0xa1, 0x54, 0xd3, 0x4e, 0xde, 0xed, 0xdf, 0xf9,
  196. 0xed, 0x39, 0x00, 0x00, 0xff, 0xff, 0xcd, 0xc2, 0x8a, 0xd2, 0x74, 0x03, 0x00, 0x00,
  197. }