// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 // protoc v4.25.7 // source: google/shopping/merchant/accounts/v1/accountrelationships.proto package accountspb import ( context "context" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // The `AccountRelationship` message defines a formal connection between a // merchant's account and a service provider's account. This relationship // enables the provider to offer specific services to the business, such as // product management or campaign management. It specifies the access rights // and permissions to the business's data relevant to those services. // // Establishing an account relationship involves linking the merchant's account // with a provider's account. The provider could be another Google account (like // Google Ads or Google My Business) or a third-party platform (such as Shopify // or WooCommerce). type AccountRelationship struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Identifier. The resource name of the account relationship. // Format: `accounts/{account}/relationships/{relationship}`. For example, // `accounts/123456/relationships/567890`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Immutable. The provider of the service. Either the reference to an account // such as `providers/123` or a well-known service provider (one of // `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`). Provider *string `protobuf:"bytes,2,opt,name=provider,proto3,oneof" json:"provider,omitempty"` // Output only. The human-readable display name of the provider account. ProviderDisplayName string `protobuf:"bytes,3,opt,name=provider_display_name,json=providerDisplayName,proto3" json:"provider_display_name,omitempty"` // Optional. An optional alias you can assign to this account relationship. // This alias acts as a convenient identifier for your own reference and // management. It must be unique among all your account relationships with the // same provider. // // For example, you might use `account_id_alias` to assign a friendly name // to this relationship for easier identification in your systems. AccountIdAlias string `protobuf:"bytes,4,opt,name=account_id_alias,json=accountIdAlias,proto3" json:"account_id_alias,omitempty"` } func (x *AccountRelationship) Reset() { *x = AccountRelationship{} mi := &file_google_shopping_merchant_accounts_v1_accountrelationships_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AccountRelationship) String() string { return protoimpl.X.MessageStringOf(x) } func (*AccountRelationship) ProtoMessage() {} func (x *AccountRelationship) ProtoReflect() protoreflect.Message { mi := &file_google_shopping_merchant_accounts_v1_accountrelationships_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AccountRelationship.ProtoReflect.Descriptor instead. func (*AccountRelationship) Descriptor() ([]byte, []int) { return file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDescGZIP(), []int{0} } func (x *AccountRelationship) GetName() string { if x != nil { return x.Name } return "" } func (x *AccountRelationship) GetProvider() string { if x != nil && x.Provider != nil { return *x.Provider } return "" } func (x *AccountRelationship) GetProviderDisplayName() string { if x != nil { return x.ProviderDisplayName } return "" } func (x *AccountRelationship) GetAccountIdAlias() string { if x != nil { return x.AccountIdAlias } return "" } // Request to get an account relationship. type GetAccountRelationshipRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The resource name of the account relationship to get. // Format: `accounts/{account}/relationships/{relationship}`. For example, // `accounts/123456/relationships/567890`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (x *GetAccountRelationshipRequest) Reset() { *x = GetAccountRelationshipRequest{} mi := &file_google_shopping_merchant_accounts_v1_accountrelationships_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetAccountRelationshipRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetAccountRelationshipRequest) ProtoMessage() {} func (x *GetAccountRelationshipRequest) ProtoReflect() protoreflect.Message { mi := &file_google_shopping_merchant_accounts_v1_accountrelationships_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetAccountRelationshipRequest.ProtoReflect.Descriptor instead. func (*GetAccountRelationshipRequest) Descriptor() ([]byte, []int) { return file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDescGZIP(), []int{1} } func (x *GetAccountRelationshipRequest) GetName() string { if x != nil { return x.Name } return "" } // Request message for the `UpdateAccountRelationship` method. type UpdateAccountRelationshipRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The new version of the account relationship. AccountRelationship *AccountRelationship `protobuf:"bytes,1,opt,name=account_relationship,json=accountRelationship,proto3" json:"account_relationship,omitempty"` // Optional. List of fields being updated. // // The following fields are supported (in both `snake_case` and // `lowerCamelCase`): // // - `account_id_alias` UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateAccountRelationshipRequest) Reset() { *x = UpdateAccountRelationshipRequest{} mi := &file_google_shopping_merchant_accounts_v1_accountrelationships_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UpdateAccountRelationshipRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateAccountRelationshipRequest) ProtoMessage() {} func (x *UpdateAccountRelationshipRequest) ProtoReflect() protoreflect.Message { mi := &file_google_shopping_merchant_accounts_v1_accountrelationships_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UpdateAccountRelationshipRequest.ProtoReflect.Descriptor instead. func (*UpdateAccountRelationshipRequest) Descriptor() ([]byte, []int) { return file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDescGZIP(), []int{2} } func (x *UpdateAccountRelationshipRequest) GetAccountRelationship() *AccountRelationship { if x != nil { return x.AccountRelationship } return nil } func (x *UpdateAccountRelationshipRequest) GetUpdateMask() *fieldmaskpb.FieldMask { if x != nil { return x.UpdateMask } return nil } // Request to list account relationships. type ListAccountRelationshipsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The parent account of the account relationship to filter by. // Format: `accounts/{account}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Optional. The token returned by the previous `list` request. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Optional. The maximum number of elements to return in the response. Use for // paging. If no `page_size` is specified, `100` is used as the default value. // The maximum allowed value is `1000`. PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` } func (x *ListAccountRelationshipsRequest) Reset() { *x = ListAccountRelationshipsRequest{} mi := &file_google_shopping_merchant_accounts_v1_accountrelationships_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListAccountRelationshipsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListAccountRelationshipsRequest) ProtoMessage() {} func (x *ListAccountRelationshipsRequest) ProtoReflect() protoreflect.Message { mi := &file_google_shopping_merchant_accounts_v1_accountrelationships_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListAccountRelationshipsRequest.ProtoReflect.Descriptor instead. func (*ListAccountRelationshipsRequest) Descriptor() ([]byte, []int) { return file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDescGZIP(), []int{3} } func (x *ListAccountRelationshipsRequest) GetParent() string { if x != nil { return x.Parent } return "" } func (x *ListAccountRelationshipsRequest) GetPageToken() string { if x != nil { return x.PageToken } return "" } func (x *ListAccountRelationshipsRequest) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } // Response after trying to list account relationships. type ListAccountRelationshipsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The account relationships that match your filter. AccountRelationships []*AccountRelationship `protobuf:"bytes,1,rep,name=account_relationships,json=accountRelationships,proto3" json:"account_relationships,omitempty"` // A page token. You can send the `page_token` to get the next page. // Only included in the `list` response if there are more pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } func (x *ListAccountRelationshipsResponse) Reset() { *x = ListAccountRelationshipsResponse{} mi := &file_google_shopping_merchant_accounts_v1_accountrelationships_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListAccountRelationshipsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListAccountRelationshipsResponse) ProtoMessage() {} func (x *ListAccountRelationshipsResponse) ProtoReflect() protoreflect.Message { mi := &file_google_shopping_merchant_accounts_v1_accountrelationships_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListAccountRelationshipsResponse.ProtoReflect.Descriptor instead. func (*ListAccountRelationshipsResponse) Descriptor() ([]byte, []int) { return file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDescGZIP(), []int{4} } func (x *ListAccountRelationshipsResponse) GetAccountRelationships() []*AccountRelationship { if x != nil { return x.AccountRelationships } return nil } func (x *ListAccountRelationshipsResponse) GetNextPageToken() string { if x != nil { return x.NextPageToken } return "" } var File_google_shopping_merchant_accounts_v1_accountrelationships_proto protoreflect.FileDescriptor var file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDesc = []byte{ 0x0a, 0x3f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x02, 0x0a, 0x13, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x05, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x37, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x10, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x3a, 0x90, 0x01, 0xea, 0x41, 0x8c, 0x01, 0x0a, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x2f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x7d, 0x2a, 0x14, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x32, 0x13, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x6b, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x30, 0x0a, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xd7, 0x01, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x71, 0x0a, 0x14, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xab, 0x01, 0x0a, 0x1f, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0xba, 0x01, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x14, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xd5, 0x06, 0x0a, 0x1b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xd7, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x22, 0x3d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa5, 0x02, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x22, 0x84, 0x01, 0xda, 0x41, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5b, 0x3a, 0x14, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x32, 0x43, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xea, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x12, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x1a, 0x47, 0xca, 0x41, 0x1a, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x27, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x8c, 0x02, 0x0a, 0x28, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x19, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x70, 0x62, 0x3b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x70, 0x62, 0xaa, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5c, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x5c, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x28, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x3a, 0x3a, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDescOnce sync.Once file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDescData = file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDesc ) func file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDescGZIP() []byte { file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDescOnce.Do(func() { file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDescData) }) return file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDescData } var file_google_shopping_merchant_accounts_v1_accountrelationships_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_google_shopping_merchant_accounts_v1_accountrelationships_proto_goTypes = []any{ (*AccountRelationship)(nil), // 0: google.shopping.merchant.accounts.v1.AccountRelationship (*GetAccountRelationshipRequest)(nil), // 1: google.shopping.merchant.accounts.v1.GetAccountRelationshipRequest (*UpdateAccountRelationshipRequest)(nil), // 2: google.shopping.merchant.accounts.v1.UpdateAccountRelationshipRequest (*ListAccountRelationshipsRequest)(nil), // 3: google.shopping.merchant.accounts.v1.ListAccountRelationshipsRequest (*ListAccountRelationshipsResponse)(nil), // 4: google.shopping.merchant.accounts.v1.ListAccountRelationshipsResponse (*fieldmaskpb.FieldMask)(nil), // 5: google.protobuf.FieldMask } var file_google_shopping_merchant_accounts_v1_accountrelationships_proto_depIdxs = []int32{ 0, // 0: google.shopping.merchant.accounts.v1.UpdateAccountRelationshipRequest.account_relationship:type_name -> google.shopping.merchant.accounts.v1.AccountRelationship 5, // 1: google.shopping.merchant.accounts.v1.UpdateAccountRelationshipRequest.update_mask:type_name -> google.protobuf.FieldMask 0, // 2: google.shopping.merchant.accounts.v1.ListAccountRelationshipsResponse.account_relationships:type_name -> google.shopping.merchant.accounts.v1.AccountRelationship 1, // 3: google.shopping.merchant.accounts.v1.AccountRelationshipsService.GetAccountRelationship:input_type -> google.shopping.merchant.accounts.v1.GetAccountRelationshipRequest 2, // 4: google.shopping.merchant.accounts.v1.AccountRelationshipsService.UpdateAccountRelationship:input_type -> google.shopping.merchant.accounts.v1.UpdateAccountRelationshipRequest 3, // 5: google.shopping.merchant.accounts.v1.AccountRelationshipsService.ListAccountRelationships:input_type -> google.shopping.merchant.accounts.v1.ListAccountRelationshipsRequest 0, // 6: google.shopping.merchant.accounts.v1.AccountRelationshipsService.GetAccountRelationship:output_type -> google.shopping.merchant.accounts.v1.AccountRelationship 0, // 7: google.shopping.merchant.accounts.v1.AccountRelationshipsService.UpdateAccountRelationship:output_type -> google.shopping.merchant.accounts.v1.AccountRelationship 4, // 8: google.shopping.merchant.accounts.v1.AccountRelationshipsService.ListAccountRelationships:output_type -> google.shopping.merchant.accounts.v1.ListAccountRelationshipsResponse 6, // [6:9] is the sub-list for method output_type 3, // [3:6] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name 3, // [3:3] is the sub-list for extension extendee 0, // [0:3] is the sub-list for field type_name } func init() { file_google_shopping_merchant_accounts_v1_accountrelationships_proto_init() } func file_google_shopping_merchant_accounts_v1_accountrelationships_proto_init() { if File_google_shopping_merchant_accounts_v1_accountrelationships_proto != nil { return } file_google_shopping_merchant_accounts_v1_accountrelationships_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDesc, NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 1, }, GoTypes: file_google_shopping_merchant_accounts_v1_accountrelationships_proto_goTypes, DependencyIndexes: file_google_shopping_merchant_accounts_v1_accountrelationships_proto_depIdxs, MessageInfos: file_google_shopping_merchant_accounts_v1_accountrelationships_proto_msgTypes, }.Build() File_google_shopping_merchant_accounts_v1_accountrelationships_proto = out.File file_google_shopping_merchant_accounts_v1_accountrelationships_proto_rawDesc = nil file_google_shopping_merchant_accounts_v1_accountrelationships_proto_goTypes = nil file_google_shopping_merchant_accounts_v1_accountrelationships_proto_depIdxs = nil } // 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 // AccountRelationshipsServiceClient is the client API for AccountRelationshipsService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type AccountRelationshipsServiceClient interface { // Retrieve an account relationship. GetAccountRelationship(ctx context.Context, in *GetAccountRelationshipRequest, opts ...grpc.CallOption) (*AccountRelationship, error) // Updates the account relationship. Executing this method requires admin // access. UpdateAccountRelationship(ctx context.Context, in *UpdateAccountRelationshipRequest, opts ...grpc.CallOption) (*AccountRelationship, error) // List account relationships for the specified account. ListAccountRelationships(ctx context.Context, in *ListAccountRelationshipsRequest, opts ...grpc.CallOption) (*ListAccountRelationshipsResponse, error) } type accountRelationshipsServiceClient struct { cc grpc.ClientConnInterface } func NewAccountRelationshipsServiceClient(cc grpc.ClientConnInterface) AccountRelationshipsServiceClient { return &accountRelationshipsServiceClient{cc} } func (c *accountRelationshipsServiceClient) GetAccountRelationship(ctx context.Context, in *GetAccountRelationshipRequest, opts ...grpc.CallOption) (*AccountRelationship, error) { out := new(AccountRelationship) err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1.AccountRelationshipsService/GetAccountRelationship", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountRelationshipsServiceClient) UpdateAccountRelationship(ctx context.Context, in *UpdateAccountRelationshipRequest, opts ...grpc.CallOption) (*AccountRelationship, error) { out := new(AccountRelationship) err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1.AccountRelationshipsService/UpdateAccountRelationship", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountRelationshipsServiceClient) ListAccountRelationships(ctx context.Context, in *ListAccountRelationshipsRequest, opts ...grpc.CallOption) (*ListAccountRelationshipsResponse, error) { out := new(ListAccountRelationshipsResponse) err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1.AccountRelationshipsService/ListAccountRelationships", in, out, opts...) if err != nil { return nil, err } return out, nil } // AccountRelationshipsServiceServer is the server API for AccountRelationshipsService service. type AccountRelationshipsServiceServer interface { // Retrieve an account relationship. GetAccountRelationship(context.Context, *GetAccountRelationshipRequest) (*AccountRelationship, error) // Updates the account relationship. Executing this method requires admin // access. UpdateAccountRelationship(context.Context, *UpdateAccountRelationshipRequest) (*AccountRelationship, error) // List account relationships for the specified account. ListAccountRelationships(context.Context, *ListAccountRelationshipsRequest) (*ListAccountRelationshipsResponse, error) } // UnimplementedAccountRelationshipsServiceServer can be embedded to have forward compatible implementations. type UnimplementedAccountRelationshipsServiceServer struct { } func (*UnimplementedAccountRelationshipsServiceServer) GetAccountRelationship(context.Context, *GetAccountRelationshipRequest) (*AccountRelationship, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAccountRelationship not implemented") } func (*UnimplementedAccountRelationshipsServiceServer) UpdateAccountRelationship(context.Context, *UpdateAccountRelationshipRequest) (*AccountRelationship, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateAccountRelationship not implemented") } func (*UnimplementedAccountRelationshipsServiceServer) ListAccountRelationships(context.Context, *ListAccountRelationshipsRequest) (*ListAccountRelationshipsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAccountRelationships not implemented") } func RegisterAccountRelationshipsServiceServer(s *grpc.Server, srv AccountRelationshipsServiceServer) { s.RegisterService(&_AccountRelationshipsService_serviceDesc, srv) } func _AccountRelationshipsService_GetAccountRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetAccountRelationshipRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountRelationshipsServiceServer).GetAccountRelationship(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.shopping.merchant.accounts.v1.AccountRelationshipsService/GetAccountRelationship", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountRelationshipsServiceServer).GetAccountRelationship(ctx, req.(*GetAccountRelationshipRequest)) } return interceptor(ctx, in, info, handler) } func _AccountRelationshipsService_UpdateAccountRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateAccountRelationshipRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountRelationshipsServiceServer).UpdateAccountRelationship(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.shopping.merchant.accounts.v1.AccountRelationshipsService/UpdateAccountRelationship", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountRelationshipsServiceServer).UpdateAccountRelationship(ctx, req.(*UpdateAccountRelationshipRequest)) } return interceptor(ctx, in, info, handler) } func _AccountRelationshipsService_ListAccountRelationships_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListAccountRelationshipsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountRelationshipsServiceServer).ListAccountRelationships(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.shopping.merchant.accounts.v1.AccountRelationshipsService/ListAccountRelationships", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountRelationshipsServiceServer).ListAccountRelationships(ctx, req.(*ListAccountRelationshipsRequest)) } return interceptor(ctx, in, info, handler) } var _AccountRelationshipsService_serviceDesc = grpc.ServiceDesc{ ServiceName: "google.shopping.merchant.accounts.v1.AccountRelationshipsService", HandlerType: (*AccountRelationshipsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAccountRelationship", Handler: _AccountRelationshipsService_GetAccountRelationship_Handler, }, { MethodName: "UpdateAccountRelationship", Handler: _AccountRelationshipsService_UpdateAccountRelationship_Handler, }, { MethodName: "ListAccountRelationships", Handler: _AccountRelationshipsService_ListAccountRelationships_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "google/shopping/merchant/accounts/v1/accountrelationships.proto", }