Variables
AccessRight_name, AccessRight_value
var (
AccessRight_name = map[int32]string{
0: "ACCESS_RIGHT_UNSPECIFIED",
1: "STANDARD",
2: "ADMIN",
3: "PERFORMANCE_REPORTING",
}
AccessRight_value = map[string]int32{
"ACCESS_RIGHT_UNSPECIFIED": 0,
"STANDARD": 1,
"ADMIN": 2,
"PERFORMANCE_REPORTING": 3,
}
)
Enum value maps for AccessRight.
AccountIssue_Severity_name, AccountIssue_Severity_value
var (
AccountIssue_Severity_name = map[int32]string{
0: "SEVERITY_UNSPECIFIED",
1: "CRITICAL",
2: "ERROR",
3: "SUGGESTION",
}
AccountIssue_Severity_value = map[string]int32{
"SEVERITY_UNSPECIFIED": 0,
"CRITICAL": 1,
"ERROR": 2,
"SUGGESTION": 3,
}
)
Enum value maps for AccountIssue_Severity.
BusinessIdentity_PromotionsConsent_name, BusinessIdentity_PromotionsConsent_value
var (
BusinessIdentity_PromotionsConsent_name = map[int32]string{
0: "PROMOTIONS_CONSENT_UNSPECIFIED",
1: "PROMOTIONS_CONSENT_GIVEN",
2: "PROMOTIONS_CONSENT_DENIED",
}
BusinessIdentity_PromotionsConsent_value = map[string]int32{
"PROMOTIONS_CONSENT_UNSPECIFIED": 0,
"PROMOTIONS_CONSENT_GIVEN": 1,
"PROMOTIONS_CONSENT_DENIED": 2,
}
)
Enum value maps for BusinessIdentity_PromotionsConsent.
BusinessIdentity_IdentityAttribute_IdentityDeclaration_name, BusinessIdentity_IdentityAttribute_IdentityDeclaration_value
var (
BusinessIdentity_IdentityAttribute_IdentityDeclaration_name = map[int32]string{
0: "IDENTITY_DECLARATION_UNSPECIFIED",
1: "SELF_IDENTIFIES_AS",
2: "DOES_NOT_SELF_IDENTIFY_AS",
}
BusinessIdentity_IdentityAttribute_IdentityDeclaration_value = map[string]int32{
"IDENTITY_DECLARATION_UNSPECIFIED": 0,
"SELF_IDENTIFIES_AS": 1,
"DOES_NOT_SELF_IDENTIFY_AS": 2,
}
)
Enum value maps for BusinessIdentity_IdentityAttribute_IdentityDeclaration.
EmailPreferences_OptInState_name, EmailPreferences_OptInState_value
var (
EmailPreferences_OptInState_name = map[int32]string{
0: "OPT_IN_STATE_UNSPECIFIED",
1: "OPTED_OUT",
2: "OPTED_IN",
3: "UNCONFIRMED",
}
EmailPreferences_OptInState_value = map[string]int32{
"OPT_IN_STATE_UNSPECIFIED": 0,
"OPTED_OUT": 1,
"OPTED_IN": 2,
"UNCONFIRMED": 3,
}
)
Enum value maps for EmailPreferences_OptInState.
OnlineReturnPolicy_ReturnMethod_name, OnlineReturnPolicy_ReturnMethod_value
var (
OnlineReturnPolicy_ReturnMethod_name = map[int32]string{
0: "RETURN_METHOD_UNSPECIFIED",
1: "BY_MAIL",
2: "IN_STORE",
3: "AT_A_KIOSK",
}
OnlineReturnPolicy_ReturnMethod_value = map[string]int32{
"RETURN_METHOD_UNSPECIFIED": 0,
"BY_MAIL": 1,
"IN_STORE": 2,
"AT_A_KIOSK": 3,
}
)
Enum value maps for OnlineReturnPolicy_ReturnMethod.
OnlineReturnPolicy_ItemCondition_name, OnlineReturnPolicy_ItemCondition_value
var (
OnlineReturnPolicy_ItemCondition_name = map[int32]string{
0: "ITEM_CONDITION_UNSPECIFIED",
1: "NEW",
2: "USED",
}
OnlineReturnPolicy_ItemCondition_value = map[string]int32{
"ITEM_CONDITION_UNSPECIFIED": 0,
"NEW": 1,
"USED": 2,
}
)
Enum value maps for OnlineReturnPolicy_ItemCondition.
OnlineReturnPolicy_ReturnShippingFee_Type_name, OnlineReturnPolicy_ReturnShippingFee_Type_value
var (
OnlineReturnPolicy_ReturnShippingFee_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "FIXED",
2: "CUSTOMER_PAYING_ACTUAL_FEE",
}
OnlineReturnPolicy_ReturnShippingFee_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"FIXED": 1,
"CUSTOMER_PAYING_ACTUAL_FEE": 2,
}
)
Enum value maps for OnlineReturnPolicy_ReturnShippingFee_Type.
OnlineReturnPolicy_Policy_Type_name, OnlineReturnPolicy_Policy_Type_value
var (
OnlineReturnPolicy_Policy_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "NUMBER_OF_DAYS_AFTER_DELIVERY",
2: "NO_RETURNS",
3: "LIFETIME_RETURNS",
}
OnlineReturnPolicy_Policy_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"NUMBER_OF_DAYS_AFTER_DELIVERY": 1,
"NO_RETURNS": 2,
"LIFETIME_RETURNS": 3,
}
)
Enum value maps for OnlineReturnPolicy_Policy_Type.
PhoneVerificationState_name, PhoneVerificationState_value
var (
PhoneVerificationState_name = map[int32]string{
0: "PHONE_VERIFICATION_STATE_UNSPECIFIED",
1: "PHONE_VERIFICATION_STATE_VERIFIED",
2: "PHONE_VERIFICATION_STATE_UNVERIFIED",
}
PhoneVerificationState_value = map[string]int32{
"PHONE_VERIFICATION_STATE_UNSPECIFIED": 0,
"PHONE_VERIFICATION_STATE_VERIFIED": 1,
"PHONE_VERIFICATION_STATE_UNVERIFIED": 2,
}
)
Enum value maps for PhoneVerificationState.
Program_State_name, Program_State_value
var (
Program_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "NOT_ELIGIBLE",
2: "ELIGIBLE",
3: "ENABLED",
}
Program_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"NOT_ELIGIBLE": 1,
"ELIGIBLE": 2,
"ENABLED": 3,
}
)
Enum value maps for Program_State.
Service_ShipmentType_name, Service_ShipmentType_value
var (
Service_ShipmentType_name = map[int32]string{
0: "SHIPMENT_TYPE_UNSPECIFIED",
1: "DELIVERY",
2: "LOCAL_DELIVERY",
3: "COLLECTION_POINT",
}
Service_ShipmentType_value = map[string]int32{
"SHIPMENT_TYPE_UNSPECIFIED": 0,
"DELIVERY": 1,
"LOCAL_DELIVERY": 2,
"COLLECTION_POINT": 3,
}
)
Enum value maps for Service_ShipmentType.
Service_StoreConfig_StoreServiceType_name, Service_StoreConfig_StoreServiceType_value
var (
Service_StoreConfig_StoreServiceType_name = map[int32]string{
0: "STORE_SERVICE_TYPE_UNSPECIFIED",
1: "ALL_STORES",
2: "SELECTED_STORES",
}
Service_StoreConfig_StoreServiceType_value = map[string]int32{
"STORE_SERVICE_TYPE_UNSPECIFIED": 0,
"ALL_STORES": 1,
"SELECTED_STORES": 2,
}
)
Enum value maps for Service_StoreConfig_StoreServiceType.
Distance_Unit_name, Distance_Unit_value
var (
Distance_Unit_name = map[int32]string{
0: "UNIT_UNSPECIFIED",
1: "MILES",
2: "KILOMETERS",
}
Distance_Unit_value = map[string]int32{
"UNIT_UNSPECIFIED": 0,
"MILES": 1,
"KILOMETERS": 2,
}
)
Enum value maps for Distance_Unit.
BusinessDayConfig_Weekday_name, BusinessDayConfig_Weekday_value
var (
BusinessDayConfig_Weekday_name = map[int32]string{
0: "WEEKDAY_UNSPECIFIED",
1: "MONDAY",
2: "TUESDAY",
3: "WEDNESDAY",
4: "THURSDAY",
5: "FRIDAY",
6: "SATURDAY",
7: "SUNDAY",
}
BusinessDayConfig_Weekday_value = map[string]int32{
"WEEKDAY_UNSPECIFIED": 0,
"MONDAY": 1,
"TUESDAY": 2,
"WEDNESDAY": 3,
"THURSDAY": 4,
"FRIDAY": 5,
"SATURDAY": 6,
"SUNDAY": 7,
}
)
Enum value maps for BusinessDayConfig_Weekday.
TermsOfServiceKind_name, TermsOfServiceKind_value
var (
TermsOfServiceKind_name = map[int32]string{
0: "TERMS_OF_SERVICE_KIND_UNSPECIFIED",
1: "MERCHANT_CENTER",
}
TermsOfServiceKind_value = map[string]int32{
"TERMS_OF_SERVICE_KIND_UNSPECIFIED": 0,
"MERCHANT_CENTER": 1,
}
)
Enum value maps for TermsOfServiceKind.
User_State_name, User_State_value
var (
User_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "PENDING",
2: "VERIFIED",
}
User_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"PENDING": 1,
"VERIFIED": 2,
}
)
Enum value maps for User_State.
File_google_shopping_merchant_accounts_v1beta_accessright_proto
var File_google_shopping_merchant_accounts_v1beta_accessright_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_account_tax_proto
var File_google_shopping_merchant_accounts_v1beta_account_tax_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_accountissue_proto
var File_google_shopping_merchant_accounts_v1beta_accountissue_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_accounts_proto
var File_google_shopping_merchant_accounts_v1beta_accounts_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_businessidentity_proto
var File_google_shopping_merchant_accounts_v1beta_businessidentity_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_businessinfo_proto
var File_google_shopping_merchant_accounts_v1beta_businessinfo_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_customerservice_proto
var File_google_shopping_merchant_accounts_v1beta_customerservice_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_emailpreferences_proto
var File_google_shopping_merchant_accounts_v1beta_emailpreferences_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_homepage_proto
var File_google_shopping_merchant_accounts_v1beta_homepage_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_online_return_policy_proto
var File_google_shopping_merchant_accounts_v1beta_online_return_policy_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_phoneverificationstate_proto
var File_google_shopping_merchant_accounts_v1beta_phoneverificationstate_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_programs_proto
var File_google_shopping_merchant_accounts_v1beta_programs_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_regions_proto
var File_google_shopping_merchant_accounts_v1beta_regions_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_shippingsettings_proto
var File_google_shopping_merchant_accounts_v1beta_shippingsettings_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_tax_rule_proto
var File_google_shopping_merchant_accounts_v1beta_tax_rule_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_termsofservice_proto
var File_google_shopping_merchant_accounts_v1beta_termsofservice_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_termsofserviceagreementstate_proto
var File_google_shopping_merchant_accounts_v1beta_termsofserviceagreementstate_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_termsofservicekind_proto
var File_google_shopping_merchant_accounts_v1beta_termsofservicekind_proto protoreflect.FileDescriptor
File_google_shopping_merchant_accounts_v1beta_user_proto
var File_google_shopping_merchant_accounts_v1beta_user_proto protoreflect.FileDescriptor
Functions
func RegisterAccountIssueServiceServer
func RegisterAccountIssueServiceServer(s *grpc.Server, srv AccountIssueServiceServer)
func RegisterAccountTaxServiceServer
func RegisterAccountTaxServiceServer(s *grpc.Server, srv AccountTaxServiceServer)
func RegisterAccountsServiceServer
func RegisterAccountsServiceServer(s *grpc.Server, srv AccountsServiceServer)
func RegisterBusinessIdentityServiceServer
func RegisterBusinessIdentityServiceServer(s *grpc.Server, srv BusinessIdentityServiceServer)
func RegisterBusinessInfoServiceServer
func RegisterBusinessInfoServiceServer(s *grpc.Server, srv BusinessInfoServiceServer)
func RegisterEmailPreferencesServiceServer
func RegisterEmailPreferencesServiceServer(s *grpc.Server, srv EmailPreferencesServiceServer)
func RegisterHomepageServiceServer
func RegisterHomepageServiceServer(s *grpc.Server, srv HomepageServiceServer)
func RegisterOnlineReturnPolicyServiceServer
func RegisterOnlineReturnPolicyServiceServer(s *grpc.Server, srv OnlineReturnPolicyServiceServer)
func RegisterProgramsServiceServer
func RegisterProgramsServiceServer(s *grpc.Server, srv ProgramsServiceServer)
func RegisterRegionsServiceServer
func RegisterRegionsServiceServer(s *grpc.Server, srv RegionsServiceServer)
func RegisterShippingSettingsServiceServer
func RegisterShippingSettingsServiceServer(s *grpc.Server, srv ShippingSettingsServiceServer)
func RegisterTermsOfServiceAgreementStateServiceServer
func RegisterTermsOfServiceAgreementStateServiceServer(s *grpc.Server, srv TermsOfServiceAgreementStateServiceServer)
func RegisterTermsOfServiceServiceServer
func RegisterTermsOfServiceServiceServer(s *grpc.Server, srv TermsOfServiceServiceServer)
func RegisterUserServiceServer
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
AcceptTermsOfServiceRequest
type AcceptTermsOfServiceRequest struct {
// Required. The resource name of the terms of service version.
// Format: `termsOfService/{version}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The account for which to accept the ToS.
Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
// Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This
// is either a country when the ToS applies specifically to that country or
// 001 when it applies globally.
RegionCode string `protobuf:"bytes,3,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
// contains filtered or unexported fields
}
Request message for the AcceptTermsOfService
method.
func (*AcceptTermsOfServiceRequest) Descriptor
func (*AcceptTermsOfServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use AcceptTermsOfServiceRequest.ProtoReflect.Descriptor instead.
func (*AcceptTermsOfServiceRequest) GetAccount
func (x *AcceptTermsOfServiceRequest) GetAccount() string
func (*AcceptTermsOfServiceRequest) GetName
func (x *AcceptTermsOfServiceRequest) GetName() string
func (*AcceptTermsOfServiceRequest) GetRegionCode
func (x *AcceptTermsOfServiceRequest) GetRegionCode() string
func (*AcceptTermsOfServiceRequest) ProtoMessage
func (*AcceptTermsOfServiceRequest) ProtoMessage()
func (*AcceptTermsOfServiceRequest) ProtoReflect
func (x *AcceptTermsOfServiceRequest) ProtoReflect() protoreflect.Message
func (*AcceptTermsOfServiceRequest) Reset
func (x *AcceptTermsOfServiceRequest) Reset()
func (*AcceptTermsOfServiceRequest) String
func (x *AcceptTermsOfServiceRequest) String() string
Accepted
type Accepted struct {
// The accepted
// [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService).
TermsOfService string `protobuf:"bytes,1,opt,name=terms_of_service,json=termsOfService,proto3" json:"terms_of_service,omitempty"`
// The account where the acceptance was recorded. This can be the account
// itself or, in the case of subaccounts, the MCA account.
AcceptedBy string `protobuf:"bytes,2,opt,name=accepted_by,json=acceptedBy,proto3" json:"accepted_by,omitempty"`
// When set, it states that the accepted
// [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
// is only valid until the end of this date (in UTC). A new one must be
// accepted before then. The information of the required
// [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
// is found in the [Required](Required) message.
ValidUntil *date.Date `protobuf:"bytes,3,opt,name=valid_until,json=validUntil,proto3,oneof" json:"valid_until,omitempty"`
// contains filtered or unexported fields
}
Describes the accepted terms of service.
func (*Accepted) Descriptor
Deprecated: Use Accepted.ProtoReflect.Descriptor instead.
func (*Accepted) GetAcceptedBy
func (*Accepted) GetTermsOfService
func (*Accepted) GetValidUntil
func (*Accepted) ProtoMessage
func (*Accepted) ProtoMessage()
func (*Accepted) ProtoReflect
func (x *Accepted) ProtoReflect() protoreflect.Message
func (*Accepted) Reset
func (x *Accepted) Reset()
func (*Accepted) String
AccessRight
type AccessRight int32
The access right.
AccessRight_ACCESS_RIGHT_UNSPECIFIED, AccessRight_STANDARD, AccessRight_ADMIN, AccessRight_PERFORMANCE_REPORTING
const (
// Default value. This value is unused.
AccessRight_ACCESS_RIGHT_UNSPECIFIED AccessRight = 0
// Standard access rights.
AccessRight_STANDARD AccessRight = 1
// Admin access rights.
AccessRight_ADMIN AccessRight = 2
// Users with this right have access to performance and insights.
AccessRight_PERFORMANCE_REPORTING AccessRight = 3
)
func (AccessRight) Descriptor
func (AccessRight) Descriptor() protoreflect.EnumDescriptor
func (AccessRight) Enum
func (x AccessRight) Enum() *AccessRight
func (AccessRight) EnumDescriptor
func (AccessRight) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccessRight.Descriptor instead.
func (AccessRight) Number
func (x AccessRight) Number() protoreflect.EnumNumber
func (AccessRight) String
func (x AccessRight) String() string
func (AccessRight) Type
func (AccessRight) Type() protoreflect.EnumType
Account
type Account struct {
// Identifier. The resource name of the account.
// Format: `accounts/{account}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The ID of the account.
AccountId int64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
// Required. A human-readable name of the account. See
// [store name](https://support.google.com/merchants/answer/160556) and
// [business name](https://support.google.com/merchants/answer/12159159) for
// more information.
AccountName string `protobuf:"bytes,3,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
// Whether this account contains adult content.
AdultContent bool `protobuf:"varint,4,opt,name=adult_content,json=adultContent,proto3" json:"adult_content,omitempty"`
// Output only. Whether this is a test account.
TestAccount bool `protobuf:"varint,5,opt,name=test_account,json=testAccount,proto3" json:"test_account,omitempty"`
// Required. The time zone of the account.
//
// On writes, `time_zone` sets both the `reporting_time_zone` and the
// `display_time_zone`.
//
// For reads, `time_zone` always returns the `display_time_zone`. If
// `display_time_zone` doesn't exist for your account, `time_zone` is empty.
TimeZone *datetime.TimeZone `protobuf:"bytes,6,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
// Required. The account's [BCP-47 language
// code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
LanguageCode string `protobuf:"bytes,7,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// contains filtered or unexported fields
}
An account.
func (*Account) Descriptor
Deprecated: Use Account.ProtoReflect.Descriptor instead.
func (*Account) GetAccountId
func (*Account) GetAccountName
func (*Account) GetAdultContent
func (*Account) GetLanguageCode
func (*Account) GetName
func (*Account) GetTestAccount
func (*Account) GetTimeZone
func (*Account) ProtoMessage
func (*Account) ProtoMessage()
func (*Account) ProtoReflect
func (x *Account) ProtoReflect() protoreflect.Message
func (*Account) Reset
func (x *Account) Reset()
func (*Account) String
AccountIssue
type AccountIssue struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Severity AccountIssue_Severity "" /* 138 byte string literal not displayed */
ImpactedDestinations []*AccountIssue_ImpactedDestination `protobuf:"bytes,4,rep,name=impacted_destinations,json=impactedDestinations,proto3" json:"impacted_destinations,omitempty"`
Detail string `protobuf:"bytes,5,opt,name=detail,proto3" json:"detail,omitempty"`
DocumentationUri string `protobuf:"bytes,6,opt,name=documentation_uri,json=documentationUri,proto3" json:"documentation_uri,omitempty"`
}
An
AccountIssue
.
func (*AccountIssue) Descriptor
func (*AccountIssue) Descriptor() ([]byte, []int)
Deprecated: Use AccountIssue.ProtoReflect.Descriptor instead.
func (*AccountIssue) GetDetail
func (x *AccountIssue) GetDetail() string
func (*AccountIssue) GetDocumentationUri
func (x *AccountIssue) GetDocumentationUri() string
func (*AccountIssue) GetImpactedDestinations
func (x *AccountIssue) GetImpactedDestinations() []*AccountIssue_ImpactedDestination
func (*AccountIssue) GetName
func (x *AccountIssue) GetName() string
func (*AccountIssue) GetSeverity
func (x *AccountIssue) GetSeverity() AccountIssue_Severity
func (*AccountIssue) GetTitle
func (x *AccountIssue) GetTitle() string
func (*AccountIssue) ProtoMessage
func (*AccountIssue) ProtoMessage()
func (*AccountIssue) ProtoReflect
func (x *AccountIssue) ProtoReflect() protoreflect.Message
func (*AccountIssue) Reset
func (x *AccountIssue) Reset()
func (*AccountIssue) String
func (x *AccountIssue) String() string
AccountIssueServiceClient
type AccountIssueServiceClient interface {
// Lists all account issues of a Merchant Center account.
ListAccountIssues(ctx context.Context, in *ListAccountIssuesRequest, opts ...grpc.CallOption) (*ListAccountIssuesResponse, error)
}
AccountIssueServiceClient is the client API for AccountIssueService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountIssueServiceClient
func NewAccountIssueServiceClient(cc grpc.ClientConnInterface) AccountIssueServiceClient
AccountIssueServiceServer
type AccountIssueServiceServer interface {
// Lists all account issues of a Merchant Center account.
ListAccountIssues(context.Context, *ListAccountIssuesRequest) (*ListAccountIssuesResponse, error)
}
AccountIssueServiceServer is the server API for AccountIssueService service.
AccountIssue_ImpactedDestination
type AccountIssue_ImpactedDestination struct {
ReportingContext *typepb.ReportingContext_ReportingContextEnum "" /* 180 byte string literal not displayed */
Impacts []*AccountIssue_ImpactedDestination_Impact `protobuf:"bytes,2,rep,name=impacts,proto3" json:"impacts,omitempty"`
}
The impact of the issue on a destination.
func (*AccountIssue_ImpactedDestination) Descriptor
func (*AccountIssue_ImpactedDestination) Descriptor() ([]byte, []int)
Deprecated: Use AccountIssue_ImpactedDestination.ProtoReflect.Descriptor instead.
func (*AccountIssue_ImpactedDestination) GetImpacts
func (x *AccountIssue_ImpactedDestination) GetImpacts() []*AccountIssue_ImpactedDestination_Impact
func (*AccountIssue_ImpactedDestination) GetReportingContext
func (x *AccountIssue_ImpactedDestination) GetReportingContext() typepb.ReportingContext_ReportingContextEnum
func (*AccountIssue_ImpactedDestination) ProtoMessage
func (*AccountIssue_ImpactedDestination) ProtoMessage()
func (*AccountIssue_ImpactedDestination) ProtoReflect
func (x *AccountIssue_ImpactedDestination) ProtoReflect() protoreflect.Message
func (*AccountIssue_ImpactedDestination) Reset
func (x *AccountIssue_ImpactedDestination) Reset()
func (*AccountIssue_ImpactedDestination) String
func (x *AccountIssue_ImpactedDestination) String() string
AccountIssue_ImpactedDestination_Impact
type AccountIssue_ImpactedDestination_Impact struct {
RegionCode string `protobuf:"bytes,1,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
Severity AccountIssue_Severity "" /* 138 byte string literal not displayed */
}
The impact of the issue on a region.
func (*AccountIssue_ImpactedDestination_Impact) Descriptor
func (*AccountIssue_ImpactedDestination_Impact) Descriptor() ([]byte, []int)
Deprecated: Use AccountIssue_ImpactedDestination_Impact.ProtoReflect.Descriptor instead.
func (*AccountIssue_ImpactedDestination_Impact) GetRegionCode
func (x *AccountIssue_ImpactedDestination_Impact) GetRegionCode() string
func (*AccountIssue_ImpactedDestination_Impact) GetSeverity
func (x *AccountIssue_ImpactedDestination_Impact) GetSeverity() AccountIssue_Severity
func (*AccountIssue_ImpactedDestination_Impact) ProtoMessage
func (*AccountIssue_ImpactedDestination_Impact) ProtoMessage()
func (*AccountIssue_ImpactedDestination_Impact) ProtoReflect
func (x *AccountIssue_ImpactedDestination_Impact) ProtoReflect() protoreflect.Message
func (*AccountIssue_ImpactedDestination_Impact) Reset
func (x *AccountIssue_ImpactedDestination_Impact) Reset()
func (*AccountIssue_ImpactedDestination_Impact) String
func (x *AccountIssue_ImpactedDestination_Impact) String() string
AccountIssue_Severity
type AccountIssue_Severity int32
All possible issue severities.
AccountIssue_SEVERITY_UNSPECIFIED, AccountIssue_CRITICAL, AccountIssue_ERROR, AccountIssue_SUGGESTION
const (
// The severity is unknown.
AccountIssue_SEVERITY_UNSPECIFIED AccountIssue_Severity = 0
// The issue causes offers to not serve.
AccountIssue_CRITICAL AccountIssue_Severity = 1
// The issue might affect offers (in the future) or might be an
// indicator of issues with offers.
AccountIssue_ERROR AccountIssue_Severity = 2
// The issue is a suggestion for improvement.
AccountIssue_SUGGESTION AccountIssue_Severity = 3
)
func (AccountIssue_Severity) Descriptor
func (AccountIssue_Severity) Descriptor() protoreflect.EnumDescriptor
func (AccountIssue_Severity) Enum
func (x AccountIssue_Severity) Enum() *AccountIssue_Severity
func (AccountIssue_Severity) EnumDescriptor
func (AccountIssue_Severity) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountIssue_Severity.Descriptor instead.
func (AccountIssue_Severity) Number
func (x AccountIssue_Severity) Number() protoreflect.EnumNumber
func (AccountIssue_Severity) String
func (x AccountIssue_Severity) String() string
func (AccountIssue_Severity) Type
func (AccountIssue_Severity) Type() protoreflect.EnumType
AccountTax
type AccountTax struct {
// Identifier. The name of the tax setting.
// Format:
// "{account_tax.name=accounts/{account}}"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The ID of the account to which these account tax settings
// belong.
Account int64 `protobuf:"varint,2,opt,name=account,proto3" json:"account,omitempty"`
// Tax rules. "Define the tax rules in each region.
// No tax will be presented if a region has no rule."
TaxRules []*TaxRule `protobuf:"bytes,3,rep,name=tax_rules,json=taxRules,proto3" json:"tax_rules,omitempty"`
// contains filtered or unexported fields
}
The tax settings of a merchant account. All methods require the admin role.
func (*AccountTax) Descriptor
func (*AccountTax) Descriptor() ([]byte, []int)
Deprecated: Use AccountTax.ProtoReflect.Descriptor instead.
func (*AccountTax) GetAccount
func (x *AccountTax) GetAccount() int64
func (*AccountTax) GetName
func (x *AccountTax) GetName() string
func (*AccountTax) GetTaxRules
func (x *AccountTax) GetTaxRules() []*TaxRule
func (*AccountTax) ProtoMessage
func (*AccountTax) ProtoMessage()
func (*AccountTax) ProtoReflect
func (x *AccountTax) ProtoReflect() protoreflect.Message
func (*AccountTax) Reset
func (x *AccountTax) Reset()
func (*AccountTax) String
func (x *AccountTax) String() string
AccountTaxServiceClient
type AccountTaxServiceClient interface {
// Returns the tax rules that match the conditions of GetAccountTaxRequest
GetAccountTax(ctx context.Context, in *GetAccountTaxRequest, opts ...grpc.CallOption) (*AccountTax, error)
// Lists the tax settings of the sub-accounts only in your
// Merchant Center account.
// This method can only be called on a multi-client account, otherwise it'll
// return an error.
ListAccountTax(ctx context.Context, in *ListAccountTaxRequest, opts ...grpc.CallOption) (*ListAccountTaxResponse, error)
// Updates the tax settings of the account.
UpdateAccountTax(ctx context.Context, in *UpdateAccountTaxRequest, opts ...grpc.CallOption) (*AccountTax, error)
}
AccountTaxServiceClient is the client API for AccountTaxService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountTaxServiceClient
func NewAccountTaxServiceClient(cc grpc.ClientConnInterface) AccountTaxServiceClient
AccountTaxServiceServer
type AccountTaxServiceServer interface {
// Returns the tax rules that match the conditions of GetAccountTaxRequest
GetAccountTax(context.Context, *GetAccountTaxRequest) (*AccountTax, error)
// Lists the tax settings of the sub-accounts only in your
// Merchant Center account.
// This method can only be called on a multi-client account, otherwise it'll
// return an error.
ListAccountTax(context.Context, *ListAccountTaxRequest) (*ListAccountTaxResponse, error)
// Updates the tax settings of the account.
UpdateAccountTax(context.Context, *UpdateAccountTaxRequest) (*AccountTax, error)
}
AccountTaxServiceServer is the server API for AccountTaxService service.
AccountsServiceClient
type AccountsServiceClient interface {
// Retrieves an account from your Merchant Center account.
// After inserting, updating, or deleting an account, it may take several
// minutes before changes take effect.
GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*Account, error)
// Creates a standalone Merchant Center account with additional configuration.
// Adds the user that makes the request as an admin for the new account.
CreateAndConfigureAccount(ctx context.Context, in *CreateAndConfigureAccountRequest, opts ...grpc.CallOption) (*Account, error)
// Deletes the specified account regardless of its type: standalone, MCA or
// sub-account. Deleting an MCA leads to the deletion of all of its
// sub-accounts. Executing this method requires admin access.
DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Updates an account regardless of its type: standalone, MCA or sub-account.
// Executing this method requires admin access.
UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*Account, error)
// Lists accounts accessible to the calling user and matching the
// constraints of the request such as page size or filters.
// This is not just listing the sub-accounts of an MCA, but all accounts the
// calling user has access to including other MCAs, linked accounts,
// standalone accounts and so on.
ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
// List all sub-accounts for a given multi client account. This is a
// convenience wrapper for the more powerful `ListAccounts` method. This
// method will produce the same results as calling `ListsAccounts` with the
// following filter:
// `relationship(providerId={parent} AND service(type="ACCOUNT_AGGREGATION"))`
ListSubAccounts(ctx context.Context, in *ListSubAccountsRequest, opts ...grpc.CallOption) (*ListSubAccountsResponse, error)
}
AccountsServiceClient is the client API for AccountsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountsServiceClient
func NewAccountsServiceClient(cc grpc.ClientConnInterface) AccountsServiceClient
AccountsServiceServer
type AccountsServiceServer interface {
// Retrieves an account from your Merchant Center account.
// After inserting, updating, or deleting an account, it may take several
// minutes before changes take effect.
GetAccount(context.Context, *GetAccountRequest) (*Account, error)
// Creates a standalone Merchant Center account with additional configuration.
// Adds the user that makes the request as an admin for the new account.
CreateAndConfigureAccount(context.Context, *CreateAndConfigureAccountRequest) (*Account, error)
// Deletes the specified account regardless of its type: standalone, MCA or
// sub-account. Deleting an MCA leads to the deletion of all of its
// sub-accounts. Executing this method requires admin access.
DeleteAccount(context.Context, *DeleteAccountRequest) (*emptypb.Empty, error)
// Updates an account regardless of its type: standalone, MCA or sub-account.
// Executing this method requires admin access.
UpdateAccount(context.Context, *UpdateAccountRequest) (*Account, error)
// Lists accounts accessible to the calling user and matching the
// constraints of the request such as page size or filters.
// This is not just listing the sub-accounts of an MCA, but all accounts the
// calling user has access to including other MCAs, linked accounts,
// standalone accounts and so on.
ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
// List all sub-accounts for a given multi client account. This is a
// convenience wrapper for the more powerful `ListAccounts` method. This
// method will produce the same results as calling `ListsAccounts` with the
// following filter:
// `relationship(providerId={parent} AND service(type="ACCOUNT_AGGREGATION"))`
ListSubAccounts(context.Context, *ListSubAccountsRequest) (*ListSubAccountsResponse, error)
}
AccountsServiceServer is the server API for AccountsService service.
Address
type Address struct {
// Street-level part of the address. For example: `111w 31st Street`.
StreetAddress *string `protobuf:"bytes,1,opt,name=street_address,json=streetAddress,proto3,oneof" json:"street_address,omitempty"`
// Required. City, town or commune. May also include dependent localities or
// sublocalities (For example neighborhoods or suburbs).
City *string `protobuf:"bytes,2,opt,name=city,proto3,oneof" json:"city,omitempty"`
// Required. Top-level administrative subdivision of the country. For example,
// a state like California ("CA") or a province like Quebec ("QC").
AdministrativeArea *string `protobuf:"bytes,3,opt,name=administrative_area,json=administrativeArea,proto3,oneof" json:"administrative_area,omitempty"`
// Required. Postal code or ZIP (For example "94043").
PostalCode *string `protobuf:"bytes,4,opt,name=postal_code,json=postalCode,proto3,oneof" json:"postal_code,omitempty"`
// Required. [CLDR country
// code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
// (For example "US").
RegionCode *string `protobuf:"bytes,5,opt,name=region_code,json=regionCode,proto3,oneof" json:"region_code,omitempty"`
// contains filtered or unexported fields
}
Shipping address of the warehouse.
func (*Address) Descriptor
Deprecated: Use Address.ProtoReflect.Descriptor instead.
func (*Address) GetAdministrativeArea
func (*Address) GetCity
func (*Address) GetPostalCode
func (*Address) GetRegionCode
func (*Address) GetStreetAddress
func (*Address) ProtoMessage
func (*Address) ProtoMessage()
func (*Address) ProtoReflect
func (x *Address) ProtoReflect() protoreflect.Message
func (*Address) Reset
func (x *Address) Reset()
func (*Address) String
BusinessDayConfig
type BusinessDayConfig struct {
BusinessDays []BusinessDayConfig_Weekday "" /* 177 byte string literal not displayed */
}
Business days of the warehouse.
func (*BusinessDayConfig) Descriptor
func (*BusinessDayConfig) Descriptor() ([]byte, []int)
Deprecated: Use BusinessDayConfig.ProtoReflect.Descriptor instead.
func (*BusinessDayConfig) GetBusinessDays
func (x *BusinessDayConfig) GetBusinessDays() []BusinessDayConfig_Weekday
func (*BusinessDayConfig) ProtoMessage
func (*BusinessDayConfig) ProtoMessage()
func (*BusinessDayConfig) ProtoReflect
func (x *BusinessDayConfig) ProtoReflect() protoreflect.Message
func (*BusinessDayConfig) Reset
func (x *BusinessDayConfig) Reset()
func (*BusinessDayConfig) String
func (x *BusinessDayConfig) String() string
BusinessDayConfig_Weekday
type BusinessDayConfig_Weekday int32
BusinessDayConfig_WEEKDAY_UNSPECIFIED, BusinessDayConfig_MONDAY, BusinessDayConfig_TUESDAY, BusinessDayConfig_WEDNESDAY, BusinessDayConfig_THURSDAY, BusinessDayConfig_FRIDAY, BusinessDayConfig_SATURDAY, BusinessDayConfig_SUNDAY
const (
BusinessDayConfig_WEEKDAY_UNSPECIFIED BusinessDayConfig_Weekday = 0
BusinessDayConfig_MONDAY BusinessDayConfig_Weekday = 1
BusinessDayConfig_TUESDAY BusinessDayConfig_Weekday = 2
BusinessDayConfig_WEDNESDAY BusinessDayConfig_Weekday = 3
BusinessDayConfig_THURSDAY BusinessDayConfig_Weekday = 4
BusinessDayConfig_FRIDAY BusinessDayConfig_Weekday = 5
BusinessDayConfig_SATURDAY BusinessDayConfig_Weekday = 6
BusinessDayConfig_SUNDAY BusinessDayConfig_Weekday = 7
)
func (BusinessDayConfig_Weekday) Descriptor
func (BusinessDayConfig_Weekday) Descriptor() protoreflect.EnumDescriptor
func (BusinessDayConfig_Weekday) Enum
func (x BusinessDayConfig_Weekday) Enum() *BusinessDayConfig_Weekday
func (BusinessDayConfig_Weekday) EnumDescriptor
func (BusinessDayConfig_Weekday) EnumDescriptor() ([]byte, []int)
Deprecated: Use BusinessDayConfig_Weekday.Descriptor instead.
func (BusinessDayConfig_Weekday) Number
func (x BusinessDayConfig_Weekday) Number() protoreflect.EnumNumber
func (BusinessDayConfig_Weekday) String
func (x BusinessDayConfig_Weekday) String() string
func (BusinessDayConfig_Weekday) Type
func (BusinessDayConfig_Weekday) Type() protoreflect.EnumType
BusinessIdentity
type BusinessIdentity struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
PromotionsConsent BusinessIdentity_PromotionsConsent "" /* 194 byte string literal not displayed */
BlackOwned *BusinessIdentity_IdentityAttribute `protobuf:"bytes,3,opt,name=black_owned,json=blackOwned,proto3" json:"black_owned,omitempty"`
WomenOwned *BusinessIdentity_IdentityAttribute `protobuf:"bytes,4,opt,name=women_owned,json=womenOwned,proto3" json:"women_owned,omitempty"`
VeteranOwned *BusinessIdentity_IdentityAttribute `protobuf:"bytes,5,opt,name=veteran_owned,json=veteranOwned,proto3" json:"veteran_owned,omitempty"`
LatinoOwned *BusinessIdentity_IdentityAttribute `protobuf:"bytes,6,opt,name=latino_owned,json=latinoOwned,proto3" json:"latino_owned,omitempty"`
SmallBusiness *BusinessIdentity_IdentityAttribute `protobuf:"bytes,7,opt,name=small_business,json=smallBusiness,proto3" json:"small_business,omitempty"`
}
Collection of information related to the identity of a business.
func (*BusinessIdentity) Descriptor
func (*BusinessIdentity) Descriptor() ([]byte, []int)
Deprecated: Use BusinessIdentity.ProtoReflect.Descriptor instead.
func (*BusinessIdentity) GetBlackOwned
func (x *BusinessIdentity) GetBlackOwned() *BusinessIdentity_IdentityAttribute
func (*BusinessIdentity) GetLatinoOwned
func (x *BusinessIdentity) GetLatinoOwned() *BusinessIdentity_IdentityAttribute
func (*BusinessIdentity) GetName
func (x *BusinessIdentity) GetName() string
func (*BusinessIdentity) GetPromotionsConsent
func (x *BusinessIdentity) GetPromotionsConsent() BusinessIdentity_PromotionsConsent
func (*BusinessIdentity) GetSmallBusiness
func (x *BusinessIdentity) GetSmallBusiness() *BusinessIdentity_IdentityAttribute
func (*BusinessIdentity) GetVeteranOwned
func (x *BusinessIdentity) GetVeteranOwned() *BusinessIdentity_IdentityAttribute
func (*BusinessIdentity) GetWomenOwned
func (x *BusinessIdentity) GetWomenOwned() *BusinessIdentity_IdentityAttribute
func (*BusinessIdentity) ProtoMessage
func (*BusinessIdentity) ProtoMessage()
func (*BusinessIdentity) ProtoReflect
func (x *BusinessIdentity) ProtoReflect() protoreflect.Message
func (*BusinessIdentity) Reset
func (x *BusinessIdentity) Reset()
func (*BusinessIdentity) String
func (x *BusinessIdentity) String() string
BusinessIdentityServiceClient
type BusinessIdentityServiceClient interface {
// Retrieves the business identity of an account.
GetBusinessIdentity(ctx context.Context, in *GetBusinessIdentityRequest, opts ...grpc.CallOption) (*BusinessIdentity, error)
// Updates the business identity of an account. Executing this method requires
// admin access.
UpdateBusinessIdentity(ctx context.Context, in *UpdateBusinessIdentityRequest, opts ...grpc.CallOption) (*BusinessIdentity, error)
}
BusinessIdentityServiceClient is the client API for BusinessIdentityService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBusinessIdentityServiceClient
func NewBusinessIdentityServiceClient(cc grpc.ClientConnInterface) BusinessIdentityServiceClient
BusinessIdentityServiceServer
type BusinessIdentityServiceServer interface {
// Retrieves the business identity of an account.
GetBusinessIdentity(context.Context, *GetBusinessIdentityRequest) (*BusinessIdentity, error)
// Updates the business identity of an account. Executing this method requires
// admin access.
UpdateBusinessIdentity(context.Context, *UpdateBusinessIdentityRequest) (*BusinessIdentity, error)
}
BusinessIdentityServiceServer is the server API for BusinessIdentityService service.
BusinessIdentity_IdentityAttribute
type BusinessIdentity_IdentityAttribute struct {
IdentityDeclaration BusinessIdentity_IdentityAttribute_IdentityDeclaration "" /* 220 byte string literal not displayed */
}
All information related to an identity attribute.
func (*BusinessIdentity_IdentityAttribute) Descriptor
func (*BusinessIdentity_IdentityAttribute) Descriptor() ([]byte, []int)
Deprecated: Use BusinessIdentity_IdentityAttribute.ProtoReflect.Descriptor instead.
func (*BusinessIdentity_IdentityAttribute) GetIdentityDeclaration
func (x *BusinessIdentity_IdentityAttribute) GetIdentityDeclaration() BusinessIdentity_IdentityAttribute_IdentityDeclaration
func (*BusinessIdentity_IdentityAttribute) ProtoMessage
func (*BusinessIdentity_IdentityAttribute) ProtoMessage()
func (*BusinessIdentity_IdentityAttribute) ProtoReflect
func (x *BusinessIdentity_IdentityAttribute) ProtoReflect() protoreflect.Message
func (*BusinessIdentity_IdentityAttribute) Reset
func (x *BusinessIdentity_IdentityAttribute) Reset()
func (*BusinessIdentity_IdentityAttribute) String
func (x *BusinessIdentity_IdentityAttribute) String() string
BusinessIdentity_IdentityAttribute_IdentityDeclaration
type BusinessIdentity_IdentityAttribute_IdentityDeclaration int32
All possible settings regarding the declaration of an identity.
BusinessIdentity_IdentityAttribute_IDENTITY_DECLARATION_UNSPECIFIED, BusinessIdentity_IdentityAttribute_SELF_IDENTIFIES_AS, BusinessIdentity_IdentityAttribute_DOES_NOT_SELF_IDENTIFY_AS
const (
// Default value indicating that no selection was made.
BusinessIdentity_IdentityAttribute_IDENTITY_DECLARATION_UNSPECIFIED BusinessIdentity_IdentityAttribute_IdentityDeclaration = 0
// Indicates that the account identifies with the attribute.
BusinessIdentity_IdentityAttribute_SELF_IDENTIFIES_AS BusinessIdentity_IdentityAttribute_IdentityDeclaration = 1
// Indicates that the account does not identify with the attribute.
BusinessIdentity_IdentityAttribute_DOES_NOT_SELF_IDENTIFY_AS BusinessIdentity_IdentityAttribute_IdentityDeclaration = 2
)
func (BusinessIdentity_IdentityAttribute_IdentityDeclaration) Descriptor
func (BusinessIdentity_IdentityAttribute_IdentityDeclaration) Descriptor() protoreflect.EnumDescriptor
func (BusinessIdentity_IdentityAttribute_IdentityDeclaration) Enum
func (x BusinessIdentity_IdentityAttribute_IdentityDeclaration) Enum() *BusinessIdentity_IdentityAttribute_IdentityDeclaration
func (BusinessIdentity_IdentityAttribute_IdentityDeclaration) EnumDescriptor
func (BusinessIdentity_IdentityAttribute_IdentityDeclaration) EnumDescriptor() ([]byte, []int)
Deprecated: Use BusinessIdentity_IdentityAttribute_IdentityDeclaration.Descriptor instead.
func (BusinessIdentity_IdentityAttribute_IdentityDeclaration) Number
func (x BusinessIdentity_IdentityAttribute_IdentityDeclaration) Number() protoreflect.EnumNumber
func (BusinessIdentity_IdentityAttribute_IdentityDeclaration) String
func (x BusinessIdentity_IdentityAttribute_IdentityDeclaration) String() string
func (BusinessIdentity_IdentityAttribute_IdentityDeclaration) Type
BusinessIdentity_PromotionsConsent
type BusinessIdentity_PromotionsConsent int32
All possible settings regarding promotions related to the business identity.
BusinessIdentity_PROMOTIONS_CONSENT_UNSPECIFIED, BusinessIdentity_PROMOTIONS_CONSENT_GIVEN, BusinessIdentity_PROMOTIONS_CONSENT_DENIED
const (
// Default value indicating that no selection was made.
BusinessIdentity_PROMOTIONS_CONSENT_UNSPECIFIED BusinessIdentity_PromotionsConsent = 0
// Indicates that the account consented to having their business identity
// used for promotions.
BusinessIdentity_PROMOTIONS_CONSENT_GIVEN BusinessIdentity_PromotionsConsent = 1
// Indicates that the account did not consent to having their business
// identity used for promotions.
BusinessIdentity_PROMOTIONS_CONSENT_DENIED BusinessIdentity_PromotionsConsent = 2
)
func (BusinessIdentity_PromotionsConsent) Descriptor
func (BusinessIdentity_PromotionsConsent) Descriptor() protoreflect.EnumDescriptor
func (BusinessIdentity_PromotionsConsent) Enum
func (x BusinessIdentity_PromotionsConsent) Enum() *BusinessIdentity_PromotionsConsent
func (BusinessIdentity_PromotionsConsent) EnumDescriptor
func (BusinessIdentity_PromotionsConsent) EnumDescriptor() ([]byte, []int)
Deprecated: Use BusinessIdentity_PromotionsConsent.Descriptor instead.
func (BusinessIdentity_PromotionsConsent) Number
func (x BusinessIdentity_PromotionsConsent) Number() protoreflect.EnumNumber
func (BusinessIdentity_PromotionsConsent) String
func (x BusinessIdentity_PromotionsConsent) String() string
func (BusinessIdentity_PromotionsConsent) Type
func (BusinessIdentity_PromotionsConsent) Type() protoreflect.EnumType
BusinessInfo
type BusinessInfo struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Address *postaladdress.PostalAddress `protobuf:"bytes,2,opt,name=address,proto3,oneof" json:"address,omitempty"`
Phone *phone_number.PhoneNumber `protobuf:"bytes,3,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
PhoneVerificationState *PhoneVerificationState "" /* 205 byte string literal not displayed */
CustomerService *CustomerService `protobuf:"bytes,5,opt,name=customer_service,json=customerService,proto3,oneof" json:"customer_service,omitempty"`
}
Collection of information related to a business.
func (*BusinessInfo) Descriptor
func (*BusinessInfo) Descriptor() ([]byte, []int)
Deprecated: Use BusinessInfo.ProtoReflect.Descriptor instead.
func (*BusinessInfo) GetAddress
func (x *BusinessInfo) GetAddress() *postaladdress.PostalAddress
func (*BusinessInfo) GetCustomerService
func (x *BusinessInfo) GetCustomerService() *CustomerService
func (*BusinessInfo) GetName
func (x *BusinessInfo) GetName() string
func (*BusinessInfo) GetPhone
func (x *BusinessInfo) GetPhone() *phone_number.PhoneNumber
func (*BusinessInfo) GetPhoneVerificationState
func (x *BusinessInfo) GetPhoneVerificationState() PhoneVerificationState
func (*BusinessInfo) ProtoMessage
func (*BusinessInfo) ProtoMessage()
func (*BusinessInfo) ProtoReflect
func (x *BusinessInfo) ProtoReflect() protoreflect.Message
func (*BusinessInfo) Reset
func (x *BusinessInfo) Reset()
func (*BusinessInfo) String
func (x *BusinessInfo) String() string
BusinessInfoServiceClient
type BusinessInfoServiceClient interface {
// Retrieves the business info of an account.
GetBusinessInfo(ctx context.Context, in *GetBusinessInfoRequest, opts ...grpc.CallOption) (*BusinessInfo, error)
// Updates the business info of an account. Executing this method requires
// admin access.
UpdateBusinessInfo(ctx context.Context, in *UpdateBusinessInfoRequest, opts ...grpc.CallOption) (*BusinessInfo, error)
}
BusinessInfoServiceClient is the client API for BusinessInfoService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBusinessInfoServiceClient
func NewBusinessInfoServiceClient(cc grpc.ClientConnInterface) BusinessInfoServiceClient
BusinessInfoServiceServer
type BusinessInfoServiceServer interface {
// Retrieves the business info of an account.
GetBusinessInfo(context.Context, *GetBusinessInfoRequest) (*BusinessInfo, error)
// Updates the business info of an account. Executing this method requires
// admin access.
UpdateBusinessInfo(context.Context, *UpdateBusinessInfoRequest) (*BusinessInfo, error)
}
BusinessInfoServiceServer is the server API for BusinessInfoService service.
CarrierRate
type CarrierRate struct {
Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
Carrier *string `protobuf:"bytes,2,opt,name=carrier,proto3,oneof" json:"carrier,omitempty"`
CarrierService *string `protobuf:"bytes,3,opt,name=carrier_service,json=carrierService,proto3,oneof" json:"carrier_service,omitempty"`
OriginPostalCode *string `protobuf:"bytes,4,opt,name=origin_postal_code,json=originPostalCode,proto3,oneof" json:"origin_postal_code,omitempty"`
PercentageAdjustment *string "" /* 127 byte string literal not displayed */
FlatAdjustment *typepb.Price `protobuf:"bytes,6,opt,name=flat_adjustment,json=flatAdjustment,proto3,oneof" json:"flat_adjustment,omitempty"`
}
A list of carrier rates that can be referred to by
main_table
or single_value
.
func (*CarrierRate) Descriptor
func (*CarrierRate) Descriptor() ([]byte, []int)
Deprecated: Use CarrierRate.ProtoReflect.Descriptor instead.
func (*CarrierRate) GetCarrier
func (x *CarrierRate) GetCarrier() string
func (*CarrierRate) GetCarrierService
func (x *CarrierRate) GetCarrierService() string
func (*CarrierRate) GetFlatAdjustment
func (x *CarrierRate) GetFlatAdjustment() *typepb.Price
func (*CarrierRate) GetName
func (x *CarrierRate) GetName() string
func (*CarrierRate) GetOriginPostalCode
func (x *CarrierRate) GetOriginPostalCode() string
func (*CarrierRate) GetPercentageAdjustment
func (x *CarrierRate) GetPercentageAdjustment() string
func (*CarrierRate) ProtoMessage
func (*CarrierRate) ProtoMessage()
func (*CarrierRate) ProtoReflect
func (x *CarrierRate) ProtoReflect() protoreflect.Message
func (*CarrierRate) Reset
func (x *CarrierRate) Reset()
func (*CarrierRate) String
func (x *CarrierRate) String() string
ClaimHomepageRequest
type ClaimHomepageRequest struct {
// Required. The name of the homepage to claim.
// Format: `accounts/{account}/homepage`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the ClaimHomepage
method.
func (*ClaimHomepageRequest) Descriptor
func (*ClaimHomepageRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClaimHomepageRequest.ProtoReflect.Descriptor instead.
func (*ClaimHomepageRequest) GetName
func (x *ClaimHomepageRequest) GetName() string
func (*ClaimHomepageRequest) ProtoMessage
func (*ClaimHomepageRequest) ProtoMessage()
func (*ClaimHomepageRequest) ProtoReflect
func (x *ClaimHomepageRequest) ProtoReflect() protoreflect.Message
func (*ClaimHomepageRequest) Reset
func (x *ClaimHomepageRequest) Reset()
func (*ClaimHomepageRequest) String
func (x *ClaimHomepageRequest) String() string
CreateAndConfigureAccountRequest
type CreateAndConfigureAccountRequest struct {
Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
Users []*CreateUserRequest `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"`
AcceptTermsOfService *CreateAndConfigureAccountRequest_AcceptTermsOfService "" /* 131 byte string literal not displayed */
Service []*CreateAndConfigureAccountRequest_AddAccountService `protobuf:"bytes,4,rep,name=service,proto3" json:"service,omitempty"`
}
Request message for the CreateAndConfigureAccount
method.
func (*CreateAndConfigureAccountRequest) Descriptor
func (*CreateAndConfigureAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAndConfigureAccountRequest.ProtoReflect.Descriptor instead.
func (*CreateAndConfigureAccountRequest) GetAcceptTermsOfService
func (x *CreateAndConfigureAccountRequest) GetAcceptTermsOfService() *CreateAndConfigureAccountRequest_AcceptTermsOfService
func (*CreateAndConfigureAccountRequest) GetAccount
func (x *CreateAndConfigureAccountRequest) GetAccount() *Account
func (*CreateAndConfigureAccountRequest) GetService
func (x *CreateAndConfigureAccountRequest) GetService() []*CreateAndConfigureAccountRequest_AddAccountService
func (*CreateAndConfigureAccountRequest) GetUsers
func (x *CreateAndConfigureAccountRequest) GetUsers() []*CreateUserRequest
func (*CreateAndConfigureAccountRequest) ProtoMessage
func (*CreateAndConfigureAccountRequest) ProtoMessage()
func (*CreateAndConfigureAccountRequest) ProtoReflect
func (x *CreateAndConfigureAccountRequest) ProtoReflect() protoreflect.Message
func (*CreateAndConfigureAccountRequest) Reset
func (x *CreateAndConfigureAccountRequest) Reset()
func (*CreateAndConfigureAccountRequest) String
func (x *CreateAndConfigureAccountRequest) String() string
CreateAndConfigureAccountRequest_AcceptTermsOfService
type CreateAndConfigureAccountRequest_AcceptTermsOfService struct {
// Required. The resource name of the terms of service version.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Region code as defined by [CLDR](https://cldr.unicode.org/).
// This is either a country when the ToS applies specifically to that
// country or `001` when it applies globally.
RegionCode string `protobuf:"bytes,3,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
// contains filtered or unexported fields
}
Reference to a Terms of Service resource.
func (*CreateAndConfigureAccountRequest_AcceptTermsOfService) Descriptor
func (*CreateAndConfigureAccountRequest_AcceptTermsOfService) Descriptor() ([]byte, []int)
Deprecated: Use CreateAndConfigureAccountRequest_AcceptTermsOfService.ProtoReflect.Descriptor instead.
func (*CreateAndConfigureAccountRequest_AcceptTermsOfService) GetName
func (x *CreateAndConfigureAccountRequest_AcceptTermsOfService) GetName() string
func (*CreateAndConfigureAccountRequest_AcceptTermsOfService) GetRegionCode
func (x *CreateAndConfigureAccountRequest_AcceptTermsOfService) GetRegionCode() string
func (*CreateAndConfigureAccountRequest_AcceptTermsOfService) ProtoMessage
func (*CreateAndConfigureAccountRequest_AcceptTermsOfService) ProtoMessage()
func (*CreateAndConfigureAccountRequest_AcceptTermsOfService) ProtoReflect
func (x *CreateAndConfigureAccountRequest_AcceptTermsOfService) ProtoReflect() protoreflect.Message
func (*CreateAndConfigureAccountRequest_AcceptTermsOfService) Reset
func (x *CreateAndConfigureAccountRequest_AcceptTermsOfService) Reset()
func (*CreateAndConfigureAccountRequest_AcceptTermsOfService) String
func (x *CreateAndConfigureAccountRequest_AcceptTermsOfService) String() string
CreateAndConfigureAccountRequest_AddAccountService
type CreateAndConfigureAccountRequest_AddAccountService struct {
// Currently only supports
// [Multi-client](https://support.google.com/merchants/answer/188487)
// parent account type.
//
// Types that are assignable to ServiceType:
//
// *CreateAndConfigureAccountRequest_AddAccountService_AccountAggregation
ServiceType isCreateAndConfigureAccountRequest_AddAccountService_ServiceType `protobuf_oneof:"service_type"`
// Optional. The provider of the service.
// Format: `accounts/{account}`
Provider *string `protobuf:"bytes,1,opt,name=provider,proto3,oneof" json:"provider,omitempty"`
// contains filtered or unexported fields
}
Additional instructions to add account services during creation of the account.
func (*CreateAndConfigureAccountRequest_AddAccountService) Descriptor
func (*CreateAndConfigureAccountRequest_AddAccountService) Descriptor() ([]byte, []int)
Deprecated: Use CreateAndConfigureAccountRequest_AddAccountService.ProtoReflect.Descriptor instead.
func (*CreateAndConfigureAccountRequest_AddAccountService) GetAccountAggregation
func (x *CreateAndConfigureAccountRequest_AddAccountService) GetAccountAggregation() *emptypb.Empty
func (*CreateAndConfigureAccountRequest_AddAccountService) GetProvider
func (x *CreateAndConfigureAccountRequest_AddAccountService) GetProvider() string
func (*CreateAndConfigureAccountRequest_AddAccountService) GetServiceType
func (m *CreateAndConfigureAccountRequest_AddAccountService) GetServiceType() isCreateAndConfigureAccountRequest_AddAccountService_ServiceType
func (*CreateAndConfigureAccountRequest_AddAccountService) ProtoMessage
func (*CreateAndConfigureAccountRequest_AddAccountService) ProtoMessage()
func (*CreateAndConfigureAccountRequest_AddAccountService) ProtoReflect
func (x *CreateAndConfigureAccountRequest_AddAccountService) ProtoReflect() protoreflect.Message
func (*CreateAndConfigureAccountRequest_AddAccountService) Reset
func (x *CreateAndConfigureAccountRequest_AddAccountService) Reset()
func (*CreateAndConfigureAccountRequest_AddAccountService) String
func (x *CreateAndConfigureAccountRequest_AddAccountService) String() string
CreateAndConfigureAccountRequest_AddAccountService_AccountAggregation
type CreateAndConfigureAccountRequest_AddAccountService_AccountAggregation struct {
// The provider is an aggregator for the account.
AccountAggregation *emptypb.Empty `protobuf:"bytes,2,opt,name=account_aggregation,json=accountAggregation,proto3,oneof"`
}
CreateRegionRequest
type CreateRegionRequest struct {
// Required. The account to create a region for.
// Format: `accounts/{account}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The identifier for the region, unique over all regions of the
// same account.
RegionId string `protobuf:"bytes,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
// Required. The region to create.
Region *Region `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
// contains filtered or unexported fields
}
Request message for the CreateRegion
method.
func (*CreateRegionRequest) Descriptor
func (*CreateRegionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRegionRequest.ProtoReflect.Descriptor instead.
func (*CreateRegionRequest) GetParent
func (x *CreateRegionRequest) GetParent() string
func (*CreateRegionRequest) GetRegion
func (x *CreateRegionRequest) GetRegion() *Region
func (*CreateRegionRequest) GetRegionId
func (x *CreateRegionRequest) GetRegionId() string
func (*CreateRegionRequest) ProtoMessage
func (*CreateRegionRequest) ProtoMessage()
func (*CreateRegionRequest) ProtoReflect
func (x *CreateRegionRequest) ProtoReflect() protoreflect.Message
func (*CreateRegionRequest) Reset
func (x *CreateRegionRequest) Reset()
func (*CreateRegionRequest) String
func (x *CreateRegionRequest) String() string
CreateUserRequest
type CreateUserRequest struct {
// Required. The resource name of the account for which a user will be
// created. Format: `accounts/{account}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The email address of the user (for example,
// `john.doe@gmail.com`).
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// Required. The user to create.
User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
// contains filtered or unexported fields
}
Request message for the CreateUser
method.
func (*CreateUserRequest) Descriptor
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetParent
func (x *CreateUserRequest) GetParent() string
func (*CreateUserRequest) GetUser
func (x *CreateUserRequest) GetUser() *User
func (*CreateUserRequest) GetUserId
func (x *CreateUserRequest) GetUserId() string
func (*CreateUserRequest) ProtoMessage
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String
func (x *CreateUserRequest) String() string
CustomerService
type CustomerService struct {
// Optional. The URI where customer service may be found.
Uri *string `protobuf:"bytes,1,opt,name=uri,proto3,oneof" json:"uri,omitempty"`
// Optional. The email address where customer service may be reached.
Email *string `protobuf:"bytes,2,opt,name=email,proto3,oneof" json:"email,omitempty"`
// Optional. The phone number where customer service may be called.
Phone *phone_number.PhoneNumber `protobuf:"bytes,3,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
// contains filtered or unexported fields
}
Customer service information.
func (*CustomerService) Descriptor
func (*CustomerService) Descriptor() ([]byte, []int)
Deprecated: Use CustomerService.ProtoReflect.Descriptor instead.
func (*CustomerService) GetEmail
func (x *CustomerService) GetEmail() string
func (*CustomerService) GetPhone
func (x *CustomerService) GetPhone() *phone_number.PhoneNumber
func (*CustomerService) GetUri
func (x *CustomerService) GetUri() string
func (*CustomerService) ProtoMessage
func (*CustomerService) ProtoMessage()
func (*CustomerService) ProtoReflect
func (x *CustomerService) ProtoReflect() protoreflect.Message
func (*CustomerService) Reset
func (x *CustomerService) Reset()
func (*CustomerService) String
func (x *CustomerService) String() string
CutoffTime
type CutoffTime struct {
// Required. Hour of the cutoff time until which an order has to be placed to
// be processed in the same day.
Hour *int32 `protobuf:"varint,1,opt,name=hour,proto3,oneof" json:"hour,omitempty"`
// Required. Minute of the cutoff time until which an order has to be placed
// to be processed in the same day.
Minute *int32 `protobuf:"varint,2,opt,name=minute,proto3,oneof" json:"minute,omitempty"`
// Required. [Timezone
// identifier](https://developers.google.com/adwords/api/docs/appendix/codes-formats#timezone-ids)
// For example "Europe/Zurich".
TimeZone *string `protobuf:"bytes,3,opt,name=time_zone,json=timeZone,proto3,oneof" json:"time_zone,omitempty"`
// contains filtered or unexported fields
}
Business days cutoff time definition.
func (*CutoffTime) Descriptor
func (*CutoffTime) Descriptor() ([]byte, []int)
Deprecated: Use CutoffTime.ProtoReflect.Descriptor instead.
func (*CutoffTime) GetHour
func (x *CutoffTime) GetHour() int32
func (*CutoffTime) GetMinute
func (x *CutoffTime) GetMinute() int32
func (*CutoffTime) GetTimeZone
func (x *CutoffTime) GetTimeZone() string
func (*CutoffTime) ProtoMessage
func (*CutoffTime) ProtoMessage()
func (*CutoffTime) ProtoReflect
func (x *CutoffTime) ProtoReflect() protoreflect.Message
func (*CutoffTime) Reset
func (x *CutoffTime) Reset()
func (*CutoffTime) String
func (x *CutoffTime) String() string
DeleteAccountRequest
type DeleteAccountRequest struct {
// Required. The name of the account to delete.
// Format: `accounts/{account}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the DeleteAccount
method.
func (*DeleteAccountRequest) Descriptor
func (*DeleteAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAccountRequest.ProtoReflect.Descriptor instead.
func (*DeleteAccountRequest) GetName
func (x *DeleteAccountRequest) GetName() string
func (*DeleteAccountRequest) ProtoMessage
func (*DeleteAccountRequest) ProtoMessage()
func (*DeleteAccountRequest) ProtoReflect
func (x *DeleteAccountRequest) ProtoReflect() protoreflect.Message
func (*DeleteAccountRequest) Reset
func (x *DeleteAccountRequest) Reset()
func (*DeleteAccountRequest) String
func (x *DeleteAccountRequest) String() string
DeleteRegionRequest
type DeleteRegionRequest struct {
// Required. The name of the region to delete.
// Format: `accounts/{account}/regions/{region}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the DeleteRegion
method.
func (*DeleteRegionRequest) Descriptor
func (*DeleteRegionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRegionRequest.ProtoReflect.Descriptor instead.
func (*DeleteRegionRequest) GetName
func (x *DeleteRegionRequest) GetName() string
func (*DeleteRegionRequest) ProtoMessage
func (*DeleteRegionRequest) ProtoMessage()
func (*DeleteRegionRequest) ProtoReflect
func (x *DeleteRegionRequest) ProtoReflect() protoreflect.Message
func (*DeleteRegionRequest) Reset
func (x *DeleteRegionRequest) Reset()
func (*DeleteRegionRequest) String
func (x *DeleteRegionRequest) String() string
DeleteUserRequest
type DeleteUserRequest struct {
// Required. The name of the user to delete.
// Format: `accounts/{account}/users/{email}`
//
// It is also possible to delete the user corresponding to the caller by using
// `me` rather than an email address as in `accounts/{account}/users/me`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the DeleteUser
method.
func (*DeleteUserRequest) Descriptor
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetName
func (x *DeleteUserRequest) GetName() string
func (*DeleteUserRequest) ProtoMessage
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String
func (x *DeleteUserRequest) String() string
DeliveryTime
type DeliveryTime struct {
MinTransitDays *int32 `protobuf:"varint,1,opt,name=min_transit_days,json=minTransitDays,proto3,oneof" json:"min_transit_days,omitempty"`
MaxTransitDays *int32 `protobuf:"varint,2,opt,name=max_transit_days,json=maxTransitDays,proto3,oneof" json:"max_transit_days,omitempty"`
CutoffTime *CutoffTime `protobuf:"bytes,3,opt,name=cutoff_time,json=cutoffTime,proto3,oneof" json:"cutoff_time,omitempty"`
MinHandlingDays *int32 `protobuf:"varint,4,opt,name=min_handling_days,json=minHandlingDays,proto3,oneof" json:"min_handling_days,omitempty"`
MaxHandlingDays *int32 `protobuf:"varint,5,opt,name=max_handling_days,json=maxHandlingDays,proto3,oneof" json:"max_handling_days,omitempty"`
TransitTimeTable *TransitTable `protobuf:"bytes,6,opt,name=transit_time_table,json=transitTimeTable,proto3,oneof" json:"transit_time_table,omitempty"`
HandlingBusinessDayConfig *BusinessDayConfig "" /* 146 byte string literal not displayed */
TransitBusinessDayConfig *BusinessDayConfig "" /* 143 byte string literal not displayed */
WarehouseBasedDeliveryTimes []*WarehouseBasedDeliveryTime "" /* 146 byte string literal not displayed */
}
Time spent in various aspects from order to the delivery of the product.
func (*DeliveryTime) Descriptor
func (*DeliveryTime) Descriptor() ([]byte, []int)
Deprecated: Use DeliveryTime.ProtoReflect.Descriptor instead.
func (*DeliveryTime) GetCutoffTime
func (x *DeliveryTime) GetCutoffTime() *CutoffTime
func (*DeliveryTime) GetHandlingBusinessDayConfig
func (x *DeliveryTime) GetHandlingBusinessDayConfig() *BusinessDayConfig
func (*DeliveryTime) GetMaxHandlingDays
func (x *DeliveryTime) GetMaxHandlingDays() int32
func (*DeliveryTime) GetMaxTransitDays
func (x *DeliveryTime) GetMaxTransitDays() int32
func (*DeliveryTime) GetMinHandlingDays
func (x *DeliveryTime) GetMinHandlingDays() int32
func (*DeliveryTime) GetMinTransitDays
func (x *DeliveryTime) GetMinTransitDays() int32
func (*DeliveryTime) GetTransitBusinessDayConfig
func (x *DeliveryTime) GetTransitBusinessDayConfig() *BusinessDayConfig
func (*DeliveryTime) GetTransitTimeTable
func (x *DeliveryTime) GetTransitTimeTable() *TransitTable
func (*DeliveryTime) GetWarehouseBasedDeliveryTimes
func (x *DeliveryTime) GetWarehouseBasedDeliveryTimes() []*WarehouseBasedDeliveryTime
func (*DeliveryTime) ProtoMessage
func (*DeliveryTime) ProtoMessage()
func (*DeliveryTime) ProtoReflect
func (x *DeliveryTime) ProtoReflect() protoreflect.Message
func (*DeliveryTime) Reset
func (x *DeliveryTime) Reset()
func (*DeliveryTime) String
func (x *DeliveryTime) String() string
DisableProgramRequest
type DisableProgramRequest struct {
// Required. The name of the program for which to disable participation for
// the given account. Format: `accounts/{account}/programs/{program}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the DisableProgram method.
func (*DisableProgramRequest) Descriptor
func (*DisableProgramRequest) Descriptor() ([]byte, []int)
Deprecated: Use DisableProgramRequest.ProtoReflect.Descriptor instead.
func (*DisableProgramRequest) GetName
func (x *DisableProgramRequest) GetName() string
func (*DisableProgramRequest) ProtoMessage
func (*DisableProgramRequest) ProtoMessage()
func (*DisableProgramRequest) ProtoReflect
func (x *DisableProgramRequest) ProtoReflect() protoreflect.Message
func (*DisableProgramRequest) Reset
func (x *DisableProgramRequest) Reset()
func (*DisableProgramRequest) String
func (x *DisableProgramRequest) String() string
Distance
type Distance struct {
Value *int64 `protobuf:"varint,1,opt,name=value,proto3,oneof" json:"value,omitempty"`
Unit *Distance_Unit "" /* 128 byte string literal not displayed */
}
Maximum delivery radius. This is only required for the local delivery shipment type.
func (*Distance) Descriptor
Deprecated: Use Distance.ProtoReflect.Descriptor instead.
func (*Distance) GetUnit
func (x *Distance) GetUnit() Distance_Unit
func (*Distance) GetValue
func (*Distance) ProtoMessage
func (*Distance) ProtoMessage()
func (*Distance) ProtoReflect
func (x *Distance) ProtoReflect() protoreflect.Message
func (*Distance) Reset
func (x *Distance) Reset()
func (*Distance) String
Distance_Unit
type Distance_Unit int32
Unit can differ based on country, it is parameterized to include miles and kilometers.
Distance_UNIT_UNSPECIFIED, Distance_MILES, Distance_KILOMETERS
const (
// Unit unspecified
Distance_UNIT_UNSPECIFIED Distance_Unit = 0
// Unit in miles
Distance_MILES Distance_Unit = 1
// Unit in kilometers
Distance_KILOMETERS Distance_Unit = 2
)
func (Distance_Unit) Descriptor
func (Distance_Unit) Descriptor() protoreflect.EnumDescriptor
func (Distance_Unit) Enum
func (x Distance_Unit) Enum() *Distance_Unit
func (Distance_Unit) EnumDescriptor
func (Distance_Unit) EnumDescriptor() ([]byte, []int)
Deprecated: Use Distance_Unit.Descriptor instead.
func (Distance_Unit) Number
func (x Distance_Unit) Number() protoreflect.EnumNumber
func (Distance_Unit) String
func (x Distance_Unit) String() string
func (Distance_Unit) Type
func (Distance_Unit) Type() protoreflect.EnumType
EmailPreferences
type EmailPreferences struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
NewsAndTips EmailPreferences_OptInState "" /* 171 byte string literal not displayed */
}
The categories of notifications the user opted into / opted out of. The email preferences do not include mandatory announcements as users can't opt out of them.
func (*EmailPreferences) Descriptor
func (*EmailPreferences) Descriptor() ([]byte, []int)
Deprecated: Use EmailPreferences.ProtoReflect.Descriptor instead.
func (*EmailPreferences) GetName
func (x *EmailPreferences) GetName() string
func (*EmailPreferences) GetNewsAndTips
func (x *EmailPreferences) GetNewsAndTips() EmailPreferences_OptInState
func (*EmailPreferences) ProtoMessage
func (*EmailPreferences) ProtoMessage()
func (*EmailPreferences) ProtoReflect
func (x *EmailPreferences) ProtoReflect() protoreflect.Message
func (*EmailPreferences) Reset
func (x *EmailPreferences) Reset()
func (*EmailPreferences) String
func (x *EmailPreferences) String() string
EmailPreferencesServiceClient
type EmailPreferencesServiceClient interface {
// Returns the email preferences for a Merchant Center account user.
//
// Use the name=accounts/*/users/me/emailPreferences alias to get preferences
// for the authenticated user.
GetEmailPreferences(ctx context.Context, in *GetEmailPreferencesRequest, opts ...grpc.CallOption) (*EmailPreferences, error)
// Updates the email preferences for a Merchant Center account user. MCA users
// should specify the MCA account rather than a sub-account of the MCA.
//
// Preferences which are not explicitly selected in the update mask will not
// be updated.
//
// It is invalid for updates to specify an UNCONFIRMED opt-in status value.
//
// Use the name=accounts/*/users/me/emailPreferences alias to update
// preferences
// for the authenticated user.
UpdateEmailPreferences(ctx context.Context, in *UpdateEmailPreferencesRequest, opts ...grpc.CallOption) (*EmailPreferences, error)
}
EmailPreferencesServiceClient is the client API for EmailPreferencesService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEmailPreferencesServiceClient
func NewEmailPreferencesServiceClient(cc grpc.ClientConnInterface) EmailPreferencesServiceClient
EmailPreferencesServiceServer
type EmailPreferencesServiceServer interface {
// Returns the email preferences for a Merchant Center account user.
//
// Use the name=accounts/*/users/me/emailPreferences alias to get preferences
// for the authenticated user.
GetEmailPreferences(context.Context, *GetEmailPreferencesRequest) (*EmailPreferences, error)
// Updates the email preferences for a Merchant Center account user. MCA users
// should specify the MCA account rather than a sub-account of the MCA.
//
// Preferences which are not explicitly selected in the update mask will not
// be updated.
//
// It is invalid for updates to specify an UNCONFIRMED opt-in status value.
//
// Use the name=accounts/*/users/me/emailPreferences alias to update
// preferences
// for the authenticated user.
UpdateEmailPreferences(context.Context, *UpdateEmailPreferencesRequest) (*EmailPreferences, error)
}
EmailPreferencesServiceServer is the server API for EmailPreferencesService service.
EmailPreferences_OptInState
type EmailPreferences_OptInState int32
Opt in state of the email preference.
EmailPreferences_OPT_IN_STATE_UNSPECIFIED, EmailPreferences_OPTED_OUT, EmailPreferences_OPTED_IN, EmailPreferences_UNCONFIRMED
const (
// Opt-in status is not specified.
EmailPreferences_OPT_IN_STATE_UNSPECIFIED EmailPreferences_OptInState = 0
// User has opted out of receiving this type of email.
EmailPreferences_OPTED_OUT EmailPreferences_OptInState = 1
// User has opted in to receiving this type of email.
EmailPreferences_OPTED_IN EmailPreferences_OptInState = 2
// User has opted in to receiving this type of email and the confirmation
// email has been sent, but user has not yet confirmed the opt in (applies
// only to certain countries).
EmailPreferences_UNCONFIRMED EmailPreferences_OptInState = 3
)
func (EmailPreferences_OptInState) Descriptor
func (EmailPreferences_OptInState) Descriptor() protoreflect.EnumDescriptor
func (EmailPreferences_OptInState) Enum
func (x EmailPreferences_OptInState) Enum() *EmailPreferences_OptInState
func (EmailPreferences_OptInState) EnumDescriptor
func (EmailPreferences_OptInState) EnumDescriptor() ([]byte, []int)
Deprecated: Use EmailPreferences_OptInState.Descriptor instead.
func (EmailPreferences_OptInState) Number
func (x EmailPreferences_OptInState) Number() protoreflect.EnumNumber
func (EmailPreferences_OptInState) String
func (x EmailPreferences_OptInState) String() string
func (EmailPreferences_OptInState) Type
func (EmailPreferences_OptInState) Type() protoreflect.EnumType
EnableProgramRequest
type EnableProgramRequest struct {
// Required. The name of the program for which to enable participation for the
// given account. Format: `accounts/{account}/programs/{program}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the EnableProgram method.
func (*EnableProgramRequest) Descriptor
func (*EnableProgramRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnableProgramRequest.ProtoReflect.Descriptor instead.
func (*EnableProgramRequest) GetName
func (x *EnableProgramRequest) GetName() string
func (*EnableProgramRequest) ProtoMessage
func (*EnableProgramRequest) ProtoMessage()
func (*EnableProgramRequest) ProtoReflect
func (x *EnableProgramRequest) ProtoReflect() protoreflect.Message
func (*EnableProgramRequest) Reset
func (x *EnableProgramRequest) Reset()
func (*EnableProgramRequest) String
func (x *EnableProgramRequest) String() string
GetAccountRequest
type GetAccountRequest struct {
// Required. The name of the account to retrieve.
// Format: `accounts/{account}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the GetAccount
method.
func (*GetAccountRequest) Descriptor
func (*GetAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.
func (*GetAccountRequest) GetName
func (x *GetAccountRequest) GetName() string
func (*GetAccountRequest) ProtoMessage
func (*GetAccountRequest) ProtoMessage()
func (*GetAccountRequest) ProtoReflect
func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
func (*GetAccountRequest) Reset
func (x *GetAccountRequest) Reset()
func (*GetAccountRequest) String
func (x *GetAccountRequest) String() string
GetAccountTaxRequest
type GetAccountTaxRequest struct {
// Required. The name from which tax settings will be retrieved
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request to get tax settings
func (*GetAccountTaxRequest) Descriptor
func (*GetAccountTaxRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountTaxRequest.ProtoReflect.Descriptor instead.
func (*GetAccountTaxRequest) GetName
func (x *GetAccountTaxRequest) GetName() string
func (*GetAccountTaxRequest) ProtoMessage
func (*GetAccountTaxRequest) ProtoMessage()
func (*GetAccountTaxRequest) ProtoReflect
func (x *GetAccountTaxRequest) ProtoReflect() protoreflect.Message
func (*GetAccountTaxRequest) Reset
func (x *GetAccountTaxRequest) Reset()
func (*GetAccountTaxRequest) String
func (x *GetAccountTaxRequest) String() string
GetBusinessIdentityRequest
type GetBusinessIdentityRequest struct {
// Required. The resource name of the business identity.
// Format: `accounts/{account}/businessIdentity`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the GetBusinessIdentity
method.
func (*GetBusinessIdentityRequest) Descriptor
func (*GetBusinessIdentityRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBusinessIdentityRequest.ProtoReflect.Descriptor instead.
func (*GetBusinessIdentityRequest) GetName
func (x *GetBusinessIdentityRequest) GetName() string
func (*GetBusinessIdentityRequest) ProtoMessage
func (*GetBusinessIdentityRequest) ProtoMessage()
func (*GetBusinessIdentityRequest) ProtoReflect
func (x *GetBusinessIdentityRequest) ProtoReflect() protoreflect.Message
func (*GetBusinessIdentityRequest) Reset
func (x *GetBusinessIdentityRequest) Reset()
func (*GetBusinessIdentityRequest) String
func (x *GetBusinessIdentityRequest) String() string
GetBusinessInfoRequest
type GetBusinessInfoRequest struct {
// Required. The resource name of the business info.
// Format: `accounts/{account}/businessInfo`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the GetBusinessInfo
method.
func (*GetBusinessInfoRequest) Descriptor
func (*GetBusinessInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBusinessInfoRequest.ProtoReflect.Descriptor instead.
func (*GetBusinessInfoRequest) GetName
func (x *GetBusinessInfoRequest) GetName() string
func (*GetBusinessInfoRequest) ProtoMessage
func (*GetBusinessInfoRequest) ProtoMessage()
func (*GetBusinessInfoRequest) ProtoReflect
func (x *GetBusinessInfoRequest) ProtoReflect() protoreflect.Message
func (*GetBusinessInfoRequest) Reset
func (x *GetBusinessInfoRequest) Reset()
func (*GetBusinessInfoRequest) String
func (x *GetBusinessInfoRequest) String() string
GetEmailPreferencesRequest
type GetEmailPreferencesRequest struct {
// Required. The name of the `EmailPreferences` resource.
// Format: `accounts/{account}/users/{email}/emailPreferences`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for GetEmailPreferences method.
func (*GetEmailPreferencesRequest) Descriptor
func (*GetEmailPreferencesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetEmailPreferencesRequest.ProtoReflect.Descriptor instead.
func (*GetEmailPreferencesRequest) GetName
func (x *GetEmailPreferencesRequest) GetName() string
func (*GetEmailPreferencesRequest) ProtoMessage
func (*GetEmailPreferencesRequest) ProtoMessage()
func (*GetEmailPreferencesRequest) ProtoReflect
func (x *GetEmailPreferencesRequest) ProtoReflect() protoreflect.Message
func (*GetEmailPreferencesRequest) Reset
func (x *GetEmailPreferencesRequest) Reset()
func (*GetEmailPreferencesRequest) String
func (x *GetEmailPreferencesRequest) String() string
GetHomepageRequest
type GetHomepageRequest struct {
// Required. The name of the homepage to retrieve.
// Format: `accounts/{account}/homepage`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the GetHomepage
method.
func (*GetHomepageRequest) Descriptor
func (*GetHomepageRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetHomepageRequest.ProtoReflect.Descriptor instead.
func (*GetHomepageRequest) GetName
func (x *GetHomepageRequest) GetName() string
func (*GetHomepageRequest) ProtoMessage
func (*GetHomepageRequest) ProtoMessage()
func (*GetHomepageRequest) ProtoReflect
func (x *GetHomepageRequest) ProtoReflect() protoreflect.Message
func (*GetHomepageRequest) Reset
func (x *GetHomepageRequest) Reset()
func (*GetHomepageRequest) String
func (x *GetHomepageRequest) String() string
GetOnlineReturnPolicyRequest
type GetOnlineReturnPolicyRequest struct {
// Required. The name of the return policy to retrieve.
// Format: `accounts/{account}/onlineReturnPolicies/{return_policy}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the GetOnlineReturnPolicy
method.
func (*GetOnlineReturnPolicyRequest) Descriptor
func (*GetOnlineReturnPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOnlineReturnPolicyRequest.ProtoReflect.Descriptor instead.
func (*GetOnlineReturnPolicyRequest) GetName
func (x *GetOnlineReturnPolicyRequest) GetName() string
func (*GetOnlineReturnPolicyRequest) ProtoMessage
func (*GetOnlineReturnPolicyRequest) ProtoMessage()
func (*GetOnlineReturnPolicyRequest) ProtoReflect
func (x *GetOnlineReturnPolicyRequest) ProtoReflect() protoreflect.Message
func (*GetOnlineReturnPolicyRequest) Reset
func (x *GetOnlineReturnPolicyRequest) Reset()
func (*GetOnlineReturnPolicyRequest) String
func (x *GetOnlineReturnPolicyRequest) String() string
GetProgramRequest
type GetProgramRequest struct {
// Required. The name of the program to retrieve.
// Format: `accounts/{account}/programs/{program}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the GetProgram method.
func (*GetProgramRequest) Descriptor
func (*GetProgramRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProgramRequest.ProtoReflect.Descriptor instead.
func (*GetProgramRequest) GetName
func (x *GetProgramRequest) GetName() string
func (*GetProgramRequest) ProtoMessage
func (*GetProgramRequest) ProtoMessage()
func (*GetProgramRequest) ProtoReflect
func (x *GetProgramRequest) ProtoReflect() protoreflect.Message
func (*GetProgramRequest) Reset
func (x *GetProgramRequest) Reset()
func (*GetProgramRequest) String
func (x *GetProgramRequest) String() string
GetRegionRequest
type GetRegionRequest struct {
// Required. The name of the region to retrieve.
// Format: `accounts/{account}/regions/{region}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the GetRegion
method.
func (*GetRegionRequest) Descriptor
func (*GetRegionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRegionRequest.ProtoReflect.Descriptor instead.
func (*GetRegionRequest) GetName
func (x *GetRegionRequest) GetName() string
func (*GetRegionRequest) ProtoMessage
func (*GetRegionRequest) ProtoMessage()
func (*GetRegionRequest) ProtoReflect
func (x *GetRegionRequest) ProtoReflect() protoreflect.Message
func (*GetRegionRequest) Reset
func (x *GetRegionRequest) Reset()
func (*GetRegionRequest) String
func (x *GetRegionRequest) String() string
GetShippingSettingsRequest
type GetShippingSettingsRequest struct {
// Required. The name of the shipping setting to retrieve.
// Format: `accounts/{account}/shippingsetting`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the GetShippingSetting
method.
func (*GetShippingSettingsRequest) Descriptor
func (*GetShippingSettingsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetShippingSettingsRequest.ProtoReflect.Descriptor instead.
func (*GetShippingSettingsRequest) GetName
func (x *GetShippingSettingsRequest) GetName() string
func (*GetShippingSettingsRequest) ProtoMessage
func (*GetShippingSettingsRequest) ProtoMessage()
func (*GetShippingSettingsRequest) ProtoReflect
func (x *GetShippingSettingsRequest) ProtoReflect() protoreflect.Message
func (*GetShippingSettingsRequest) Reset
func (x *GetShippingSettingsRequest) Reset()
func (*GetShippingSettingsRequest) String
func (x *GetShippingSettingsRequest) String() string
GetTermsOfServiceAgreementStateRequest
type GetTermsOfServiceAgreementStateRequest struct {
// Required. The resource name of the terms of service version.
// Format: `accounts/{account}/termsOfServiceAgreementState/{identifier}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the GetTermsOfServiceAgreementState
method.
func (*GetTermsOfServiceAgreementStateRequest) Descriptor
func (*GetTermsOfServiceAgreementStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTermsOfServiceAgreementStateRequest.ProtoReflect.Descriptor instead.
func (*GetTermsOfServiceAgreementStateRequest) GetName
func (x *GetTermsOfServiceAgreementStateRequest) GetName() string
func (*GetTermsOfServiceAgreementStateRequest) ProtoMessage
func (*GetTermsOfServiceAgreementStateRequest) ProtoMessage()
func (*GetTermsOfServiceAgreementStateRequest) ProtoReflect
func (x *GetTermsOfServiceAgreementStateRequest) ProtoReflect() protoreflect.Message
func (*GetTermsOfServiceAgreementStateRequest) Reset
func (x *GetTermsOfServiceAgreementStateRequest) Reset()
func (*GetTermsOfServiceAgreementStateRequest) String
func (x *GetTermsOfServiceAgreementStateRequest) String() string
GetTermsOfServiceRequest
type GetTermsOfServiceRequest struct {
// Required. The resource name of the terms of service version.
// Format: `termsOfService/{version}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the GetTermsOfService
method.
func (*GetTermsOfServiceRequest) Descriptor
func (*GetTermsOfServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTermsOfServiceRequest.ProtoReflect.Descriptor instead.
func (*GetTermsOfServiceRequest) GetName
func (x *GetTermsOfServiceRequest) GetName() string
func (*GetTermsOfServiceRequest) ProtoMessage
func (*GetTermsOfServiceRequest) ProtoMessage()
func (*GetTermsOfServiceRequest) ProtoReflect
func (x *GetTermsOfServiceRequest) ProtoReflect() protoreflect.Message
func (*GetTermsOfServiceRequest) Reset
func (x *GetTermsOfServiceRequest) Reset()
func (*GetTermsOfServiceRequest) String
func (x *GetTermsOfServiceRequest) String() string
GetUserRequest
type GetUserRequest struct {
// Required. The name of the user to retrieve.
// Format: `accounts/{account}/users/{email}`
//
// It is also possible to retrieve the user corresponding to the caller by
// using `me` rather than an email address as in
// `accounts/{account}/users/me`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the GetUser
method.
func (*GetUserRequest) Descriptor
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetName
func (x *GetUserRequest) GetName() string
func (*GetUserRequest) ProtoMessage
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String
func (x *GetUserRequest) String() string
Headers
type Headers struct {
// Required. A list of inclusive order price upper bounds. The last price's
// value can be infinity by setting price amount_micros = -1. For example
// `[{"amount_micros": 10000000, "currency_code": "USD"},
// {"amount_micros": 500000000, "currency_code": "USD"},
// {"amount_micros": -1, "currency_code": "USD"}]` represents the headers
// "<= $10",=""><= $500",="" and="" "=""> $500". All prices within a service must have
// the same currency. Must be non-empty. Must be positive except -1. Can only
// be set if all other fields are not set.
Prices []*typepb.Price `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices,omitempty"`
// Required. A list of inclusive order weight upper bounds. The last weight's
// value can be infinity by setting price amount_micros = -1. For example
// `[{"amount_micros": 10000000, "unit": "kg"}, {"amount_micros": 50000000,
// "unit": "kg"},
// {"amount_micros": -1, "unit": "kg"}]` represents the headers
// "<= 10kg",=""><= 50kg",="" and="" "=""> 50kg". All weights within a service must have
// the same unit. Must be non-empty. Must be positive except -1. Can only be
// set if all other fields are not set.
Weights []*typepb.Weight `protobuf:"bytes,2,rep,name=weights,proto3" json:"weights,omitempty"`
// Required. A list of inclusive number of items upper bounds. The last value
// can be
// `"infinity"`. For example
// `["10", "50", "infinity"]` represents the headers
// "<= 10="" items",=""><= 50="" items",="" and="" "=""> 50 items". Must be non-empty. Can
// only be set if all other fields are not set.
NumberOfItems []string `protobuf:"bytes,3,rep,name=number_of_items,json=numberOfItems,proto3" json:"number_of_items,omitempty"`
// Required. A list of postal group names. The last value can be
// `"all other locations"`. Example:
// `["zone 1", "zone 2", "all other locations"]`. The referred
// postal code groups must match the delivery country of the service. Must
// be non-empty. Can only be set if all other fields are not set.
PostalCodeGroupNames []string `protobuf:"bytes,4,rep,name=postal_code_group_names,json=postalCodeGroupNames,proto3" json:"postal_code_group_names,omitempty"`
// Required. A list of location ID sets. Must be non-empty. Can only be set if
// all other fields are not set.
Locations []*LocationIdSet `protobuf:"bytes,5,rep,name=locations,proto3" json:"locations,omitempty"`
// contains filtered or unexported fields
}
A non-empty list of row or column headers for a table.
Exactly one of prices
, weights
,
num_items
, postal_code_group_names
, or
location
must be set.
func (*Headers) Descriptor
Deprecated: Use Headers.ProtoReflect.Descriptor instead.
func (*Headers) GetLocations
func (x *Headers) GetLocations() []*LocationIdSet
func (*Headers) GetNumberOfItems
func (*Headers) GetPostalCodeGroupNames
func (*Headers) GetPrices
func (*Headers) GetWeights
func (*Headers) ProtoMessage
func (*Headers) ProtoMessage()
func (*Headers) ProtoReflect
func (x *Headers) ProtoReflect() protoreflect.Message
func (*Headers) Reset
func (x *Headers) Reset()
func (*Headers) String
Homepage
type Homepage struct {
// Identifier. The resource name of the store's homepage.
// Format: `accounts/{account}/homepage`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The URI (typically a URL) of the store's homepage.
Uri *string `protobuf:"bytes,2,opt,name=uri,proto3,oneof" json:"uri,omitempty"`
// Output only. Whether the homepage is claimed. See
// https://support.google.com/merchants/answer/176793.
Claimed bool `protobuf:"varint,3,opt,name=claimed,proto3" json:"claimed,omitempty"`
// contains filtered or unexported fields
}
A store's homepage.
func (*Homepage) Descriptor
Deprecated: Use Homepage.ProtoReflect.Descriptor instead.
func (*Homepage) GetClaimed
func (*Homepage) GetName
func (*Homepage) GetUri
func (*Homepage) ProtoMessage
func (*Homepage) ProtoMessage()
func (*Homepage) ProtoReflect
func (x *Homepage) ProtoReflect() protoreflect.Message
func (*Homepage) Reset
func (x *Homepage) Reset()
func (*Homepage) String
HomepageServiceClient
type HomepageServiceClient interface {
// Retrieves a store's homepage.
GetHomepage(ctx context.Context, in *GetHomepageRequest, opts ...grpc.CallOption) (*Homepage, error)
// Updates a store's homepage. Executing this method requires admin access.
UpdateHomepage(ctx context.Context, in *UpdateHomepageRequest, opts ...grpc.CallOption) (*Homepage, error)
// Claims a store's homepage. Executing this method requires admin access.
//
// If the homepage is already claimed, this will recheck the
// verification (unless the merchant is exempted from claiming, which also
// exempts from verification) and return a successful response. If ownership
// can no longer be verified, it will return an error, but it won't clear the
// claim. In case of failure, a canonical error message will be returned:
// - PERMISSION_DENIED: user doesn't have the necessary permissions on this
// MC account;
// - FAILED_PRECONDITION:
// - The account is not a Merchant Center account;
// - MC account doesn't have a homepage;
// - claiming failed (in this case the error message will contain more
// details).
ClaimHomepage(ctx context.Context, in *ClaimHomepageRequest, opts ...grpc.CallOption) (*Homepage, error)
// Unclaims a store's homepage. Executing this method requires admin access.
UnclaimHomepage(ctx context.Context, in *UnclaimHomepageRequest, opts ...grpc.CallOption) (*Homepage, error)
}
HomepageServiceClient is the client API for HomepageService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHomepageServiceClient
func NewHomepageServiceClient(cc grpc.ClientConnInterface) HomepageServiceClient
HomepageServiceServer
type HomepageServiceServer interface {
// Retrieves a store's homepage.
GetHomepage(context.Context, *GetHomepageRequest) (*Homepage, error)
// Updates a store's homepage. Executing this method requires admin access.
UpdateHomepage(context.Context, *UpdateHomepageRequest) (*Homepage, error)
// Claims a store's homepage. Executing this method requires admin access.
//
// If the homepage is already claimed, this will recheck the
// verification (unless the merchant is exempted from claiming, which also
// exempts from verification) and return a successful response. If ownership
// can no longer be verified, it will return an error, but it won't clear the
// claim. In case of failure, a canonical error message will be returned:
// - PERMISSION_DENIED: user doesn't have the necessary permissions on this
// MC account;
// - FAILED_PRECONDITION:
// - The account is not a Merchant Center account;
// - MC account doesn't have a homepage;
// - claiming failed (in this case the error message will contain more
// details).
ClaimHomepage(context.Context, *ClaimHomepageRequest) (*Homepage, error)
// Unclaims a store's homepage. Executing this method requires admin access.
UnclaimHomepage(context.Context, *UnclaimHomepageRequest) (*Homepage, error)
}
HomepageServiceServer is the server API for HomepageService service.
InsertShippingSettingsRequest
type InsertShippingSettingsRequest struct {
// Required. The account where this product will be inserted.
// Format: accounts/{account}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The new version of the account.
ShippingSetting *ShippingSettings `protobuf:"bytes,2,opt,name=shipping_setting,json=shippingSetting,proto3" json:"shipping_setting,omitempty"`
// contains filtered or unexported fields
}
Request message for the InsertShippingSetting
method.
func (*InsertShippingSettingsRequest) Descriptor
func (*InsertShippingSettingsRequest) Descriptor() ([]byte, []int)
Deprecated: Use InsertShippingSettingsRequest.ProtoReflect.Descriptor instead.
func (*InsertShippingSettingsRequest) GetParent
func (x *InsertShippingSettingsRequest) GetParent() string
func (*InsertShippingSettingsRequest) GetShippingSetting
func (x *InsertShippingSettingsRequest) GetShippingSetting() *ShippingSettings
func (*InsertShippingSettingsRequest) ProtoMessage
func (*InsertShippingSettingsRequest) ProtoMessage()
func (*InsertShippingSettingsRequest) ProtoReflect
func (x *InsertShippingSettingsRequest) ProtoReflect() protoreflect.Message
func (*InsertShippingSettingsRequest) Reset
func (x *InsertShippingSettingsRequest) Reset()
func (*InsertShippingSettingsRequest) String
func (x *InsertShippingSettingsRequest) String() string
ListAccountIssuesRequest
type ListAccountIssuesRequest struct {
// Required. The parent, which owns this collection of issues.
// Format: `accounts/{account}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of issues to return. The service may return
// fewer than this value. If unspecified, at most 50 users will be returned.
// The maximum value is 100; values above 100 will be coerced to 100
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListAccountIssues` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListAccountIssues` must
// match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. The issues in the response will have human-readable fields in the
// given language. The format is [BCP-47](https://tools.ietf.org/html/bcp47),
// such as `en-US` or `sr-Latn`. If not value is provided, `en-US` will be
// used.
LanguageCode string `protobuf:"bytes,4,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Optional. The [IANA](https://www.iana.org/time-zones) timezone used to
// localize times in human-readable fields. For example 'America/Los_Angeles'.
// If not set, 'America/Los_Angeles' will be used.
TimeZone *datetime.TimeZone `protobuf:"bytes,5,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
// contains filtered or unexported fields
}
Request message for the ListAccountIssues
method.
func (*ListAccountIssuesRequest) Descriptor
func (*ListAccountIssuesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountIssuesRequest.ProtoReflect.Descriptor instead.
func (*ListAccountIssuesRequest) GetLanguageCode
func (x *ListAccountIssuesRequest) GetLanguageCode() string
func (*ListAccountIssuesRequest) GetPageSize
func (x *ListAccountIssuesRequest) GetPageSize() int32
func (*ListAccountIssuesRequest) GetPageToken
func (x *ListAccountIssuesRequest) GetPageToken() string
func (*ListAccountIssuesRequest) GetParent
func (x *ListAccountIssuesRequest) GetParent() string
func (*ListAccountIssuesRequest) GetTimeZone
func (x *ListAccountIssuesRequest) GetTimeZone() *datetime.TimeZone
func (*ListAccountIssuesRequest) ProtoMessage
func (*ListAccountIssuesRequest) ProtoMessage()
func (*ListAccountIssuesRequest) ProtoReflect
func (x *ListAccountIssuesRequest) ProtoReflect() protoreflect.Message
func (*ListAccountIssuesRequest) Reset
func (x *ListAccountIssuesRequest) Reset()
func (*ListAccountIssuesRequest) String
func (x *ListAccountIssuesRequest) String() string
ListAccountIssuesResponse
type ListAccountIssuesResponse struct {
// The issues from the specified account.
AccountIssues []*AccountIssue `protobuf:"bytes,1,rep,name=account_issues,json=accountIssues,proto3" json:"account_issues,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response message for the ListAccountIssues
method.
func (*ListAccountIssuesResponse) Descriptor
func (*ListAccountIssuesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountIssuesResponse.ProtoReflect.Descriptor instead.
func (*ListAccountIssuesResponse) GetAccountIssues
func (x *ListAccountIssuesResponse) GetAccountIssues() []*AccountIssue
func (*ListAccountIssuesResponse) GetNextPageToken
func (x *ListAccountIssuesResponse) GetNextPageToken() string
func (*ListAccountIssuesResponse) ProtoMessage
func (*ListAccountIssuesResponse) ProtoMessage()
func (*ListAccountIssuesResponse) ProtoReflect
func (x *ListAccountIssuesResponse) ProtoReflect() protoreflect.Message
func (*ListAccountIssuesResponse) Reset
func (x *ListAccountIssuesResponse) Reset()
func (*ListAccountIssuesResponse) String
func (x *ListAccountIssuesResponse) String() string
ListAccountTaxRequest
type ListAccountTaxRequest struct {
// Required. The parent, which owns this collection of account tax.
// Format: accounts/{account}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of tax settings to return in the response, used for
// paging.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The token returned by the previous request.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
Request to list all sub-account tax settings only for the requesting merchant This method can only be called on a multi-client account, otherwise it'll return an error.
func (*ListAccountTaxRequest) Descriptor
func (*ListAccountTaxRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountTaxRequest.ProtoReflect.Descriptor instead.
func (*ListAccountTaxRequest) GetPageSize
func (x *ListAccountTaxRequest) GetPageSize() int32
func (*ListAccountTaxRequest) GetPageToken
func (x *ListAccountTaxRequest) GetPageToken() string
func (*ListAccountTaxRequest) GetParent
func (x *ListAccountTaxRequest) GetParent() string
func (*ListAccountTaxRequest) ProtoMessage
func (*ListAccountTaxRequest) ProtoMessage()
func (*ListAccountTaxRequest) ProtoReflect
func (x *ListAccountTaxRequest) ProtoReflect() protoreflect.Message
func (*ListAccountTaxRequest) Reset
func (x *ListAccountTaxRequest) Reset()
func (*ListAccountTaxRequest) String
func (x *ListAccountTaxRequest) String() string
ListAccountTaxResponse
type ListAccountTaxResponse struct {
// Page of accounttax settings
AccountTaxes []*AccountTax `protobuf:"bytes,1,rep,name=account_taxes,json=accountTaxes,proto3" json:"account_taxes,omitempty"`
// The token for the retrieval of the next page of account tax settings.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response to account tax list request This method can only be called on a multi-client account, otherwise it'll return an error.
func (*ListAccountTaxResponse) Descriptor
func (*ListAccountTaxResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountTaxResponse.ProtoReflect.Descriptor instead.
func (*ListAccountTaxResponse) GetAccountTaxes
func (x *ListAccountTaxResponse) GetAccountTaxes() []*AccountTax
func (*ListAccountTaxResponse) GetNextPageToken
func (x *ListAccountTaxResponse) GetNextPageToken() string
func (*ListAccountTaxResponse) ProtoMessage
func (*ListAccountTaxResponse) ProtoMessage()
func (*ListAccountTaxResponse) ProtoReflect
func (x *ListAccountTaxResponse) ProtoReflect() protoreflect.Message
func (*ListAccountTaxResponse) Reset
func (x *ListAccountTaxResponse) Reset()
func (*ListAccountTaxResponse) String
func (x *ListAccountTaxResponse) String() string
ListAccountsRequest
type ListAccountsRequest struct {
// Optional. The maximum number of accounts to return. The service may return
// fewer than this value. If unspecified, at most 250 accounts are returned.
// The maximum value is 500; values above 500 are coerced to 500.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListAccounts` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListAccounts` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Returns only accounts that match the
// [filter](/merchant/api/guides/accounts/filter).
// For more details, see the
// [filter syntax reference](/merchant/api/guides/accounts/filter-syntax).
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}
Request message for the ListAccounts
method.
func (*ListAccountsRequest) Descriptor
func (*ListAccountsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead.
func (*ListAccountsRequest) GetFilter
func (x *ListAccountsRequest) GetFilter() string
func (*ListAccountsRequest) GetPageSize
func (x *ListAccountsRequest) GetPageSize() int32
func (*ListAccountsRequest) GetPageToken
func (x *ListAccountsRequest) GetPageToken() string
func (*ListAccountsRequest) ProtoMessage
func (*ListAccountsRequest) ProtoMessage()
func (*ListAccountsRequest) ProtoReflect
func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message
func (*ListAccountsRequest) Reset
func (x *ListAccountsRequest) Reset()
func (*ListAccountsRequest) String
func (x *ListAccountsRequest) String() string
ListAccountsResponse
type ListAccountsResponse struct {
// The accounts matching the `ListAccountsRequest`.
Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response message for the ListAccounts
method.
func (*ListAccountsResponse) Descriptor
func (*ListAccountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead.
func (*ListAccountsResponse) GetAccounts
func (x *ListAccountsResponse) GetAccounts() []*Account
func (*ListAccountsResponse) GetNextPageToken
func (x *ListAccountsResponse) GetNextPageToken() string
func (*ListAccountsResponse) ProtoMessage
func (*ListAccountsResponse) ProtoMessage()
func (*ListAccountsResponse) ProtoReflect
func (x *ListAccountsResponse) ProtoReflect() protoreflect.Message
func (*ListAccountsResponse) Reset
func (x *ListAccountsResponse) Reset()
func (*ListAccountsResponse) String
func (x *ListAccountsResponse) String() string
ListOnlineReturnPoliciesRequest
type ListOnlineReturnPoliciesRequest struct {
// Required. The merchant account for which to list return policies.
// Format: `accounts/{account}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of `OnlineReturnPolicy` resources to return.
// The service returns fewer than this value if the number of return policies
// for the given merchant is less that than the `pageSize`. The default value
// is 10. The maximum value is 100; If a value higher than the maximum is
// specified, then the `pageSize` will default to the maximum
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListOnlineReturnPolicies`
// call. Provide the page token to retrieve the subsequent page.
//
// When paginating, all other parameters provided to
// `ListOnlineReturnPolicies` must match the call that provided the page
// token. The token returned as
// [nextPageToken][google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse.next_page_token]
// in the response to the previous request.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
Request message for the ListOnlineReturnPolicies
method.
func (*ListOnlineReturnPoliciesRequest) Descriptor
func (*ListOnlineReturnPoliciesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListOnlineReturnPoliciesRequest.ProtoReflect.Descriptor instead.
func (*ListOnlineReturnPoliciesRequest) GetPageSize
func (x *ListOnlineReturnPoliciesRequest) GetPageSize() int32
func (*ListOnlineReturnPoliciesRequest) GetPageToken
func (x *ListOnlineReturnPoliciesRequest) GetPageToken() string
func (*ListOnlineReturnPoliciesRequest) GetParent
func (x *ListOnlineReturnPoliciesRequest) GetParent() string
func (*ListOnlineReturnPoliciesRequest) ProtoMessage
func (*ListOnlineReturnPoliciesRequest) ProtoMessage()
func (*ListOnlineReturnPoliciesRequest) ProtoReflect
func (x *ListOnlineReturnPoliciesRequest) ProtoReflect() protoreflect.Message
func (*ListOnlineReturnPoliciesRequest) Reset
func (x *ListOnlineReturnPoliciesRequest) Reset()
func (*ListOnlineReturnPoliciesRequest) String
func (x *ListOnlineReturnPoliciesRequest) String() string
ListOnlineReturnPoliciesResponse
type ListOnlineReturnPoliciesResponse struct {
// The retrieved return policies.
OnlineReturnPolicies []*OnlineReturnPolicy `protobuf:"bytes,1,rep,name=online_return_policies,json=onlineReturnPolicies,proto3" json:"online_return_policies,omitempty"`
// A token, which can be sent as `pageToken` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response message for the ListOnlineReturnPolicies
method.
func (*ListOnlineReturnPoliciesResponse) Descriptor
func (*ListOnlineReturnPoliciesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListOnlineReturnPoliciesResponse.ProtoReflect.Descriptor instead.
func (*ListOnlineReturnPoliciesResponse) GetNextPageToken
func (x *ListOnlineReturnPoliciesResponse) GetNextPageToken() string
func (*ListOnlineReturnPoliciesResponse) GetOnlineReturnPolicies
func (x *ListOnlineReturnPoliciesResponse) GetOnlineReturnPolicies() []*OnlineReturnPolicy
func (*ListOnlineReturnPoliciesResponse) ProtoMessage
func (*ListOnlineReturnPoliciesResponse) ProtoMessage()
func (*ListOnlineReturnPoliciesResponse) ProtoReflect
func (x *ListOnlineReturnPoliciesResponse) ProtoReflect() protoreflect.Message
func (*ListOnlineReturnPoliciesResponse) Reset
func (x *ListOnlineReturnPoliciesResponse) Reset()
func (*ListOnlineReturnPoliciesResponse) String
func (x *ListOnlineReturnPoliciesResponse) String() string
ListProgramsRequest
type ListProgramsRequest struct {
// Required. The name of the account for which to retrieve all programs.
// Format: `accounts/{account}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of programs to return in a single response. If
// unspecified (or 0), a default size of 1000 is used. The maximum value is
// 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A continuation token, received from a previous `ListPrograms`
// call. Provide this to retrieve the next page.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
Request message for the ListPrograms method.
func (*ListProgramsRequest) Descriptor
func (*ListProgramsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListProgramsRequest.ProtoReflect.Descriptor instead.
func (*ListProgramsRequest) GetPageSize
func (x *ListProgramsRequest) GetPageSize() int32
func (*ListProgramsRequest) GetPageToken
func (x *ListProgramsRequest) GetPageToken() string
func (*ListProgramsRequest) GetParent
func (x *ListProgramsRequest) GetParent() string
func (*ListProgramsRequest) ProtoMessage
func (*ListProgramsRequest) ProtoMessage()
func (*ListProgramsRequest) ProtoReflect
func (x *ListProgramsRequest) ProtoReflect() protoreflect.Message
func (*ListProgramsRequest) Reset
func (x *ListProgramsRequest) Reset()
func (*ListProgramsRequest) String
func (x *ListProgramsRequest) String() string
ListProgramsResponse
type ListProgramsResponse struct {
// The programs for the given account.
Programs []*Program `protobuf:"bytes,1,rep,name=programs,proto3" json:"programs,omitempty"`
// A token that can be sent as `page_token` to retrieve the next page. If this
// field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response message for the ListPrograms method.
func (*ListProgramsResponse) Descriptor
func (*ListProgramsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListProgramsResponse.ProtoReflect.Descriptor instead.
func (*ListProgramsResponse) GetNextPageToken
func (x *ListProgramsResponse) GetNextPageToken() string
func (*ListProgramsResponse) GetPrograms
func (x *ListProgramsResponse) GetPrograms() []*Program
func (*ListProgramsResponse) ProtoMessage
func (*ListProgramsResponse) ProtoMessage()
func (*ListProgramsResponse) ProtoReflect
func (x *ListProgramsResponse) ProtoReflect() protoreflect.Message
func (*ListProgramsResponse) Reset
func (x *ListProgramsResponse) Reset()
func (*ListProgramsResponse) String
func (x *ListProgramsResponse) String() string
ListRegionsRequest
type ListRegionsRequest struct {
// Required. The account to list regions for.
// Format: `accounts/{account}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of regions to return. The service may return
// fewer than this value.
// If unspecified, at most 50 regions will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListRegions` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListRegions` must
// match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
Request message for the ListRegions
method.
func (*ListRegionsRequest) Descriptor
func (*ListRegionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRegionsRequest.ProtoReflect.Descriptor instead.
func (*ListRegionsRequest) GetPageSize
func (x *ListRegionsRequest) GetPageSize() int32
func (*ListRegionsRequest) GetPageToken
func (x *ListRegionsRequest) GetPageToken() string
func (*ListRegionsRequest) GetParent
func (x *ListRegionsRequest) GetParent() string
func (*ListRegionsRequest) ProtoMessage
func (*ListRegionsRequest) ProtoMessage()
func (*ListRegionsRequest) ProtoReflect
func (x *ListRegionsRequest) ProtoReflect() protoreflect.Message
func (*ListRegionsRequest) Reset
func (x *ListRegionsRequest) Reset()
func (*ListRegionsRequest) String
func (x *ListRegionsRequest) String() string
ListRegionsResponse
type ListRegionsResponse struct {
// The regions from the specified merchant.
Regions []*Region `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response message for the ListRegions
method.
func (*ListRegionsResponse) Descriptor
func (*ListRegionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRegionsResponse.ProtoReflect.Descriptor instead.
func (*ListRegionsResponse) GetNextPageToken
func (x *ListRegionsResponse) GetNextPageToken() string
func (*ListRegionsResponse) GetRegions
func (x *ListRegionsResponse) GetRegions() []*Region
func (*ListRegionsResponse) ProtoMessage
func (*ListRegionsResponse) ProtoMessage()
func (*ListRegionsResponse) ProtoReflect
func (x *ListRegionsResponse) ProtoReflect() protoreflect.Message
func (*ListRegionsResponse) Reset
func (x *ListRegionsResponse) Reset()
func (*ListRegionsResponse) String
func (x *ListRegionsResponse) String() string
ListSubAccountsRequest
type ListSubAccountsRequest struct {
// Required. The parent account.
// Format: `accounts/{account}`
Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
// Optional. The maximum number of accounts to return. The service may return
// fewer than this value. If unspecified, at most 250 accounts are returned.
// The maximum value is 500; values above 500 are coerced to 500.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListAccounts` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListAccounts` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
Request message for the ListSubAccounts
method.
func (*ListSubAccountsRequest) Descriptor
func (*ListSubAccountsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSubAccountsRequest.ProtoReflect.Descriptor instead.
func (*ListSubAccountsRequest) GetPageSize
func (x *ListSubAccountsRequest) GetPageSize() int32
func (*ListSubAccountsRequest) GetPageToken
func (x *ListSubAccountsRequest) GetPageToken() string
func (*ListSubAccountsRequest) GetProvider
func (x *ListSubAccountsRequest) GetProvider() string
func (*ListSubAccountsRequest) ProtoMessage
func (*ListSubAccountsRequest) ProtoMessage()
func (*ListSubAccountsRequest) ProtoReflect
func (x *ListSubAccountsRequest) ProtoReflect() protoreflect.Message
func (*ListSubAccountsRequest) Reset
func (x *ListSubAccountsRequest) Reset()
func (*ListSubAccountsRequest) String
func (x *ListSubAccountsRequest) String() string
ListSubAccountsResponse
type ListSubAccountsResponse struct {
// The accounts for which the given parent account is an aggregator.
Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response message for the ListSubAccounts
method.
func (*ListSubAccountsResponse) Descriptor
func (*ListSubAccountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSubAccountsResponse.ProtoReflect.Descriptor instead.
func (*ListSubAccountsResponse) GetAccounts
func (x *ListSubAccountsResponse) GetAccounts() []*Account
func (*ListSubAccountsResponse) GetNextPageToken
func (x *ListSubAccountsResponse) GetNextPageToken() string
func (*ListSubAccountsResponse) ProtoMessage
func (*ListSubAccountsResponse) ProtoMessage()
func (*ListSubAccountsResponse) ProtoReflect
func (x *ListSubAccountsResponse) ProtoReflect() protoreflect.Message
func (*ListSubAccountsResponse) Reset
func (x *ListSubAccountsResponse) Reset()
func (*ListSubAccountsResponse) String
func (x *ListSubAccountsResponse) String() string
ListUsersRequest
type ListUsersRequest struct {
// Required. The parent, which owns this collection of users.
// Format: `accounts/{account}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of users to return. The service may return
// fewer than this value. If unspecified, at most 50 users will be returned.
// The maximum value is 100; values above 100 will be coerced to 100
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListUsers` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListUsers` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
Request message for the ListUsers
method.
func (*ListUsersRequest) Descriptor
func (*ListUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.
func (*ListUsersRequest) GetPageSize
func (x *ListUsersRequest) GetPageSize() int32
func (*ListUsersRequest) GetPageToken
func (x *ListUsersRequest) GetPageToken() string
func (*ListUsersRequest) GetParent
func (x *ListUsersRequest) GetParent() string
func (*ListUsersRequest) ProtoMessage
func (*ListUsersRequest) ProtoMessage()
func (*ListUsersRequest) ProtoReflect
func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
func (*ListUsersRequest) Reset
func (x *ListUsersRequest) Reset()
func (*ListUsersRequest) String
func (x *ListUsersRequest) String() string
ListUsersResponse
type ListUsersResponse struct {
// The users from the specified account.
Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response message for the ListUsers
method.
func (*ListUsersResponse) Descriptor
func (*ListUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.
func (*ListUsersResponse) GetNextPageToken
func (x *ListUsersResponse) GetNextPageToken() string
func (*ListUsersResponse) GetUsers
func (x *ListUsersResponse) GetUsers() []*User
func (*ListUsersResponse) ProtoMessage
func (*ListUsersResponse) ProtoMessage()
func (*ListUsersResponse) ProtoReflect
func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
func (*ListUsersResponse) Reset
func (x *ListUsersResponse) Reset()
func (*ListUsersResponse) String
func (x *ListUsersResponse) String() string
LocationIdSet
type LocationIdSet struct {
// Required. A non-empty list of
// [location
// IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting).
// They must all be of the same location type (For
// example, state).
LocationIds []string `protobuf:"bytes,1,rep,name=location_ids,json=locationIds,proto3" json:"location_ids,omitempty"`
// contains filtered or unexported fields
}
A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
func (*LocationIdSet) Descriptor
func (*LocationIdSet) Descriptor() ([]byte, []int)
Deprecated: Use LocationIdSet.ProtoReflect.Descriptor instead.
func (*LocationIdSet) GetLocationIds
func (x *LocationIdSet) GetLocationIds() []string
func (*LocationIdSet) ProtoMessage
func (*LocationIdSet) ProtoMessage()
func (*LocationIdSet) ProtoReflect
func (x *LocationIdSet) ProtoReflect() protoreflect.Message
func (*LocationIdSet) Reset
func (x *LocationIdSet) Reset()
func (*LocationIdSet) String
func (x *LocationIdSet) String() string
MinimumOrderValueTable
type MinimumOrderValueTable struct {
StoreCodeSetWithMovs []*MinimumOrderValueTable_StoreCodeSetWithMov "" /* 127 byte string literal not displayed */
}
Table of per store minimum order values for the pickup fulfillment type.
func (*MinimumOrderValueTable) Descriptor
func (*MinimumOrderValueTable) Descriptor() ([]byte, []int)
Deprecated: Use MinimumOrderValueTable.ProtoReflect.Descriptor instead.
func (*MinimumOrderValueTable) GetStoreCodeSetWithMovs
func (x *MinimumOrderValueTable) GetStoreCodeSetWithMovs() []*MinimumOrderValueTable_StoreCodeSetWithMov
func (*MinimumOrderValueTable) ProtoMessage
func (*MinimumOrderValueTable) ProtoMessage()
func (*MinimumOrderValueTable) ProtoReflect
func (x *MinimumOrderValueTable) ProtoReflect() protoreflect.Message
func (*MinimumOrderValueTable) Reset
func (x *MinimumOrderValueTable) Reset()
func (*MinimumOrderValueTable) String
func (x *MinimumOrderValueTable) String() string
MinimumOrderValueTable_StoreCodeSetWithMov
type MinimumOrderValueTable_StoreCodeSetWithMov struct {
// Optional. A list of unique store codes or empty for the catch all.
StoreCodes []string `protobuf:"bytes,1,rep,name=store_codes,json=storeCodes,proto3" json:"store_codes,omitempty"`
// The minimum order value for the given stores.
Value *typepb.Price `protobuf:"bytes,2,opt,name=value,proto3,oneof" json:"value,omitempty"`
// contains filtered or unexported fields
}
A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
func (*MinimumOrderValueTable_StoreCodeSetWithMov) Descriptor
func (*MinimumOrderValueTable_StoreCodeSetWithMov) Descriptor() ([]byte, []int)
Deprecated: Use MinimumOrderValueTable_StoreCodeSetWithMov.ProtoReflect.Descriptor instead.
func (*MinimumOrderValueTable_StoreCodeSetWithMov) GetStoreCodes
func (x *MinimumOrderValueTable_StoreCodeSetWithMov) GetStoreCodes() []string
func (*MinimumOrderValueTable_StoreCodeSetWithMov) GetValue
func (x *MinimumOrderValueTable_StoreCodeSetWithMov) GetValue() *typepb.Price
func (*MinimumOrderValueTable_StoreCodeSetWithMov) ProtoMessage
func (*MinimumOrderValueTable_StoreCodeSetWithMov) ProtoMessage()
func (*MinimumOrderValueTable_StoreCodeSetWithMov) ProtoReflect
func (x *MinimumOrderValueTable_StoreCodeSetWithMov) ProtoReflect() protoreflect.Message
func (*MinimumOrderValueTable_StoreCodeSetWithMov) Reset
func (x *MinimumOrderValueTable_StoreCodeSetWithMov) Reset()
func (*MinimumOrderValueTable_StoreCodeSetWithMov) String
func (x *MinimumOrderValueTable_StoreCodeSetWithMov) String() string
OnlineReturnPolicy
type OnlineReturnPolicy struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
ReturnPolicyId string `protobuf:"bytes,2,opt,name=return_policy_id,json=returnPolicyId,proto3" json:"return_policy_id,omitempty"`
Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
Countries []string `protobuf:"bytes,4,rep,name=countries,proto3" json:"countries,omitempty"`
Policy *OnlineReturnPolicy_Policy `protobuf:"bytes,5,opt,name=policy,proto3" json:"policy,omitempty"`
RestockingFee *OnlineReturnPolicy_RestockingFee `protobuf:"bytes,6,opt,name=restocking_fee,json=restockingFee,proto3" json:"restocking_fee,omitempty"`
ReturnMethods []OnlineReturnPolicy_ReturnMethod "" /* 186 byte string literal not displayed */
ItemConditions []OnlineReturnPolicy_ItemCondition "" /* 190 byte string literal not displayed */
ReturnShippingFee *OnlineReturnPolicy_ReturnShippingFee `protobuf:"bytes,9,opt,name=return_shipping_fee,json=returnShippingFee,proto3" json:"return_shipping_fee,omitempty"`
ReturnPolicyUri string `protobuf:"bytes,10,opt,name=return_policy_uri,json=returnPolicyUri,proto3" json:"return_policy_uri,omitempty"`
AcceptDefectiveOnly *bool "" /* 128 byte string literal not displayed */
ProcessRefundDays *int32 `protobuf:"varint,12,opt,name=process_refund_days,json=processRefundDays,proto3,oneof" json:"process_refund_days,omitempty"`
AcceptExchange *bool `protobuf:"varint,13,opt,name=accept_exchange,json=acceptExchange,proto3,oneof" json:"accept_exchange,omitempty"`
}
Online return policy object. This is currently used to represent return policies for ads and free listings programs.
func (*OnlineReturnPolicy) Descriptor
func (*OnlineReturnPolicy) Descriptor() ([]byte, []int)
Deprecated: Use OnlineReturnPolicy.ProtoReflect.Descriptor instead.
func (*OnlineReturnPolicy) GetAcceptDefectiveOnly
func (x *OnlineReturnPolicy) GetAcceptDefectiveOnly() bool
func (*OnlineReturnPolicy) GetAcceptExchange
func (x *OnlineReturnPolicy) GetAcceptExchange() bool
func (*OnlineReturnPolicy) GetCountries
func (x *OnlineReturnPolicy) GetCountries() []string
func (*OnlineReturnPolicy) GetItemConditions
func (x *OnlineReturnPolicy) GetItemConditions() []OnlineReturnPolicy_ItemCondition
func (*OnlineReturnPolicy) GetLabel
func (x *OnlineReturnPolicy) GetLabel() string
func (*OnlineReturnPolicy) GetName
func (x *OnlineReturnPolicy) GetName() string
func (*OnlineReturnPolicy) GetPolicy
func (x *OnlineReturnPolicy) GetPolicy() *OnlineReturnPolicy_Policy
func (*OnlineReturnPolicy) GetProcessRefundDays
func (x *OnlineReturnPolicy) GetProcessRefundDays() int32
func (*OnlineReturnPolicy) GetRestockingFee
func (x *OnlineReturnPolicy) GetRestockingFee() *OnlineReturnPolicy_RestockingFee
func (*OnlineReturnPolicy) GetReturnMethods
func (x *OnlineReturnPolicy) GetReturnMethods() []OnlineReturnPolicy_ReturnMethod
func (*OnlineReturnPolicy) GetReturnPolicyId
func (x *OnlineReturnPolicy) GetReturnPolicyId() string
func (*OnlineReturnPolicy) GetReturnPolicyUri
func (x *OnlineReturnPolicy) GetReturnPolicyUri() string
func (*OnlineReturnPolicy) GetReturnShippingFee
func (x *OnlineReturnPolicy) GetReturnShippingFee() *OnlineReturnPolicy_ReturnShippingFee
func (*OnlineReturnPolicy) ProtoMessage
func (*OnlineReturnPolicy) ProtoMessage()
func (*OnlineReturnPolicy) ProtoReflect
func (x *OnlineReturnPolicy) ProtoReflect() protoreflect.Message
func (*OnlineReturnPolicy) Reset
func (x *OnlineReturnPolicy) Reset()
func (*OnlineReturnPolicy) String
func (x *OnlineReturnPolicy) String() string
OnlineReturnPolicyServiceClient
type OnlineReturnPolicyServiceClient interface {
// Gets an existing return policy.
GetOnlineReturnPolicy(ctx context.Context, in *GetOnlineReturnPolicyRequest, opts ...grpc.CallOption) (*OnlineReturnPolicy, error)
// Lists all existing return policies.
ListOnlineReturnPolicies(ctx context.Context, in *ListOnlineReturnPoliciesRequest, opts ...grpc.CallOption) (*ListOnlineReturnPoliciesResponse, error)
}
OnlineReturnPolicyServiceClient is the client API for OnlineReturnPolicyService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOnlineReturnPolicyServiceClient
func NewOnlineReturnPolicyServiceClient(cc grpc.ClientConnInterface) OnlineReturnPolicyServiceClient
OnlineReturnPolicyServiceServer
type OnlineReturnPolicyServiceServer interface {
// Gets an existing return policy.
GetOnlineReturnPolicy(context.Context, *GetOnlineReturnPolicyRequest) (*OnlineReturnPolicy, error)
// Lists all existing return policies.
ListOnlineReturnPolicies(context.Context, *ListOnlineReturnPoliciesRequest) (*ListOnlineReturnPoliciesResponse, error)
}
OnlineReturnPolicyServiceServer is the server API for OnlineReturnPolicyService service.
OnlineReturnPolicy_ItemCondition
type OnlineReturnPolicy_ItemCondition int32
The available item conditions.
OnlineReturnPolicy_ITEM_CONDITION_UNSPECIFIED, OnlineReturnPolicy_NEW, OnlineReturnPolicy_USED
const (
// Default value. This value is unused.
OnlineReturnPolicy_ITEM_CONDITION_UNSPECIFIED OnlineReturnPolicy_ItemCondition = 0
// New.
OnlineReturnPolicy_NEW OnlineReturnPolicy_ItemCondition = 1
// Used.
OnlineReturnPolicy_USED OnlineReturnPolicy_ItemCondition = 2
)
func (OnlineReturnPolicy_ItemCondition) Descriptor
func (OnlineReturnPolicy_ItemCondition) Descriptor() protoreflect.EnumDescriptor
func (OnlineReturnPolicy_ItemCondition) Enum
func (x OnlineReturnPolicy_ItemCondition) Enum() *OnlineReturnPolicy_ItemCondition
func (OnlineReturnPolicy_ItemCondition) EnumDescriptor
func (OnlineReturnPolicy_ItemCondition) EnumDescriptor() ([]byte, []int)
Deprecated: Use OnlineReturnPolicy_ItemCondition.Descriptor instead.
func (OnlineReturnPolicy_ItemCondition) Number
func (x OnlineReturnPolicy_ItemCondition) Number() protoreflect.EnumNumber
func (OnlineReturnPolicy_ItemCondition) String
func (x OnlineReturnPolicy_ItemCondition) String() string
func (OnlineReturnPolicy_ItemCondition) Type
func (OnlineReturnPolicy_ItemCondition) Type() protoreflect.EnumType
OnlineReturnPolicy_Policy
type OnlineReturnPolicy_Policy struct {
Type OnlineReturnPolicy_Policy_Type "" /* 139 byte string literal not displayed */
Days int64 `protobuf:"varint,2,opt,name=days,proto3" json:"days,omitempty"`
}
The available policies.
func (*OnlineReturnPolicy_Policy) Descriptor
func (*OnlineReturnPolicy_Policy) Descriptor() ([]byte, []int)
Deprecated: Use OnlineReturnPolicy_Policy.ProtoReflect.Descriptor instead.
func (*OnlineReturnPolicy_Policy) GetDays
func (x *OnlineReturnPolicy_Policy) GetDays() int64
func (*OnlineReturnPolicy_Policy) GetType
func (x *OnlineReturnPolicy_Policy) GetType() OnlineReturnPolicy_Policy_Type
func (*OnlineReturnPolicy_Policy) ProtoMessage
func (*OnlineReturnPolicy_Policy) ProtoMessage()
func (*OnlineReturnPolicy_Policy) ProtoReflect
func (x *OnlineReturnPolicy_Policy) ProtoReflect() protoreflect.Message
func (*OnlineReturnPolicy_Policy) Reset
func (x *OnlineReturnPolicy_Policy) Reset()
func (*OnlineReturnPolicy_Policy) String
func (x *OnlineReturnPolicy_Policy) String() string
OnlineReturnPolicy_Policy_Type
type OnlineReturnPolicy_Policy_Type int32
Return policy types.
OnlineReturnPolicy_Policy_TYPE_UNSPECIFIED, OnlineReturnPolicy_Policy_NUMBER_OF_DAYS_AFTER_DELIVERY, OnlineReturnPolicy_Policy_NO_RETURNS, OnlineReturnPolicy_Policy_LIFETIME_RETURNS
const (
// Default value. This value is unused.
OnlineReturnPolicy_Policy_TYPE_UNSPECIFIED OnlineReturnPolicy_Policy_Type = 0
// The number of days within which a return is valid after delivery.
OnlineReturnPolicy_Policy_NUMBER_OF_DAYS_AFTER_DELIVERY OnlineReturnPolicy_Policy_Type = 1
// No returns.
OnlineReturnPolicy_Policy_NO_RETURNS OnlineReturnPolicy_Policy_Type = 2
// Life time returns.
OnlineReturnPolicy_Policy_LIFETIME_RETURNS OnlineReturnPolicy_Policy_Type = 3
)
func (OnlineReturnPolicy_Policy_Type) Descriptor
func (OnlineReturnPolicy_Policy_Type) Descriptor() protoreflect.EnumDescriptor
func (OnlineReturnPolicy_Policy_Type) Enum
func (x OnlineReturnPolicy_Policy_Type) Enum() *OnlineReturnPolicy_Policy_Type
func (OnlineReturnPolicy_Policy_Type) EnumDescriptor
func (OnlineReturnPolicy_Policy_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use OnlineReturnPolicy_Policy_Type.Descriptor instead.
func (OnlineReturnPolicy_Policy_Type) Number
func (x OnlineReturnPolicy_Policy_Type) Number() protoreflect.EnumNumber
func (OnlineReturnPolicy_Policy_Type) String
func (x OnlineReturnPolicy_Policy_Type) String() string
func (OnlineReturnPolicy_Policy_Type) Type
func (OnlineReturnPolicy_Policy_Type) Type() protoreflect.EnumType
OnlineReturnPolicy_RestockingFee
type OnlineReturnPolicy_RestockingFee struct {
// Types that are assignable to Type:
//
// *OnlineReturnPolicy_RestockingFee_FixedFee
// *OnlineReturnPolicy_RestockingFee_MicroPercent
Type isOnlineReturnPolicy_RestockingFee_Type `protobuf_oneof:"type"`
// contains filtered or unexported fields
}
The restocking fee. This can be a flat fee or a micro percent.
func (*OnlineReturnPolicy_RestockingFee) Descriptor
func (*OnlineReturnPolicy_RestockingFee) Descriptor() ([]byte, []int)
Deprecated: Use OnlineReturnPolicy_RestockingFee.ProtoReflect.Descriptor instead.
func (*OnlineReturnPolicy_RestockingFee) GetFixedFee
func (x *OnlineReturnPolicy_RestockingFee) GetFixedFee() *typepb.Price
func (*OnlineReturnPolicy_RestockingFee) GetMicroPercent
func (x *OnlineReturnPolicy_RestockingFee) GetMicroPercent() int32
func (*OnlineReturnPolicy_RestockingFee) GetType
func (m *OnlineReturnPolicy_RestockingFee) GetType() isOnlineReturnPolicy_RestockingFee_Type
func (*OnlineReturnPolicy_RestockingFee) ProtoMessage
func (*OnlineReturnPolicy_RestockingFee) ProtoMessage()
func (*OnlineReturnPolicy_RestockingFee) ProtoReflect
func (x *OnlineReturnPolicy_RestockingFee) ProtoReflect() protoreflect.Message
func (*OnlineReturnPolicy_RestockingFee) Reset
func (x *OnlineReturnPolicy_RestockingFee) Reset()
func (*OnlineReturnPolicy_RestockingFee) String
func (x *OnlineReturnPolicy_RestockingFee) String() string
OnlineReturnPolicy_RestockingFee_FixedFee
type OnlineReturnPolicy_RestockingFee_FixedFee struct {
// Fixed restocking fee.
FixedFee *typepb.Price `protobuf:"bytes,1,opt,name=fixed_fee,json=fixedFee,proto3,oneof"`
}
OnlineReturnPolicy_RestockingFee_MicroPercent
type OnlineReturnPolicy_RestockingFee_MicroPercent struct {
// Percent of total price in micros. 15,000,000 means 15% of the total
// price would be charged.
MicroPercent int32 `protobuf:"varint,2,opt,name=micro_percent,json=microPercent,proto3,oneof"`
}
OnlineReturnPolicy_ReturnMethod
type OnlineReturnPolicy_ReturnMethod int32
The available return methods.
OnlineReturnPolicy_RETURN_METHOD_UNSPECIFIED, OnlineReturnPolicy_BY_MAIL, OnlineReturnPolicy_IN_STORE, OnlineReturnPolicy_AT_A_KIOSK
const (
// Default value. This value is unused.
OnlineReturnPolicy_RETURN_METHOD_UNSPECIFIED OnlineReturnPolicy_ReturnMethod = 0
// Return by mail.
OnlineReturnPolicy_BY_MAIL OnlineReturnPolicy_ReturnMethod = 1
// Return in store.
OnlineReturnPolicy_IN_STORE OnlineReturnPolicy_ReturnMethod = 2
// Return at a kiosk.
OnlineReturnPolicy_AT_A_KIOSK OnlineReturnPolicy_ReturnMethod = 3
)
func (OnlineReturnPolicy_ReturnMethod) Descriptor
func (OnlineReturnPolicy_ReturnMethod) Descriptor() protoreflect.EnumDescriptor
func (OnlineReturnPolicy_ReturnMethod) Enum
func (x OnlineReturnPolicy_ReturnMethod) Enum() *OnlineReturnPolicy_ReturnMethod
func (OnlineReturnPolicy_ReturnMethod) EnumDescriptor
func (OnlineReturnPolicy_ReturnMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use OnlineReturnPolicy_ReturnMethod.Descriptor instead.
func (OnlineReturnPolicy_ReturnMethod) Number
func (x OnlineReturnPolicy_ReturnMethod) Number() protoreflect.EnumNumber
func (OnlineReturnPolicy_ReturnMethod) String
func (x OnlineReturnPolicy_ReturnMethod) String() string
func (OnlineReturnPolicy_ReturnMethod) Type
func (OnlineReturnPolicy_ReturnMethod) Type() protoreflect.EnumType
OnlineReturnPolicy_ReturnShippingFee
type OnlineReturnPolicy_ReturnShippingFee struct {
Type OnlineReturnPolicy_ReturnShippingFee_Type "" /* 150 byte string literal not displayed */
FixedFee *typepb.Price `protobuf:"bytes,2,opt,name=fixed_fee,json=fixedFee,proto3" json:"fixed_fee,omitempty"`
}
The return shipping fee. This can either be a fixed fee or a boolean to indicate that the customer pays the actual shipping cost.
func (*OnlineReturnPolicy_ReturnShippingFee) Descriptor
func (*OnlineReturnPolicy_ReturnShippingFee) Descriptor() ([]byte, []int)
Deprecated: Use OnlineReturnPolicy_ReturnShippingFee.ProtoReflect.Descriptor instead.
func (*OnlineReturnPolicy_ReturnShippingFee) GetFixedFee
func (x *OnlineReturnPolicy_ReturnShippingFee) GetFixedFee() *typepb.Price
func (*OnlineReturnPolicy_ReturnShippingFee) GetType
func (x *OnlineReturnPolicy_ReturnShippingFee) GetType() OnlineReturnPolicy_ReturnShippingFee_Type
func (*OnlineReturnPolicy_ReturnShippingFee) ProtoMessage
func (*OnlineReturnPolicy_ReturnShippingFee) ProtoMessage()
func (*OnlineReturnPolicy_ReturnShippingFee) ProtoReflect
func (x *OnlineReturnPolicy_ReturnShippingFee) ProtoReflect() protoreflect.Message
func (*OnlineReturnPolicy_ReturnShippingFee) Reset
func (x *OnlineReturnPolicy_ReturnShippingFee) Reset()
func (*OnlineReturnPolicy_ReturnShippingFee) String
func (x *OnlineReturnPolicy_ReturnShippingFee) String() string
OnlineReturnPolicy_ReturnShippingFee_Type
type OnlineReturnPolicy_ReturnShippingFee_Type int32
Return shipping fee types.
OnlineReturnPolicy_ReturnShippingFee_TYPE_UNSPECIFIED, OnlineReturnPolicy_ReturnShippingFee_FIXED, OnlineReturnPolicy_ReturnShippingFee_CUSTOMER_PAYING_ACTUAL_FEE
const (
// Default value. This value is unused.
OnlineReturnPolicy_ReturnShippingFee_TYPE_UNSPECIFIED OnlineReturnPolicy_ReturnShippingFee_Type = 0
// The return shipping fee is a fixed value.
OnlineReturnPolicy_ReturnShippingFee_FIXED OnlineReturnPolicy_ReturnShippingFee_Type = 1
// Customers will pay the actual return shipping fee.
OnlineReturnPolicy_ReturnShippingFee_CUSTOMER_PAYING_ACTUAL_FEE OnlineReturnPolicy_ReturnShippingFee_Type = 2
)
func (OnlineReturnPolicy_ReturnShippingFee_Type) Descriptor
func (OnlineReturnPolicy_ReturnShippingFee_Type) Descriptor() protoreflect.EnumDescriptor
func (OnlineReturnPolicy_ReturnShippingFee_Type) Enum
func (x OnlineReturnPolicy_ReturnShippingFee_Type) Enum() *OnlineReturnPolicy_ReturnShippingFee_Type
func (OnlineReturnPolicy_ReturnShippingFee_Type) EnumDescriptor
func (OnlineReturnPolicy_ReturnShippingFee_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use OnlineReturnPolicy_ReturnShippingFee_Type.Descriptor instead.
func (OnlineReturnPolicy_ReturnShippingFee_Type) Number
func (x OnlineReturnPolicy_ReturnShippingFee_Type) Number() protoreflect.EnumNumber
func (OnlineReturnPolicy_ReturnShippingFee_Type) String
func (x OnlineReturnPolicy_ReturnShippingFee_Type) String() string
func (OnlineReturnPolicy_ReturnShippingFee_Type) Type
func (OnlineReturnPolicy_ReturnShippingFee_Type) Type() protoreflect.EnumType
PhoneVerificationState
type PhoneVerificationState int32
The phone verification state.
PhoneVerificationState_PHONE_VERIFICATION_STATE_UNSPECIFIED, PhoneVerificationState_PHONE_VERIFICATION_STATE_VERIFIED, PhoneVerificationState_PHONE_VERIFICATION_STATE_UNVERIFIED
const (
// Default value. This value is unused.
PhoneVerificationState_PHONE_VERIFICATION_STATE_UNSPECIFIED PhoneVerificationState = 0
// The phone is verified.
PhoneVerificationState_PHONE_VERIFICATION_STATE_VERIFIED PhoneVerificationState = 1
// The phone is unverified
PhoneVerificationState_PHONE_VERIFICATION_STATE_UNVERIFIED PhoneVerificationState = 2
)
func (PhoneVerificationState) Descriptor
func (PhoneVerificationState) Descriptor() protoreflect.EnumDescriptor
func (PhoneVerificationState) Enum
func (x PhoneVerificationState) Enum() *PhoneVerificationState
func (PhoneVerificationState) EnumDescriptor
func (PhoneVerificationState) EnumDescriptor() ([]byte, []int)
Deprecated: Use PhoneVerificationState.Descriptor instead.
func (PhoneVerificationState) Number
func (x PhoneVerificationState) Number() protoreflect.EnumNumber
func (PhoneVerificationState) String
func (x PhoneVerificationState) String() string
func (PhoneVerificationState) Type
func (PhoneVerificationState) Type() protoreflect.EnumType
Program
type Program struct {
// Identifier. The resource name of the program.
// Format: `accounts/{account}/programs/{program}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The URL of a Merchant Center help page describing the program.
DocumentationUri string `protobuf:"bytes,2,opt,name=documentation_uri,json=documentationUri,proto3" json:"documentation_uri,omitempty"`
// Output only. The participation state of the account in the program.
State Program_State `protobuf:"varint,3,opt,name=state,proto3,enum=google.shopping.merchant.accounts.v1beta.Program_State" json:"state,omitempty"`
// Output only. The regions in which the account is actively participating in
// the program. Active regions are defined as those where all program
// requirements affecting the regions have been met.
//
// Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
// either a country where the program applies specifically to that country or
// `001` when the program applies globally.
ActiveRegionCodes []string `protobuf:"bytes,4,rep,name=active_region_codes,json=activeRegionCodes,proto3" json:"active_region_codes,omitempty"`
// Output only. The requirements that the account has not yet satisfied that
// are affecting participation in the program.
UnmetRequirements []*Program_Requirement `protobuf:"bytes,5,rep,name=unmet_requirements,json=unmetRequirements,proto3" json:"unmet_requirements,omitempty"`
// contains filtered or unexported fields
}
Defines participation in a given program for the specified account.
Programs provide a mechanism for adding functionality to merchant accounts. A typical example of this is the Free product listings program, which enables products from a merchant's store to be shown across Google for free.
func (*Program) Descriptor
Deprecated: Use Program.ProtoReflect.Descriptor instead.
func (*Program) GetActiveRegionCodes
func (*Program) GetDocumentationUri
func (*Program) GetName
func (*Program) GetState
func (x *Program) GetState() Program_State
func (*Program) GetUnmetRequirements
func (x *Program) GetUnmetRequirements() []*Program_Requirement
func (*Program) ProtoMessage
func (*Program) ProtoMessage()
func (*Program) ProtoReflect
func (x *Program) ProtoReflect() protoreflect.Message
func (*Program) Reset
func (x *Program) Reset()
func (*Program) String
Program_Requirement
type Program_Requirement struct {
// Output only. Name of the requirement.
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
// Output only. The URL of a help page describing the requirement.
DocumentationUri string `protobuf:"bytes,2,opt,name=documentation_uri,json=documentationUri,proto3" json:"documentation_uri,omitempty"`
// Output only. The regions that are currently affected by this requirement
// not being met.
//
// Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
// either a country where the program applies specifically to that country
// or `001` when the program applies globally.
AffectedRegionCodes []string `protobuf:"bytes,3,rep,name=affected_region_codes,json=affectedRegionCodes,proto3" json:"affected_region_codes,omitempty"`
// contains filtered or unexported fields
}
Defines a requirement specified for participation in the program.
func (*Program_Requirement) Descriptor
func (*Program_Requirement) Descriptor() ([]byte, []int)
Deprecated: Use Program_Requirement.ProtoReflect.Descriptor instead.
func (*Program_Requirement) GetAffectedRegionCodes
func (x *Program_Requirement) GetAffectedRegionCodes() []string
func (*Program_Requirement) GetDocumentationUri
func (x *Program_Requirement) GetDocumentationUri() string
func (*Program_Requirement) GetTitle
func (x *Program_Requirement) GetTitle() string
func (*Program_Requirement) ProtoMessage
func (*Program_Requirement) ProtoMessage()
func (*Program_Requirement) ProtoReflect
func (x *Program_Requirement) ProtoReflect() protoreflect.Message
func (*Program_Requirement) Reset
func (x *Program_Requirement) Reset()
func (*Program_Requirement) String
func (x *Program_Requirement) String() string
Program_State
type Program_State int32
Possible program participation states for the account.
Program_STATE_UNSPECIFIED, Program_NOT_ELIGIBLE, Program_ELIGIBLE, Program_ENABLED
const (
// Default value. This value is unused.
Program_STATE_UNSPECIFIED Program_State = 0
// The account is not eligible to participate in the program.
Program_NOT_ELIGIBLE Program_State = 1
// The account is eligible to participate in the program.
Program_ELIGIBLE Program_State = 2
// The program is enabled for the account.
Program_ENABLED Program_State = 3
)
func (Program_State) Descriptor
func (Program_State) Descriptor() protoreflect.EnumDescriptor
func (Program_State) Enum
func (x Program_State) Enum() *Program_State
func (Program_State) EnumDescriptor
func (Program_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use Program_State.Descriptor instead.
func (Program_State) Number
func (x Program_State) Number() protoreflect.EnumNumber
func (Program_State) String
func (x Program_State) String() string
func (Program_State) Type
func (Program_State) Type() protoreflect.EnumType
ProgramsServiceClient
type ProgramsServiceClient interface {
// Retrieves the specified program for the account.
GetProgram(ctx context.Context, in *GetProgramRequest, opts ...grpc.CallOption) (*Program, error)
// Retrieves all programs for the account.
ListPrograms(ctx context.Context, in *ListProgramsRequest, opts ...grpc.CallOption) (*ListProgramsResponse, error)
// Enable participation in the specified program for the account. Executing
// this method requires admin access.
EnableProgram(ctx context.Context, in *EnableProgramRequest, opts ...grpc.CallOption) (*Program, error)
// Disable participation in the specified program for the account. Executing
// this method requires admin access.
DisableProgram(ctx context.Context, in *DisableProgramRequest, opts ...grpc.CallOption) (*Program, error)
}
ProgramsServiceClient is the client API for ProgramsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewProgramsServiceClient
func NewProgramsServiceClient(cc grpc.ClientConnInterface) ProgramsServiceClient
ProgramsServiceServer
type ProgramsServiceServer interface {
// Retrieves the specified program for the account.
GetProgram(context.Context, *GetProgramRequest) (*Program, error)
// Retrieves all programs for the account.
ListPrograms(context.Context, *ListProgramsRequest) (*ListProgramsResponse, error)
// Enable participation in the specified program for the account. Executing
// this method requires admin access.
EnableProgram(context.Context, *EnableProgramRequest) (*Program, error)
// Disable participation in the specified program for the account. Executing
// this method requires admin access.
DisableProgram(context.Context, *DisableProgramRequest) (*Program, error)
}
ProgramsServiceServer is the server API for ProgramsService service.
RateGroup
type RateGroup struct {
ApplicableShippingLabels []string "" /* 135 byte string literal not displayed */
SingleValue *Value `protobuf:"bytes,2,opt,name=single_value,json=singleValue,proto3,oneof" json:"single_value,omitempty"`
MainTable *Table `protobuf:"bytes,3,opt,name=main_table,json=mainTable,proto3,oneof" json:"main_table,omitempty"`
Subtables []*Table `protobuf:"bytes,4,rep,name=subtables,proto3" json:"subtables,omitempty"`
CarrierRates []*CarrierRate `protobuf:"bytes,5,rep,name=carrier_rates,json=carrierRates,proto3" json:"carrier_rates,omitempty"`
Name *string `protobuf:"bytes,6,opt,name=name,proto3,oneof" json:"name,omitempty"`
}
Shipping rate group definitions. Only the last one is allowed to have an
empty applicable_shipping_labels
, which means
"everything else". The other applicable_shipping_labels
must
not overlap.
func (*RateGroup) Descriptor
Deprecated: Use RateGroup.ProtoReflect.Descriptor instead.
func (*RateGroup) GetApplicableShippingLabels
func (*RateGroup) GetCarrierRates
func (x *RateGroup) GetCarrierRates() []*CarrierRate
func (*RateGroup) GetMainTable
func (*RateGroup) GetName
func (*RateGroup) GetSingleValue
func (*RateGroup) GetSubtables
func (*RateGroup) ProtoMessage
func (*RateGroup) ProtoMessage()
func (*RateGroup) ProtoReflect
func (x *RateGroup) ProtoReflect() protoreflect.Message
func (*RateGroup) Reset
func (x *RateGroup) Reset()
func (*RateGroup) String
Region
type Region struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
DisplayName *string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3,oneof" json:"display_name,omitempty"`
PostalCodeArea *Region_PostalCodeArea `protobuf:"bytes,3,opt,name=postal_code_area,json=postalCodeArea,proto3" json:"postal_code_area,omitempty"`
GeotargetArea *Region_GeoTargetArea `protobuf:"bytes,4,opt,name=geotarget_area,json=geotargetArea,proto3" json:"geotarget_area,omitempty"`
RegionalInventoryEligible *wrapperspb.BoolValue "" /* 138 byte string literal not displayed */
ShippingEligible *wrapperspb.BoolValue `protobuf:"bytes,6,opt,name=shipping_eligible,json=shippingEligible,proto3" json:"shipping_eligible,omitempty"`
}
Represents a geographic region that you can use as a target with both the
RegionalInventory
and ShippingSettings
services. You can define regions
as collections of either postal codes or, in some countries, using predefined
geotargets. For more information, see Set up regions
for more information.
func (*Region) Descriptor
Deprecated: Use Region.ProtoReflect.Descriptor instead.
func (*Region) GetDisplayName
func (*Region) GetGeotargetArea
func (x *Region) GetGeotargetArea() *Region_GeoTargetArea
func (*Region) GetName
func (*Region) GetPostalCodeArea
func (x *Region) GetPostalCodeArea() *Region_PostalCodeArea
func (*Region) GetRegionalInventoryEligible
func (x *Region) GetRegionalInventoryEligible() *wrapperspb.BoolValue
func (*Region) GetShippingEligible
func (x *Region) GetShippingEligible() *wrapperspb.BoolValue
func (*Region) ProtoMessage
func (*Region) ProtoMessage()
func (*Region) ProtoReflect
func (x *Region) ProtoReflect() protoreflect.Message
func (*Region) Reset
func (x *Region) Reset()
func (*Region) String
Region_GeoTargetArea
type Region_GeoTargetArea struct {
GeotargetCriteriaIds []int64 "" /* 131 byte string literal not displayed */
}
A list of geotargets that defines the region area.
func (*Region_GeoTargetArea) Descriptor
func (*Region_GeoTargetArea) Descriptor() ([]byte, []int)
Deprecated: Use Region_GeoTargetArea.ProtoReflect.Descriptor instead.
func (*Region_GeoTargetArea) GetGeotargetCriteriaIds
func (x *Region_GeoTargetArea) GetGeotargetCriteriaIds() []int64
func (*Region_GeoTargetArea) ProtoMessage
func (*Region_GeoTargetArea) ProtoMessage()
func (*Region_GeoTargetArea) ProtoReflect
func (x *Region_GeoTargetArea) ProtoReflect() protoreflect.Message
func (*Region_GeoTargetArea) Reset
func (x *Region_GeoTargetArea) Reset()
func (*Region_GeoTargetArea) String
func (x *Region_GeoTargetArea) String() string
Region_PostalCodeArea
type Region_PostalCodeArea struct {
// Required. [CLDR territory
// code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
// or the country the postal code group applies to.
RegionCode string `protobuf:"bytes,1,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
// Required. A range of postal codes.
PostalCodes []*Region_PostalCodeArea_PostalCodeRange `protobuf:"bytes,2,rep,name=postal_codes,json=postalCodes,proto3" json:"postal_codes,omitempty"`
// contains filtered or unexported fields
}
A list of postal codes that defines the region area.
Note: All regions defined using postal codes are accessible through the
account's ShippingSettings.postalCodeGroups
resource.
func (*Region_PostalCodeArea) Descriptor
func (*Region_PostalCodeArea) Descriptor() ([]byte, []int)
Deprecated: Use Region_PostalCodeArea.ProtoReflect.Descriptor instead.
func (*Region_PostalCodeArea) GetPostalCodes
func (x *Region_PostalCodeArea) GetPostalCodes() []*Region_PostalCodeArea_PostalCodeRange
func (*Region_PostalCodeArea) GetRegionCode
func (x *Region_PostalCodeArea) GetRegionCode() string
func (*Region_PostalCodeArea) ProtoMessage
func (*Region_PostalCodeArea) ProtoMessage()
func (*Region_PostalCodeArea) ProtoReflect
func (x *Region_PostalCodeArea) ProtoReflect() protoreflect.Message
func (*Region_PostalCodeArea) Reset
func (x *Region_PostalCodeArea) Reset()
func (*Region_PostalCodeArea) String
func (x *Region_PostalCodeArea) String() string
Region_PostalCodeArea_PostalCodeRange
type Region_PostalCodeArea_PostalCodeRange struct {
// Required. A postal code or a pattern of the form prefix* denoting the
// inclusive lower bound of the range defining the area. Examples values:
// `94108`, `9410*`, `9*`.
Begin string `protobuf:"bytes,1,opt,name=begin,proto3" json:"begin,omitempty"`
// Optional. A postal code or a pattern of the form `prefix*` denoting the
// inclusive upper bound of the range defining the area. It must have the
// same length as postalCodeRangeBegin: if postalCodeRangeBegin is a
// postal code then postalCodeRangeEnd must be a postal code too; if
// postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a
// pattern with the same prefix length. Optional: if not set, then the
// area is defined as being all the postal codes matching
// postalCodeRangeBegin.
End string `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
// contains filtered or unexported fields
}
A range of postal codes that defines the region area.
func (*Region_PostalCodeArea_PostalCodeRange) Descriptor
func (*Region_PostalCodeArea_PostalCodeRange) Descriptor() ([]byte, []int)
Deprecated: Use Region_PostalCodeArea_PostalCodeRange.ProtoReflect.Descriptor instead.
func (*Region_PostalCodeArea_PostalCodeRange) GetBegin
func (x *Region_PostalCodeArea_PostalCodeRange) GetBegin() string
func (*Region_PostalCodeArea_PostalCodeRange) GetEnd
func (x *Region_PostalCodeArea_PostalCodeRange) GetEnd() string
func (*Region_PostalCodeArea_PostalCodeRange) ProtoMessage
func (*Region_PostalCodeArea_PostalCodeRange) ProtoMessage()
func (*Region_PostalCodeArea_PostalCodeRange) ProtoReflect
func (x *Region_PostalCodeArea_PostalCodeRange) ProtoReflect() protoreflect.Message
func (*Region_PostalCodeArea_PostalCodeRange) Reset
func (x *Region_PostalCodeArea_PostalCodeRange) Reset()
func (*Region_PostalCodeArea_PostalCodeRange) String
func (x *Region_PostalCodeArea_PostalCodeRange) String() string
RegionsServiceClient
type RegionsServiceClient interface {
// Retrieves a region defined in your Merchant Center account.
GetRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*Region, error)
// Creates a region definition in your Merchant Center account. Executing this
// method requires admin access.
CreateRegion(ctx context.Context, in *CreateRegionRequest, opts ...grpc.CallOption) (*Region, error)
// Updates a region definition in your Merchant Center account. Executing this
// method requires admin access.
UpdateRegion(ctx context.Context, in *UpdateRegionRequest, opts ...grpc.CallOption) (*Region, error)
// Deletes a region definition from your Merchant Center account. Executing
// this method requires admin access.
DeleteRegion(ctx context.Context, in *DeleteRegionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Lists the regions in your Merchant Center account.
ListRegions(ctx context.Context, in *ListRegionsRequest, opts ...grpc.CallOption) (*ListRegionsResponse, error)
}
RegionsServiceClient is the client API for RegionsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRegionsServiceClient
func NewRegionsServiceClient(cc grpc.ClientConnInterface) RegionsServiceClient
RegionsServiceServer
type RegionsServiceServer interface {
// Retrieves a region defined in your Merchant Center account.
GetRegion(context.Context, *GetRegionRequest) (*Region, error)
// Creates a region definition in your Merchant Center account. Executing this
// method requires admin access.
CreateRegion(context.Context, *CreateRegionRequest) (*Region, error)
// Updates a region definition in your Merchant Center account. Executing this
// method requires admin access.
UpdateRegion(context.Context, *UpdateRegionRequest) (*Region, error)
// Deletes a region definition from your Merchant Center account. Executing
// this method requires admin access.
DeleteRegion(context.Context, *DeleteRegionRequest) (*emptypb.Empty, error)
// Lists the regions in your Merchant Center account.
ListRegions(context.Context, *ListRegionsRequest) (*ListRegionsResponse, error)
}
RegionsServiceServer is the server API for RegionsService service.
Required
type Required struct {
// The
// [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
// that need to be accepted.
TermsOfService string `protobuf:"bytes,1,opt,name=terms_of_service,json=termsOfService,proto3" json:"terms_of_service,omitempty"`
// Full URL to the terms of service file. This field is the same as
// [TermsOfService.file_uri](TermsOfService.file_uri), it is added
// here for convenience only.
TosFileUri string `protobuf:"bytes,2,opt,name=tos_file_uri,json=tosFileUri,proto3" json:"tos_file_uri,omitempty"`
// contains filtered or unexported fields
}
Describes the terms of service which are required to be accepted.
func (*Required) Descriptor
Deprecated: Use Required.ProtoReflect.Descriptor instead.
func (*Required) GetTermsOfService
func (*Required) GetTosFileUri
func (*Required) ProtoMessage
func (*Required) ProtoMessage()
func (*Required) ProtoReflect
func (x *Required) ProtoReflect() protoreflect.Message
func (*Required) Reset
func (x *Required) Reset()
func (*Required) String
RetrieveForApplicationTermsOfServiceAgreementStateRequest
type RetrieveForApplicationTermsOfServiceAgreementStateRequest struct {
// Required. The account for which to get a TermsOfServiceAgreementState
// Format: `accounts/{account}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// contains filtered or unexported fields
}
Request message for the RetrieveForApplicationTermsOfServiceAgreementState
method.
func (*RetrieveForApplicationTermsOfServiceAgreementStateRequest) Descriptor
func (*RetrieveForApplicationTermsOfServiceAgreementStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use RetrieveForApplicationTermsOfServiceAgreementStateRequest.ProtoReflect.Descriptor instead.
func (*RetrieveForApplicationTermsOfServiceAgreementStateRequest) GetParent
func (x *RetrieveForApplicationTermsOfServiceAgreementStateRequest) GetParent() string
func (*RetrieveForApplicationTermsOfServiceAgreementStateRequest) ProtoMessage
func (*RetrieveForApplicationTermsOfServiceAgreementStateRequest) ProtoMessage()
func (*RetrieveForApplicationTermsOfServiceAgreementStateRequest) ProtoReflect
func (x *RetrieveForApplicationTermsOfServiceAgreementStateRequest) ProtoReflect() protoreflect.Message
func (*RetrieveForApplicationTermsOfServiceAgreementStateRequest) Reset
func (x *RetrieveForApplicationTermsOfServiceAgreementStateRequest) Reset()
func (*RetrieveForApplicationTermsOfServiceAgreementStateRequest) String
func (x *RetrieveForApplicationTermsOfServiceAgreementStateRequest) String() string
RetrieveLatestTermsOfServiceRequest
type RetrieveLatestTermsOfServiceRequest struct {
RegionCode string `protobuf:"bytes,1,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
Kind TermsOfServiceKind "" /* 127 byte string literal not displayed */
}
Request message for the RetrieveLatestTermsOfService
method.
func (*RetrieveLatestTermsOfServiceRequest) Descriptor
func (*RetrieveLatestTermsOfServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use RetrieveLatestTermsOfServiceRequest.ProtoReflect.Descriptor instead.
func (*RetrieveLatestTermsOfServiceRequest) GetKind
func (x *RetrieveLatestTermsOfServiceRequest) GetKind() TermsOfServiceKind
func (*RetrieveLatestTermsOfServiceRequest) GetRegionCode
func (x *RetrieveLatestTermsOfServiceRequest) GetRegionCode() string
func (*RetrieveLatestTermsOfServiceRequest) ProtoMessage
func (*RetrieveLatestTermsOfServiceRequest) ProtoMessage()
func (*RetrieveLatestTermsOfServiceRequest) ProtoReflect
func (x *RetrieveLatestTermsOfServiceRequest) ProtoReflect() protoreflect.Message
func (*RetrieveLatestTermsOfServiceRequest) Reset
func (x *RetrieveLatestTermsOfServiceRequest) Reset()
func (*RetrieveLatestTermsOfServiceRequest) String
func (x *RetrieveLatestTermsOfServiceRequest) String() string
Row
type Row struct {
// Required. The list of cells that constitute the row. Must have the same
// length as `columnHeaders` for two-dimensional tables, a length of 1 for
// one-dimensional tables.
Cells []*Value `protobuf:"bytes,1,rep,name=cells,proto3" json:"cells,omitempty"`
// contains filtered or unexported fields
}
Include a list of cells.
func (*Row) Descriptor
Deprecated: Use Row.ProtoReflect.Descriptor instead.
func (*Row) GetCells
func (*Row) ProtoMessage
func (*Row) ProtoMessage()
func (*Row) ProtoReflect
func (x *Row) ProtoReflect() protoreflect.Message
func (*Row) Reset
func (x *Row) Reset()
func (*Row) String
Service
type Service struct {
ServiceName *string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3,oneof" json:"service_name,omitempty"`
Active *bool `protobuf:"varint,2,opt,name=active,proto3,oneof" json:"active,omitempty"`
DeliveryCountries []string `protobuf:"bytes,3,rep,name=delivery_countries,json=deliveryCountries,proto3" json:"delivery_countries,omitempty"`
CurrencyCode *string `protobuf:"bytes,4,opt,name=currency_code,json=currencyCode,proto3,oneof" json:"currency_code,omitempty"`
DeliveryTime *DeliveryTime `protobuf:"bytes,5,opt,name=delivery_time,json=deliveryTime,proto3,oneof" json:"delivery_time,omitempty"`
RateGroups []*RateGroup `protobuf:"bytes,6,rep,name=rate_groups,json=rateGroups,proto3" json:"rate_groups,omitempty"`
ShipmentType *Service_ShipmentType "" /* 171 byte string literal not displayed */
MinimumOrderValue *typepb.Price `protobuf:"bytes,8,opt,name=minimum_order_value,json=minimumOrderValue,proto3,oneof" json:"minimum_order_value,omitempty"`
MinimumOrderValueTable *MinimumOrderValueTable "" /* 137 byte string literal not displayed */
StoreConfig *Service_StoreConfig `protobuf:"bytes,10,opt,name=store_config,json=storeConfig,proto3,oneof" json:"store_config,omitempty"`
LoyaltyPrograms []*Service_LoyaltyProgram `protobuf:"bytes,11,rep,name=loyalty_programs,json=loyaltyPrograms,proto3" json:"loyalty_programs,omitempty"`
}
Shipping service.
func (*Service) Descriptor
Deprecated: Use Service.ProtoReflect.Descriptor instead.
func (*Service) GetActive
func (*Service) GetCurrencyCode
func (*Service) GetDeliveryCountries
func (*Service) GetDeliveryTime
func (x *Service) GetDeliveryTime() *DeliveryTime
func (*Service) GetLoyaltyPrograms
func (x *Service) GetLoyaltyPrograms() []*Service_LoyaltyProgram
func (*Service) GetMinimumOrderValue
func (*Service) GetMinimumOrderValueTable
func (x *Service) GetMinimumOrderValueTable() *MinimumOrderValueTable
func (*Service) GetRateGroups
func (*Service) GetServiceName
func (*Service) GetShipmentType
func (x *Service) GetShipmentType() Service_ShipmentType
func (*Service) GetStoreConfig
func (x *Service) GetStoreConfig() *Service_StoreConfig
func (*Service) ProtoMessage
func (*Service) ProtoMessage()
func (*Service) ProtoReflect
func (x *Service) ProtoReflect() protoreflect.Message
func (*Service) Reset
func (x *Service) Reset()
func (*Service) String
Service_LoyaltyProgram
type Service_LoyaltyProgram struct {
// This is the loyalty program label set in your loyalty program settings in
// Merchant Center. This sub-attribute allows Google to map your loyalty
// program to eligible offers.
ProgramLabel *string `protobuf:"bytes,1,opt,name=program_label,json=programLabel,proto3,oneof" json:"program_label,omitempty"`
// Optional. Loyalty program tier of this shipping service.
LoyaltyProgramTiers []*Service_LoyaltyProgram_LoyaltyProgramTiers `protobuf:"bytes,2,rep,name=loyalty_program_tiers,json=loyaltyProgramTiers,proto3" json:"loyalty_program_tiers,omitempty"`
// contains filtered or unexported fields
}
Loyalty program provided by a merchant.
func (*Service_LoyaltyProgram) Descriptor
func (*Service_LoyaltyProgram) Descriptor() ([]byte, []int)
Deprecated: Use Service_LoyaltyProgram.ProtoReflect.Descriptor instead.
func (*Service_LoyaltyProgram) GetLoyaltyProgramTiers
func (x *Service_LoyaltyProgram) GetLoyaltyProgramTiers() []*Service_LoyaltyProgram_LoyaltyProgramTiers
func (*Service_LoyaltyProgram) GetProgramLabel
func (x *Service_LoyaltyProgram) GetProgramLabel() string
func (*Service_LoyaltyProgram) ProtoMessage
func (*Service_LoyaltyProgram) ProtoMessage()
func (*Service_LoyaltyProgram) ProtoReflect
func (x *Service_LoyaltyProgram) ProtoReflect() protoreflect.Message
func (*Service_LoyaltyProgram) Reset
func (x *Service_LoyaltyProgram) Reset()
func (*Service_LoyaltyProgram) String
func (x *Service_LoyaltyProgram) String() string
Service_LoyaltyProgram_LoyaltyProgramTiers
type Service_LoyaltyProgram_LoyaltyProgramTiers struct {
// The tier label [tier_label] sub-attribute differentiates offer level
// benefits between each tier. This value is also set in your program
// settings in Merchant Center, and is required for data source changes
// even if your loyalty program only has 1 tier.
TierLabel *string `protobuf:"bytes,1,opt,name=tier_label,json=tierLabel,proto3,oneof" json:"tier_label,omitempty"`
// contains filtered or unexported fields
}
Subset of a merchants loyalty program.
func (*Service_LoyaltyProgram_LoyaltyProgramTiers) Descriptor
func (*Service_LoyaltyProgram_LoyaltyProgramTiers) Descriptor() ([]byte, []int)
Deprecated: Use Service_LoyaltyProgram_LoyaltyProgramTiers.ProtoReflect.Descriptor instead.
func (*Service_LoyaltyProgram_LoyaltyProgramTiers) GetTierLabel
func (x *Service_LoyaltyProgram_LoyaltyProgramTiers) GetTierLabel() string
func (*Service_LoyaltyProgram_LoyaltyProgramTiers) ProtoMessage
func (*Service_LoyaltyProgram_LoyaltyProgramTiers) ProtoMessage()
func (*Service_LoyaltyProgram_LoyaltyProgramTiers) ProtoReflect
func (x *Service_LoyaltyProgram_LoyaltyProgramTiers) ProtoReflect() protoreflect.Message
func (*Service_LoyaltyProgram_LoyaltyProgramTiers) Reset
func (x *Service_LoyaltyProgram_LoyaltyProgramTiers) Reset()
func (*Service_LoyaltyProgram_LoyaltyProgramTiers) String
func (x *Service_LoyaltyProgram_LoyaltyProgramTiers) String() string
Service_ShipmentType
type Service_ShipmentType int32
Shipment type of shipping service.
Service_SHIPMENT_TYPE_UNSPECIFIED, Service_DELIVERY, Service_LOCAL_DELIVERY, Service_COLLECTION_POINT
const (
// This service did not specify shipment type.
Service_SHIPMENT_TYPE_UNSPECIFIED Service_ShipmentType = 0
// This service ships orders to an address chosen by the customer.
Service_DELIVERY Service_ShipmentType = 1
// This service ships orders to an address chosen by the customer.
// The order is shipped from a local store near by.
Service_LOCAL_DELIVERY Service_ShipmentType = 2
// This service ships orders to an address chosen by the customer.
// The order is shipped from a collection point.
Service_COLLECTION_POINT Service_ShipmentType = 3
)
func (Service_ShipmentType) Descriptor
func (Service_ShipmentType) Descriptor() protoreflect.EnumDescriptor
func (Service_ShipmentType) Enum
func (x Service_ShipmentType) Enum() *Service_ShipmentType
func (Service_ShipmentType) EnumDescriptor
func (Service_ShipmentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Service_ShipmentType.Descriptor instead.
func (Service_ShipmentType) Number
func (x Service_ShipmentType) Number() protoreflect.EnumNumber
func (Service_ShipmentType) String
func (x Service_ShipmentType) String() string
func (Service_ShipmentType) Type
func (Service_ShipmentType) Type() protoreflect.EnumType
Service_StoreConfig
type Service_StoreConfig struct {
StoreServiceType *Service_StoreConfig_StoreServiceType "" /* 201 byte string literal not displayed */
StoreCodes []string `protobuf:"bytes,2,rep,name=store_codes,json=storeCodes,proto3" json:"store_codes,omitempty"`
CutoffConfig *Service_StoreConfig_CutoffConfig `protobuf:"bytes,3,opt,name=cutoff_config,json=cutoffConfig,proto3,oneof" json:"cutoff_config,omitempty"`
ServiceRadius *Distance `protobuf:"bytes,4,opt,name=service_radius,json=serviceRadius,proto3,oneof" json:"service_radius,omitempty"`
}
A list of stores your products are delivered from. This is only valid for the local delivery shipment type.
func (*Service_StoreConfig) Descriptor
func (*Service_StoreConfig) Descriptor() ([]byte, []int)
Deprecated: Use Service_StoreConfig.ProtoReflect.Descriptor instead.
func (*Service_StoreConfig) GetCutoffConfig
func (x *Service_StoreConfig) GetCutoffConfig() *Service_StoreConfig_CutoffConfig
func (*Service_StoreConfig) GetServiceRadius
func (x *Service_StoreConfig) GetServiceRadius() *Distance
func (*Service_StoreConfig) GetStoreCodes
func (x *Service_StoreConfig) GetStoreCodes() []string
func (*Service_StoreConfig) GetStoreServiceType
func (x *Service_StoreConfig) GetStoreServiceType() Service_StoreConfig_StoreServiceType
func (*Service_StoreConfig) ProtoMessage
func (*Service_StoreConfig) ProtoMessage()
func (*Service_StoreConfig) ProtoReflect
func (x *Service_StoreConfig) ProtoReflect() protoreflect.Message
func (*Service_StoreConfig) Reset
func (x *Service_StoreConfig) Reset()
func (*Service_StoreConfig) String
func (x *Service_StoreConfig) String() string
Service_StoreConfig_CutoffConfig
type Service_StoreConfig_CutoffConfig struct {
LocalCutoffTime *Service_StoreConfig_CutoffConfig_LocalCutoffTime `protobuf:"bytes,1,opt,name=local_cutoff_time,json=localCutoffTime,proto3,oneof" json:"local_cutoff_time,omitempty"`
StoreCloseOffsetHours *int64 "" /* 135 byte string literal not displayed */
NoDeliveryPostCutoff *bool "" /* 132 byte string literal not displayed */
}
Configs related to local delivery ends for the day.
func (*Service_StoreConfig_CutoffConfig) Descriptor
func (*Service_StoreConfig_CutoffConfig) Descriptor() ([]byte, []int)
Deprecated: Use Service_StoreConfig_CutoffConfig.ProtoReflect.Descriptor instead.
func (*Service_StoreConfig_CutoffConfig) GetLocalCutoffTime
func (x *Service_StoreConfig_CutoffConfig) GetLocalCutoffTime() *Service_StoreConfig_CutoffConfig_LocalCutoffTime
func (*Service_StoreConfig_CutoffConfig) GetNoDeliveryPostCutoff
func (x *Service_StoreConfig_CutoffConfig) GetNoDeliveryPostCutoff() bool
func (*Service_StoreConfig_CutoffConfig) GetStoreCloseOffsetHours
func (x *Service_StoreConfig_CutoffConfig) GetStoreCloseOffsetHours() int64
func (*Service_StoreConfig_CutoffConfig) ProtoMessage
func (*Service_StoreConfig_CutoffConfig) ProtoMessage()
func (*Service_StoreConfig_CutoffConfig) ProtoReflect
func (x *Service_StoreConfig_CutoffConfig) ProtoReflect() protoreflect.Message
func (*Service_StoreConfig_CutoffConfig) Reset
func (x *Service_StoreConfig_CutoffConfig) Reset()
func (*Service_StoreConfig_CutoffConfig) String
func (x *Service_StoreConfig_CutoffConfig) String() string
Service_StoreConfig_CutoffConfig_LocalCutoffTime
type Service_StoreConfig_CutoffConfig_LocalCutoffTime struct {
// Hour local delivery orders must be placed by to process the same
// day.
Hour *int64 `protobuf:"varint,1,opt,name=hour,proto3,oneof" json:"hour,omitempty"`
// Minute local delivery orders must be placed by to process the same
// day.
Minute *int64 `protobuf:"varint,2,opt,name=minute,proto3,oneof" json:"minute,omitempty"`
// contains filtered or unexported fields
}
Time that local delivery ends for the day.
func (*Service_StoreConfig_CutoffConfig_LocalCutoffTime) Descriptor
func (*Service_StoreConfig_CutoffConfig_LocalCutoffTime) Descriptor() ([]byte, []int)
Deprecated: Use Service_StoreConfig_CutoffConfig_LocalCutoffTime.ProtoReflect.Descriptor instead.
func (*Service_StoreConfig_CutoffConfig_LocalCutoffTime) GetHour
func (x *Service_StoreConfig_CutoffConfig_LocalCutoffTime) GetHour() int64
func (*Service_StoreConfig_CutoffConfig_LocalCutoffTime) GetMinute
func (x *Service_StoreConfig_CutoffConfig_LocalCutoffTime) GetMinute() int64
func (*Service_StoreConfig_CutoffConfig_LocalCutoffTime) ProtoMessage
func (*Service_StoreConfig_CutoffConfig_LocalCutoffTime) ProtoMessage()
func (*Service_StoreConfig_CutoffConfig_LocalCutoffTime) ProtoReflect
func (x *Service_StoreConfig_CutoffConfig_LocalCutoffTime) ProtoReflect() protoreflect.Message
func (*Service_StoreConfig_CutoffConfig_LocalCutoffTime) Reset
func (x *Service_StoreConfig_CutoffConfig_LocalCutoffTime) Reset()
func (*Service_StoreConfig_CutoffConfig_LocalCutoffTime) String
func (x *Service_StoreConfig_CutoffConfig_LocalCutoffTime) String() string
Service_StoreConfig_StoreServiceType
type Service_StoreConfig_StoreServiceType int32
Indicates whether all stores, or selected stores, listed by the merchant provide local delivery.
Service_StoreConfig_STORE_SERVICE_TYPE_UNSPECIFIED, Service_StoreConfig_ALL_STORES, Service_StoreConfig_SELECTED_STORES
const (
// Did not specify store service type.
Service_StoreConfig_STORE_SERVICE_TYPE_UNSPECIFIED Service_StoreConfig_StoreServiceType = 0
// Indicates whether all stores, current and future, listed by this
// merchant provide local delivery.
Service_StoreConfig_ALL_STORES Service_StoreConfig_StoreServiceType = 1
// Indicates that only the stores listed in `store_codes` are eligible
// for local delivery.
Service_StoreConfig_SELECTED_STORES Service_StoreConfig_StoreServiceType = 2
)
func (Service_StoreConfig_StoreServiceType) Descriptor
func (Service_StoreConfig_StoreServiceType) Descriptor() protoreflect.EnumDescriptor
func (Service_StoreConfig_StoreServiceType) Enum
func (x Service_StoreConfig_StoreServiceType) Enum() *Service_StoreConfig_StoreServiceType
func (Service_StoreConfig_StoreServiceType) EnumDescriptor
func (Service_StoreConfig_StoreServiceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Service_StoreConfig_StoreServiceType.Descriptor instead.
func (Service_StoreConfig_StoreServiceType) Number
func (x Service_StoreConfig_StoreServiceType) Number() protoreflect.EnumNumber
func (Service_StoreConfig_StoreServiceType) String
func (x Service_StoreConfig_StoreServiceType) String() string
func (Service_StoreConfig_StoreServiceType) Type
func (Service_StoreConfig_StoreServiceType) Type() protoreflect.EnumType
ShippingSettings
type ShippingSettings struct {
// Identifier. The resource name of the shipping setting.
// Format: `accounts/{account}/shippingSetting`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The target account's list of services.
Services []*Service `protobuf:"bytes,2,rep,name=services,proto3" json:"services,omitempty"`
// Optional. A list of warehouses which can be referred to in `services`.
Warehouses []*Warehouse `protobuf:"bytes,3,rep,name=warehouses,proto3" json:"warehouses,omitempty"`
// Required. This field is used for avoid async issue. Make sure shipping
// setting data
//
// didn't change between get call and insert call. The user should do
// following steps:
//
// 1. Set etag field as empty string for initial shipping setting creation.
//
// 2. After initial creation, call get method to obtain an etag and current
// shipping setting data before call insert.
//
// 3. Modify to wanted shipping setting information.
//
// 4. Call insert method with the wanted shipping setting information with
// the etag obtained from step 2.
//
// 5. If shipping setting data changed between step 2 and step 4. Insert
// request will fail because the etag changes every time the shipping setting
// data changes. User should repeate step 2-4 with the new etag.
Etag string `protobuf:"bytes,4,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}
The merchant account's [shipping setting]((https://support.google.com/merchants/answer/6069284).
func (*ShippingSettings) Descriptor
func (*ShippingSettings) Descriptor() ([]byte, []int)
Deprecated: Use ShippingSettings.ProtoReflect.Descriptor instead.
func (*ShippingSettings) GetEtag
func (x *ShippingSettings) GetEtag() string
func (*ShippingSettings) GetName
func (x *ShippingSettings) GetName() string
func (*ShippingSettings) GetServices
func (x *ShippingSettings) GetServices() []*Service
func (*ShippingSettings) GetWarehouses
func (x *ShippingSettings) GetWarehouses() []*Warehouse
func (*ShippingSettings) ProtoMessage
func (*ShippingSettings) ProtoMessage()
func (*ShippingSettings) ProtoReflect
func (x *ShippingSettings) ProtoReflect() protoreflect.Message
func (*ShippingSettings) Reset
func (x *ShippingSettings) Reset()
func (*ShippingSettings) String
func (x *ShippingSettings) String() string
ShippingSettingsServiceClient
type ShippingSettingsServiceClient interface {
// Retrieve shipping setting information.
GetShippingSettings(ctx context.Context, in *GetShippingSettingsRequest, opts ...grpc.CallOption) (*ShippingSettings, error)
// Replace the shipping setting of a merchant with the request shipping
// setting. Executing this method requires admin access.
InsertShippingSettings(ctx context.Context, in *InsertShippingSettingsRequest, opts ...grpc.CallOption) (*ShippingSettings, error)
}
ShippingSettingsServiceClient is the client API for ShippingSettingsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewShippingSettingsServiceClient
func NewShippingSettingsServiceClient(cc grpc.ClientConnInterface) ShippingSettingsServiceClient
ShippingSettingsServiceServer
type ShippingSettingsServiceServer interface {
// Retrieve shipping setting information.
GetShippingSettings(context.Context, *GetShippingSettingsRequest) (*ShippingSettings, error)
// Replace the shipping setting of a merchant with the request shipping
// setting. Executing this method requires admin access.
InsertShippingSettings(context.Context, *InsertShippingSettingsRequest) (*ShippingSettings, error)
}
ShippingSettingsServiceServer is the server API for ShippingSettingsService service.
Table
type Table struct {
// Name of the table. Required for subtables, ignored for the main table.
Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
// Required. Headers of the table's rows.
RowHeaders *Headers `protobuf:"bytes,2,opt,name=row_headers,json=rowHeaders,proto3,oneof" json:"row_headers,omitempty"`
// Headers of the table's columns. Optional: if not set then the table has
// only one dimension.
ColumnHeaders *Headers `protobuf:"bytes,3,opt,name=column_headers,json=columnHeaders,proto3,oneof" json:"column_headers,omitempty"`
// Required. The list of rows that constitute the table. Must have the same
// length as `row_headers`.
Rows []*Row `protobuf:"bytes,4,rep,name=rows,proto3" json:"rows,omitempty"`
// contains filtered or unexported fields
}
A table defining the rate group, when single_value
is not
expressive enough.
func (*Table) Descriptor
Deprecated: Use Table.ProtoReflect.Descriptor instead.
func (*Table) GetColumnHeaders
func (*Table) GetName
func (*Table) GetRowHeaders
func (*Table) GetRows
func (*Table) ProtoMessage
func (*Table) ProtoMessage()
func (*Table) ProtoReflect
func (x *Table) ProtoReflect() protoreflect.Message
func (*Table) Reset
func (x *Table) Reset()
func (*Table) String
TaxRule
type TaxRule struct {
// Describe the location through either postal code range or a criteria id.
//
// Types that are assignable to Location:
//
// *TaxRule_LocationId
// *TaxRule_PostCodeRange
Location isTaxRule_Location `protobuf_oneof:"location"`
// What is the way to calculate tax rate for deliveries to this admin's area.
// Can only be set on US states.
//
// Types that are assignable to RateCalculation:
//
// *TaxRule_UseGoogleRate
// *TaxRule_SelfSpecifiedRateMicros
RateCalculation isTaxRule_RateCalculation `protobuf_oneof:"rate_calculation"`
// Region code in which this rule is applicable
RegionCode string `protobuf:"bytes,1,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
// If set, shipping charge is taxed (at the same rate as product) when
// delivering to this admin's area.
// Can only be set on US states without category.
ShippingTaxed bool `protobuf:"varint,6,opt,name=shipping_taxed,json=shippingTaxed,proto3" json:"shipping_taxed,omitempty"`
// Required. Time period when this rule is effective. If the duration is
// missing from effective_time listed, then it is open ended to the future.
// The start of this time period is inclusive, and the end is exclusive.
EffectiveTimePeriod *interval.Interval `protobuf:"bytes,7,opt,name=effective_time_period,json=effectiveTimePeriod,proto3" json:"effective_time_period,omitempty"`
// contains filtered or unexported fields
}
Primary type convension
percent micro : 100% = 1 000 000 and 1% = 10 000
cannot be negative.
Information about tax nexus and related parameters applicable to orders delivered to the area covered by a single tax admin. Nexus is created when a merchant is doing business in an area administered by tax admin (only US states are supported for nexus configuration). If merchant has nexus in a US state, merchant needs to pay tax to all tax authorities associated with the shipping destination. Next Id : 8
func (*TaxRule) Descriptor
Deprecated: Use TaxRule.ProtoReflect.Descriptor instead.
func (*TaxRule) GetEffectiveTimePeriod
func (*TaxRule) GetLocation
func (m *TaxRule) GetLocation() isTaxRule_Location
func (*TaxRule) GetLocationId
func (*TaxRule) GetPostCodeRange
func (x *TaxRule) GetPostCodeRange() *TaxRule_TaxPostalCodeRange
func (*TaxRule) GetRateCalculation
func (m *TaxRule) GetRateCalculation() isTaxRule_RateCalculation
func (*TaxRule) GetRegionCode
func (*TaxRule) GetSelfSpecifiedRateMicros
func (*TaxRule) GetShippingTaxed
func (*TaxRule) GetUseGoogleRate
func (*TaxRule) ProtoMessage
func (*TaxRule) ProtoMessage()
func (*TaxRule) ProtoReflect
func (x *TaxRule) ProtoReflect() protoreflect.Message
func (*TaxRule) Reset
func (x *TaxRule) Reset()
func (*TaxRule) String
TaxRule_LocationId
type TaxRule_LocationId struct {
// The admin_id or criteria_id of the region in which this rule is
// applicable.
LocationId int64 `protobuf:"varint,2,opt,name=location_id,json=locationId,proto3,oneof"`
}
TaxRule_PostCodeRange
type TaxRule_PostCodeRange struct {
// The range of postal codes in which this rule is applicable.
PostCodeRange *TaxRule_TaxPostalCodeRange `protobuf:"bytes,3,opt,name=post_code_range,json=postCodeRange,proto3,oneof"`
}
TaxRule_SelfSpecifiedRateMicros
type TaxRule_SelfSpecifiedRateMicros struct {
// A fixed rate specified in micros, where 100% = 1_000_000.
// Suitable for origin-based states.
SelfSpecifiedRateMicros int64 `protobuf:"varint,5,opt,name=self_specified_rate_micros,json=selfSpecifiedRateMicros,proto3,oneof"`
}
TaxRule_TaxPostalCodeRange
type TaxRule_TaxPostalCodeRange struct {
// Required. The start of the postal code range, which is also the smallest
// in the range.
Start string `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
// The end of the postal code range. Will be the same as start if not
// specified.
End string `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
// contains filtered or unexported fields
}
A range of postal codes that defines the area.
func (*TaxRule_TaxPostalCodeRange) Descriptor
func (*TaxRule_TaxPostalCodeRange) Descriptor() ([]byte, []int)
Deprecated: Use TaxRule_TaxPostalCodeRange.ProtoReflect.Descriptor instead.
func (*TaxRule_TaxPostalCodeRange) GetEnd
func (x *TaxRule_TaxPostalCodeRange) GetEnd() string
func (*TaxRule_TaxPostalCodeRange) GetStart
func (x *TaxRule_TaxPostalCodeRange) GetStart() string
func (*TaxRule_TaxPostalCodeRange) ProtoMessage
func (*TaxRule_TaxPostalCodeRange) ProtoMessage()
func (*TaxRule_TaxPostalCodeRange) ProtoReflect
func (x *TaxRule_TaxPostalCodeRange) ProtoReflect() protoreflect.Message
func (*TaxRule_TaxPostalCodeRange) Reset
func (x *TaxRule_TaxPostalCodeRange) Reset()
func (*TaxRule_TaxPostalCodeRange) String
func (x *TaxRule_TaxPostalCodeRange) String() string
TaxRule_UseGoogleRate
type TaxRule_UseGoogleRate struct {
// Rate that depends on delivery location: if merchant has a nexus in
// corresponding US state, rates from authorities with jurisdiction over
// delivery area are added up.
UseGoogleRate bool `protobuf:"varint,4,opt,name=use_google_rate,json=useGoogleRate,proto3,oneof"`
}
TermsOfService
type TermsOfService struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
RegionCode string `protobuf:"bytes,2,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
Kind TermsOfServiceKind "" /* 127 byte string literal not displayed */
FileUri *string `protobuf:"bytes,4,opt,name=file_uri,json=fileUri,proto3,oneof" json:"file_uri,omitempty"`
External bool `protobuf:"varint,5,opt,name=external,proto3" json:"external,omitempty"`
}
A TermsOfService
.
func (*TermsOfService) Descriptor
func (*TermsOfService) Descriptor() ([]byte, []int)
Deprecated: Use TermsOfService.ProtoReflect.Descriptor instead.
func (*TermsOfService) GetExternal
func (x *TermsOfService) GetExternal() bool
func (*TermsOfService) GetFileUri
func (x *TermsOfService) GetFileUri() string
func (*TermsOfService) GetKind
func (x *TermsOfService) GetKind() TermsOfServiceKind
func (*TermsOfService) GetName
func (x *TermsOfService) GetName() string
func (*TermsOfService) GetRegionCode
func (x *TermsOfService) GetRegionCode() string
func (*TermsOfService) ProtoMessage
func (*TermsOfService) ProtoMessage()
func (*TermsOfService) ProtoReflect
func (x *TermsOfService) ProtoReflect() protoreflect.Message
func (*TermsOfService) Reset
func (x *TermsOfService) Reset()
func (*TermsOfService) String
func (x *TermsOfService) String() string
TermsOfServiceAgreementState
type TermsOfServiceAgreementState struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
RegionCode string `protobuf:"bytes,2,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
TermsOfServiceKind TermsOfServiceKind "" /* 185 byte string literal not displayed */
Accepted *Accepted `protobuf:"bytes,4,opt,name=accepted,proto3,oneof" json:"accepted,omitempty"`
Required *Required `protobuf:"bytes,5,opt,name=required,proto3,oneof" json:"required,omitempty"`
}
This resource represents the agreement state for a given account and terms of service kind. The state is as follows:
- If the merchant has accepted a terms of service: accepted will be populated, otherwise it will be empty
- If the merchant must sign a terms of service: required will be populated, otherwise it will be empty.
Note that both required and
accepted can be present. In this
case the accepted
terms of services will have an expiration date set in the
valid_until field. The required
terms of services
need to be accepted before valid_until
in order for the account to continue
having a valid agreement. When accepting new terms of services we expect 3Ps
to display the text associated with the given terms of service agreement (the
url to the file containing the text is added in the Required message below as
tos_file_uri. The actual acceptance of the terms of
service is done by calling accept on the TermsOfService
resource.
func (*TermsOfServiceAgreementState) Descriptor
func (*TermsOfServiceAgreementState) Descriptor() ([]byte, []int)
Deprecated: Use TermsOfServiceAgreementState.ProtoReflect.Descriptor instead.
func (*TermsOfServiceAgreementState) GetAccepted
func (x *TermsOfServiceAgreementState) GetAccepted() *Accepted
func (*TermsOfServiceAgreementState) GetName
func (x *TermsOfServiceAgreementState) GetName() string
func (*TermsOfServiceAgreementState) GetRegionCode
func (x *TermsOfServiceAgreementState) GetRegionCode() string
func (*TermsOfServiceAgreementState) GetRequired
func (x *TermsOfServiceAgreementState) GetRequired() *Required
func (*TermsOfServiceAgreementState) GetTermsOfServiceKind
func (x *TermsOfServiceAgreementState) GetTermsOfServiceKind() TermsOfServiceKind
func (*TermsOfServiceAgreementState) ProtoMessage
func (*TermsOfServiceAgreementState) ProtoMessage()
func (*TermsOfServiceAgreementState) ProtoReflect
func (x *TermsOfServiceAgreementState) ProtoReflect() protoreflect.Message
func (*TermsOfServiceAgreementState) Reset
func (x *TermsOfServiceAgreementState) Reset()
func (*TermsOfServiceAgreementState) String
func (x *TermsOfServiceAgreementState) String() string
TermsOfServiceAgreementStateServiceClient
type TermsOfServiceAgreementStateServiceClient interface {
// Returns the state of a terms of service agreement.
GetTermsOfServiceAgreementState(ctx context.Context, in *GetTermsOfServiceAgreementStateRequest, opts ...grpc.CallOption) (*TermsOfServiceAgreementState, error)
// Retrieves the state of the agreement for the application terms of service.
RetrieveForApplicationTermsOfServiceAgreementState(ctx context.Context, in *RetrieveForApplicationTermsOfServiceAgreementStateRequest, opts ...grpc.CallOption) (*TermsOfServiceAgreementState, error)
}
TermsOfServiceAgreementStateServiceClient is the client API for TermsOfServiceAgreementStateService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTermsOfServiceAgreementStateServiceClient
func NewTermsOfServiceAgreementStateServiceClient(cc grpc.ClientConnInterface) TermsOfServiceAgreementStateServiceClient
TermsOfServiceAgreementStateServiceServer
type TermsOfServiceAgreementStateServiceServer interface {
// Returns the state of a terms of service agreement.
GetTermsOfServiceAgreementState(context.Context, *GetTermsOfServiceAgreementStateRequest) (*TermsOfServiceAgreementState, error)
// Retrieves the state of the agreement for the application terms of service.
RetrieveForApplicationTermsOfServiceAgreementState(context.Context, *RetrieveForApplicationTermsOfServiceAgreementStateRequest) (*TermsOfServiceAgreementState, error)
}
TermsOfServiceAgreementStateServiceServer is the server API for TermsOfServiceAgreementStateService service.
TermsOfServiceKind
type TermsOfServiceKind int32
The TermsOfService Kind.
TermsOfServiceKind_TERMS_OF_SERVICE_KIND_UNSPECIFIED, TermsOfServiceKind_MERCHANT_CENTER
const (
// Default value. This value is unused.
TermsOfServiceKind_TERMS_OF_SERVICE_KIND_UNSPECIFIED TermsOfServiceKind = 0
// Merchant Center application.
TermsOfServiceKind_MERCHANT_CENTER TermsOfServiceKind = 1
)
func (TermsOfServiceKind) Descriptor
func (TermsOfServiceKind) Descriptor() protoreflect.EnumDescriptor
func (TermsOfServiceKind) Enum
func (x TermsOfServiceKind) Enum() *TermsOfServiceKind
func (TermsOfServiceKind) EnumDescriptor
func (TermsOfServiceKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use TermsOfServiceKind.Descriptor instead.
func (TermsOfServiceKind) Number
func (x TermsOfServiceKind) Number() protoreflect.EnumNumber
func (TermsOfServiceKind) String
func (x TermsOfServiceKind) String() string
func (TermsOfServiceKind) Type
func (TermsOfServiceKind) Type() protoreflect.EnumType
TermsOfServiceServiceClient
type TermsOfServiceServiceClient interface {
// Retrieves the `TermsOfService` associated with the provided version.
GetTermsOfService(ctx context.Context, in *GetTermsOfServiceRequest, opts ...grpc.CallOption) (*TermsOfService, error)
// Retrieves the latest version of the `TermsOfService` for a given `kind` and
// `region_code`.
RetrieveLatestTermsOfService(ctx context.Context, in *RetrieveLatestTermsOfServiceRequest, opts ...grpc.CallOption) (*TermsOfService, error)
// Accepts a `TermsOfService`. Executing this method requires admin access.
AcceptTermsOfService(ctx context.Context, in *AcceptTermsOfServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
TermsOfServiceServiceClient is the client API for TermsOfServiceService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTermsOfServiceServiceClient
func NewTermsOfServiceServiceClient(cc grpc.ClientConnInterface) TermsOfServiceServiceClient
TermsOfServiceServiceServer
type TermsOfServiceServiceServer interface {
// Retrieves the `TermsOfService` associated with the provided version.
GetTermsOfService(context.Context, *GetTermsOfServiceRequest) (*TermsOfService, error)
// Retrieves the latest version of the `TermsOfService` for a given `kind` and
// `region_code`.
RetrieveLatestTermsOfService(context.Context, *RetrieveLatestTermsOfServiceRequest) (*TermsOfService, error)
// Accepts a `TermsOfService`. Executing this method requires admin access.
AcceptTermsOfService(context.Context, *AcceptTermsOfServiceRequest) (*emptypb.Empty, error)
}
TermsOfServiceServiceServer is the server API for TermsOfServiceService service.
TransitTable
type TransitTable struct {
// Required. A list of region names
// [Region.name][google.shopping.merchant.accounts.v1beta.Region.name] . The
// last value can be
// `"all other locations"`. Example:
// `["zone 1", "zone 2", "all other locations"]`. The referred
// postal code groups must match the delivery country of the service.
PostalCodeGroupNames []string `protobuf:"bytes,1,rep,name=postal_code_group_names,json=postalCodeGroupNames,proto3" json:"postal_code_group_names,omitempty"`
// Required. A list of transit time labels. The last value can be
// `"all other labels"`. Example:
// `["food", "electronics", "all other labels"]`.
TransitTimeLabels []string `protobuf:"bytes,2,rep,name=transit_time_labels,json=transitTimeLabels,proto3" json:"transit_time_labels,omitempty"`
// Required. If there's only one dimension set of `postal_code_group_names` or
// `transit_time_labels`, there are multiple rows each with one value
// for that dimension. If there are two dimensions, each row corresponds to a
// `postal_code_group_names`, and columns (values) to a
// `transit_time_labels`.
Rows []*TransitTable_TransitTimeRow `protobuf:"bytes,3,rep,name=rows,proto3" json:"rows,omitempty"`
// contains filtered or unexported fields
}
Transit time table, number of business days spent in transit based on row
and column dimensions. Either min_transit_days
, max_transit_days
or
transit_time_table
can be set, but not both.
func (*TransitTable) Descriptor
func (*TransitTable) Descriptor() ([]byte, []int)
Deprecated: Use TransitTable.ProtoReflect.Descriptor instead.
func (*TransitTable) GetPostalCodeGroupNames
func (x *TransitTable) GetPostalCodeGroupNames() []string
func (*TransitTable) GetRows
func (x *TransitTable) GetRows() []*TransitTable_TransitTimeRow
func (*TransitTable) GetTransitTimeLabels
func (x *TransitTable) GetTransitTimeLabels() []string
func (*TransitTable) ProtoMessage
func (*TransitTable) ProtoMessage()
func (*TransitTable) ProtoReflect
func (x *TransitTable) ProtoReflect() protoreflect.Message
func (*TransitTable) Reset
func (x *TransitTable) Reset()
func (*TransitTable) String
func (x *TransitTable) String() string
TransitTable_TransitTimeRow
type TransitTable_TransitTimeRow struct {
// Required. Transit time range (min-max) in business days.
Values []*TransitTable_TransitTimeRow_TransitTimeValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}
If there's only one dimension set of postal_code_group_names
or
transit_time_labels
, there are multiple rows each with one value
for that dimension. If there are two dimensions, each row corresponds to a
postal_code_group_names
, and columns (values) to a
transit_time_labels
.
func (*TransitTable_TransitTimeRow) Descriptor
func (*TransitTable_TransitTimeRow) Descriptor() ([]byte, []int)
Deprecated: Use TransitTable_TransitTimeRow.ProtoReflect.Descriptor instead.
func (*TransitTable_TransitTimeRow) GetValues
func (x *TransitTable_TransitTimeRow) GetValues() []*TransitTable_TransitTimeRow_TransitTimeValue
func (*TransitTable_TransitTimeRow) ProtoMessage
func (*TransitTable_TransitTimeRow) ProtoMessage()
func (*TransitTable_TransitTimeRow) ProtoReflect
func (x *TransitTable_TransitTimeRow) ProtoReflect() protoreflect.Message
func (*TransitTable_TransitTimeRow) Reset
func (x *TransitTable_TransitTimeRow) Reset()
func (*TransitTable_TransitTimeRow) String
func (x *TransitTable_TransitTimeRow) String() string
TransitTable_TransitTimeRow_TransitTimeValue
type TransitTable_TransitTimeRow_TransitTimeValue struct {
// Minimum transit time range in business days. 0 means same
// day delivery, 1 means next day delivery.
MinTransitDays *int32 `protobuf:"varint,1,opt,name=min_transit_days,json=minTransitDays,proto3,oneof" json:"min_transit_days,omitempty"`
// Must be greater than or equal to `min_transit_days`.
MaxTransitDays *int32 `protobuf:"varint,2,opt,name=max_transit_days,json=maxTransitDays,proto3,oneof" json:"max_transit_days,omitempty"`
// contains filtered or unexported fields
}
Transit time range (min-max) in business days.
func (*TransitTable_TransitTimeRow_TransitTimeValue) Descriptor
func (*TransitTable_TransitTimeRow_TransitTimeValue) Descriptor() ([]byte, []int)
Deprecated: Use TransitTable_TransitTimeRow_TransitTimeValue.ProtoReflect.Descriptor instead.
func (*TransitTable_TransitTimeRow_TransitTimeValue) GetMaxTransitDays
func (x *TransitTable_TransitTimeRow_TransitTimeValue) GetMaxTransitDays() int32
func (*TransitTable_TransitTimeRow_TransitTimeValue) GetMinTransitDays
func (x *TransitTable_TransitTimeRow_TransitTimeValue) GetMinTransitDays() int32
func (*TransitTable_TransitTimeRow_TransitTimeValue) ProtoMessage
func (*TransitTable_TransitTimeRow_TransitTimeValue) ProtoMessage()
func (*TransitTable_TransitTimeRow_TransitTimeValue) ProtoReflect
func (x *TransitTable_TransitTimeRow_TransitTimeValue) ProtoReflect() protoreflect.Message
func (*TransitTable_TransitTimeRow_TransitTimeValue) Reset
func (x *TransitTable_TransitTimeRow_TransitTimeValue) Reset()
func (*TransitTable_TransitTimeRow_TransitTimeValue) String
func (x *TransitTable_TransitTimeRow_TransitTimeValue) String() string
UnclaimHomepageRequest
type UnclaimHomepageRequest struct {
// Required. The name of the homepage to unclaim.
// Format: `accounts/{account}/homepage`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the UnclaimHomepage
method.
func (*UnclaimHomepageRequest) Descriptor
func (*UnclaimHomepageRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnclaimHomepageRequest.ProtoReflect.Descriptor instead.
func (*UnclaimHomepageRequest) GetName
func (x *UnclaimHomepageRequest) GetName() string
func (*UnclaimHomepageRequest) ProtoMessage
func (*UnclaimHomepageRequest) ProtoMessage()
func (*UnclaimHomepageRequest) ProtoReflect
func (x *UnclaimHomepageRequest) ProtoReflect() protoreflect.Message
func (*UnclaimHomepageRequest) Reset
func (x *UnclaimHomepageRequest) Reset()
func (*UnclaimHomepageRequest) String
func (x *UnclaimHomepageRequest) String() string
UnimplementedAccountIssueServiceServer
type UnimplementedAccountIssueServiceServer struct {
}
UnimplementedAccountIssueServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccountIssueServiceServer) ListAccountIssues
func (*UnimplementedAccountIssueServiceServer) ListAccountIssues(context.Context, *ListAccountIssuesRequest) (*ListAccountIssuesResponse, error)
UnimplementedAccountTaxServiceServer
type UnimplementedAccountTaxServiceServer struct {
}
UnimplementedAccountTaxServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccountTaxServiceServer) GetAccountTax
func (*UnimplementedAccountTaxServiceServer) GetAccountTax(context.Context, *GetAccountTaxRequest) (*AccountTax, error)
func (*UnimplementedAccountTaxServiceServer) ListAccountTax
func (*UnimplementedAccountTaxServiceServer) ListAccountTax(context.Context, *ListAccountTaxRequest) (*ListAccountTaxResponse, error)
func (*UnimplementedAccountTaxServiceServer) UpdateAccountTax
func (*UnimplementedAccountTaxServiceServer) UpdateAccountTax(context.Context, *UpdateAccountTaxRequest) (*AccountTax, error)
UnimplementedAccountsServiceServer
type UnimplementedAccountsServiceServer struct {
}
UnimplementedAccountsServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccountsServiceServer) CreateAndConfigureAccount
func (*UnimplementedAccountsServiceServer) CreateAndConfigureAccount(context.Context, *CreateAndConfigureAccountRequest) (*Account, error)
func (*UnimplementedAccountsServiceServer) DeleteAccount
func (*UnimplementedAccountsServiceServer) DeleteAccount(context.Context, *DeleteAccountRequest) (*emptypb.Empty, error)
func (*UnimplementedAccountsServiceServer) GetAccount
func (*UnimplementedAccountsServiceServer) GetAccount(context.Context, *GetAccountRequest) (*Account, error)
func (*UnimplementedAccountsServiceServer) ListAccounts
func (*UnimplementedAccountsServiceServer) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
func (*UnimplementedAccountsServiceServer) ListSubAccounts
func (*UnimplementedAccountsServiceServer) ListSubAccounts(context.Context, *ListSubAccountsRequest) (*ListSubAccountsResponse, error)
func (*UnimplementedAccountsServiceServer) UpdateAccount
func (*UnimplementedAccountsServiceServer) UpdateAccount(context.Context, *UpdateAccountRequest) (*Account, error)
UnimplementedBusinessIdentityServiceServer
type UnimplementedBusinessIdentityServiceServer struct {
}
UnimplementedBusinessIdentityServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedBusinessIdentityServiceServer) GetBusinessIdentity
func (*UnimplementedBusinessIdentityServiceServer) GetBusinessIdentity(context.Context, *GetBusinessIdentityRequest) (*BusinessIdentity, error)
func (*UnimplementedBusinessIdentityServiceServer) UpdateBusinessIdentity
func (*UnimplementedBusinessIdentityServiceServer) UpdateBusinessIdentity(context.Context, *UpdateBusinessIdentityRequest) (*BusinessIdentity, error)
UnimplementedBusinessInfoServiceServer
type UnimplementedBusinessInfoServiceServer struct {
}
UnimplementedBusinessInfoServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedBusinessInfoServiceServer) GetBusinessInfo
func (*UnimplementedBusinessInfoServiceServer) GetBusinessInfo(context.Context, *GetBusinessInfoRequest) (*BusinessInfo, error)
func (*UnimplementedBusinessInfoServiceServer) UpdateBusinessInfo
func (*UnimplementedBusinessInfoServiceServer) UpdateBusinessInfo(context.Context, *UpdateBusinessInfoRequest) (*BusinessInfo, error)
UnimplementedEmailPreferencesServiceServer
type UnimplementedEmailPreferencesServiceServer struct {
}
UnimplementedEmailPreferencesServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedEmailPreferencesServiceServer) GetEmailPreferences
func (*UnimplementedEmailPreferencesServiceServer) GetEmailPreferences(context.Context, *GetEmailPreferencesRequest) (*EmailPreferences, error)
func (*UnimplementedEmailPreferencesServiceServer) UpdateEmailPreferences
func (*UnimplementedEmailPreferencesServiceServer) UpdateEmailPreferences(context.Context, *UpdateEmailPreferencesRequest) (*EmailPreferences, error)
UnimplementedHomepageServiceServer
type UnimplementedHomepageServiceServer struct {
}
UnimplementedHomepageServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedHomepageServiceServer) ClaimHomepage
func (*UnimplementedHomepageServiceServer) ClaimHomepage(context.Context, *ClaimHomepageRequest) (*Homepage, error)
func (*UnimplementedHomepageServiceServer) GetHomepage
func (*UnimplementedHomepageServiceServer) GetHomepage(context.Context, *GetHomepageRequest) (*Homepage, error)
func (*UnimplementedHomepageServiceServer) UnclaimHomepage
func (*UnimplementedHomepageServiceServer) UnclaimHomepage(context.Context, *UnclaimHomepageRequest) (*Homepage, error)
func (*UnimplementedHomepageServiceServer) UpdateHomepage
func (*UnimplementedHomepageServiceServer) UpdateHomepage(context.Context, *UpdateHomepageRequest) (*Homepage, error)
UnimplementedOnlineReturnPolicyServiceServer
type UnimplementedOnlineReturnPolicyServiceServer struct {
}
UnimplementedOnlineReturnPolicyServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedOnlineReturnPolicyServiceServer) GetOnlineReturnPolicy
func (*UnimplementedOnlineReturnPolicyServiceServer) GetOnlineReturnPolicy(context.Context, *GetOnlineReturnPolicyRequest) (*OnlineReturnPolicy, error)
func (*UnimplementedOnlineReturnPolicyServiceServer) ListOnlineReturnPolicies
func (*UnimplementedOnlineReturnPolicyServiceServer) ListOnlineReturnPolicies(context.Context, *ListOnlineReturnPoliciesRequest) (*ListOnlineReturnPoliciesResponse, error)
UnimplementedProgramsServiceServer
type UnimplementedProgramsServiceServer struct {
}
UnimplementedProgramsServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedProgramsServiceServer) DisableProgram
func (*UnimplementedProgramsServiceServer) DisableProgram(context.Context, *DisableProgramRequest) (*Program, error)
func (*UnimplementedProgramsServiceServer) EnableProgram
func (*UnimplementedProgramsServiceServer) EnableProgram(context.Context, *EnableProgramRequest) (*Program, error)
func (*UnimplementedProgramsServiceServer) GetProgram
func (*UnimplementedProgramsServiceServer) GetProgram(context.Context, *GetProgramRequest) (*Program, error)
func (*UnimplementedProgramsServiceServer) ListPrograms
func (*UnimplementedProgramsServiceServer) ListPrograms(context.Context, *ListProgramsRequest) (*ListProgramsResponse, error)
UnimplementedRegionsServiceServer
type UnimplementedRegionsServiceServer struct {
}
UnimplementedRegionsServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedRegionsServiceServer) CreateRegion
func (*UnimplementedRegionsServiceServer) CreateRegion(context.Context, *CreateRegionRequest) (*Region, error)
func (*UnimplementedRegionsServiceServer) DeleteRegion
func (*UnimplementedRegionsServiceServer) DeleteRegion(context.Context, *DeleteRegionRequest) (*emptypb.Empty, error)
func (*UnimplementedRegionsServiceServer) GetRegion
func (*UnimplementedRegionsServiceServer) GetRegion(context.Context, *GetRegionRequest) (*Region, error)
func (*UnimplementedRegionsServiceServer) ListRegions
func (*UnimplementedRegionsServiceServer) ListRegions(context.Context, *ListRegionsRequest) (*ListRegionsResponse, error)
func (*UnimplementedRegionsServiceServer) UpdateRegion
func (*UnimplementedRegionsServiceServer) UpdateRegion(context.Context, *UpdateRegionRequest) (*Region, error)
UnimplementedShippingSettingsServiceServer
type UnimplementedShippingSettingsServiceServer struct {
}
UnimplementedShippingSettingsServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedShippingSettingsServiceServer) GetShippingSettings
func (*UnimplementedShippingSettingsServiceServer) GetShippingSettings(context.Context, *GetShippingSettingsRequest) (*ShippingSettings, error)
func (*UnimplementedShippingSettingsServiceServer) InsertShippingSettings
func (*UnimplementedShippingSettingsServiceServer) InsertShippingSettings(context.Context, *InsertShippingSettingsRequest) (*ShippingSettings, error)
UnimplementedTermsOfServiceAgreementStateServiceServer
type UnimplementedTermsOfServiceAgreementStateServiceServer struct {
}
UnimplementedTermsOfServiceAgreementStateServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedTermsOfServiceAgreementStateServiceServer) GetTermsOfServiceAgreementState
func (*UnimplementedTermsOfServiceAgreementStateServiceServer) GetTermsOfServiceAgreementState(context.Context, *GetTermsOfServiceAgreementStateRequest) (*TermsOfServiceAgreementState, error)
func (*UnimplementedTermsOfServiceAgreementStateServiceServer) RetrieveForApplicationTermsOfServiceAgreementState
func (*UnimplementedTermsOfServiceAgreementStateServiceServer) RetrieveForApplicationTermsOfServiceAgreementState(context.Context, *RetrieveForApplicationTermsOfServiceAgreementStateRequest) (*TermsOfServiceAgreementState, error)
UnimplementedTermsOfServiceServiceServer
type UnimplementedTermsOfServiceServiceServer struct {
}
UnimplementedTermsOfServiceServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedTermsOfServiceServiceServer) AcceptTermsOfService
func (*UnimplementedTermsOfServiceServiceServer) AcceptTermsOfService(context.Context, *AcceptTermsOfServiceRequest) (*emptypb.Empty, error)
func (*UnimplementedTermsOfServiceServiceServer) GetTermsOfService
func (*UnimplementedTermsOfServiceServiceServer) GetTermsOfService(context.Context, *GetTermsOfServiceRequest) (*TermsOfService, error)
func (*UnimplementedTermsOfServiceServiceServer) RetrieveLatestTermsOfService
func (*UnimplementedTermsOfServiceServiceServer) RetrieveLatestTermsOfService(context.Context, *RetrieveLatestTermsOfServiceRequest) (*TermsOfService, error)
UnimplementedUserServiceServer
type UnimplementedUserServiceServer struct {
}
UnimplementedUserServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServiceServer) CreateUser
func (*UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*User, error)
func (*UnimplementedUserServiceServer) DeleteUser
func (*UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
func (*UnimplementedUserServiceServer) GetUser
func (*UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*User, error)
func (*UnimplementedUserServiceServer) ListUsers
func (*UnimplementedUserServiceServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
func (*UnimplementedUserServiceServer) UpdateUser
func (*UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
UpdateAccountRequest
type UpdateAccountRequest struct {
// Required. The new version of the account.
Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
// Required. List of fields being updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
Request message for the UpdateAccount
method.
func (*UpdateAccountRequest) Descriptor
func (*UpdateAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead.
func (*UpdateAccountRequest) GetAccount
func (x *UpdateAccountRequest) GetAccount() *Account
func (*UpdateAccountRequest) GetUpdateMask
func (x *UpdateAccountRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateAccountRequest) ProtoMessage
func (*UpdateAccountRequest) ProtoMessage()
func (*UpdateAccountRequest) ProtoReflect
func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message
func (*UpdateAccountRequest) Reset
func (x *UpdateAccountRequest) Reset()
func (*UpdateAccountRequest) String
func (x *UpdateAccountRequest) String() string
UpdateAccountTaxRequest
type UpdateAccountTaxRequest struct {
// Required. The tax setting that will be updated
AccountTax *AccountTax `protobuf:"bytes,1,opt,name=account_tax,json=accountTax,proto3" json:"account_tax,omitempty"`
// The list of fields to be updated
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
Request to update the tax settings
func (*UpdateAccountTaxRequest) Descriptor
func (*UpdateAccountTaxRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAccountTaxRequest.ProtoReflect.Descriptor instead.
func (*UpdateAccountTaxRequest) GetAccountTax
func (x *UpdateAccountTaxRequest) GetAccountTax() *AccountTax
func (*UpdateAccountTaxRequest) GetUpdateMask
func (x *UpdateAccountTaxRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateAccountTaxRequest) ProtoMessage
func (*UpdateAccountTaxRequest) ProtoMessage()
func (*UpdateAccountTaxRequest) ProtoReflect
func (x *UpdateAccountTaxRequest) ProtoReflect() protoreflect.Message
func (*UpdateAccountTaxRequest) Reset
func (x *UpdateAccountTaxRequest) Reset()
func (*UpdateAccountTaxRequest) String
func (x *UpdateAccountTaxRequest) String() string
UpdateBusinessIdentityRequest
type UpdateBusinessIdentityRequest struct {
// Required. The new version of the business identity.
BusinessIdentity *BusinessIdentity `protobuf:"bytes,1,opt,name=business_identity,json=businessIdentity,proto3" json:"business_identity,omitempty"`
// Required. List of fields being updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
Request message for the UpdateBusinessIdentity
method.
func (*UpdateBusinessIdentityRequest) Descriptor
func (*UpdateBusinessIdentityRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBusinessIdentityRequest.ProtoReflect.Descriptor instead.
func (*UpdateBusinessIdentityRequest) GetBusinessIdentity
func (x *UpdateBusinessIdentityRequest) GetBusinessIdentity() *BusinessIdentity
func (*UpdateBusinessIdentityRequest) GetUpdateMask
func (x *UpdateBusinessIdentityRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateBusinessIdentityRequest) ProtoMessage
func (*UpdateBusinessIdentityRequest) ProtoMessage()
func (*UpdateBusinessIdentityRequest) ProtoReflect
func (x *UpdateBusinessIdentityRequest) ProtoReflect() protoreflect.Message
func (*UpdateBusinessIdentityRequest) Reset
func (x *UpdateBusinessIdentityRequest) Reset()
func (*UpdateBusinessIdentityRequest) String
func (x *UpdateBusinessIdentityRequest) String() string
UpdateBusinessInfoRequest
type UpdateBusinessInfoRequest struct {
// Required. The new version of the business info.
BusinessInfo *BusinessInfo `protobuf:"bytes,1,opt,name=business_info,json=businessInfo,proto3" json:"business_info,omitempty"`
// Required. List of fields being updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
Request message for the UpdateBusinessInfo
method.
func (*UpdateBusinessInfoRequest) Descriptor
func (*UpdateBusinessInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBusinessInfoRequest.ProtoReflect.Descriptor instead.
func (*UpdateBusinessInfoRequest) GetBusinessInfo
func (x *UpdateBusinessInfoRequest) GetBusinessInfo() *BusinessInfo
func (*UpdateBusinessInfoRequest) GetUpdateMask
func (x *UpdateBusinessInfoRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateBusinessInfoRequest) ProtoMessage
func (*UpdateBusinessInfoRequest) ProtoMessage()
func (*UpdateBusinessInfoRequest) ProtoReflect
func (x *UpdateBusinessInfoRequest) ProtoReflect() protoreflect.Message
func (*UpdateBusinessInfoRequest) Reset
func (x *UpdateBusinessInfoRequest) Reset()
func (*UpdateBusinessInfoRequest) String
func (x *UpdateBusinessInfoRequest) String() string
UpdateEmailPreferencesRequest
type UpdateEmailPreferencesRequest struct {
// Required. Email Preferences to be updated.
EmailPreferences *EmailPreferences `protobuf:"bytes,1,opt,name=email_preferences,json=emailPreferences,proto3" json:"email_preferences,omitempty"`
// Required. List of fields being updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
Request message for UpdateEmailPreferences method.
func (*UpdateEmailPreferencesRequest) Descriptor
func (*UpdateEmailPreferencesRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateEmailPreferencesRequest.ProtoReflect.Descriptor instead.
func (*UpdateEmailPreferencesRequest) GetEmailPreferences
func (x *UpdateEmailPreferencesRequest) GetEmailPreferences() *EmailPreferences
func (*UpdateEmailPreferencesRequest) GetUpdateMask
func (x *UpdateEmailPreferencesRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateEmailPreferencesRequest) ProtoMessage
func (*UpdateEmailPreferencesRequest) ProtoMessage()
func (*UpdateEmailPreferencesRequest) ProtoReflect
func (x *UpdateEmailPreferencesRequest) ProtoReflect() protoreflect.Message
func (*UpdateEmailPreferencesRequest) Reset
func (x *UpdateEmailPreferencesRequest) Reset()
func (*UpdateEmailPreferencesRequest) String
func (x *UpdateEmailPreferencesRequest) String() string
UpdateHomepageRequest
type UpdateHomepageRequest struct {
// Required. The new version of the homepage.
Homepage *Homepage `protobuf:"bytes,1,opt,name=homepage,proto3" json:"homepage,omitempty"`
// Required. List of fields being updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
Request message for the UpdateHomepage
method.
func (*UpdateHomepageRequest) Descriptor
func (*UpdateHomepageRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateHomepageRequest.ProtoReflect.Descriptor instead.
func (*UpdateHomepageRequest) GetHomepage
func (x *UpdateHomepageRequest) GetHomepage() *Homepage
func (*UpdateHomepageRequest) GetUpdateMask
func (x *UpdateHomepageRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateHomepageRequest) ProtoMessage
func (*UpdateHomepageRequest) ProtoMessage()
func (*UpdateHomepageRequest) ProtoReflect
func (x *UpdateHomepageRequest) ProtoReflect() protoreflect.Message
func (*UpdateHomepageRequest) Reset
func (x *UpdateHomepageRequest) Reset()
func (*UpdateHomepageRequest) String
func (x *UpdateHomepageRequest) String() string
UpdateRegionRequest
type UpdateRegionRequest struct {
// Required. The updated region.
Region *Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
// Optional. The comma-separated field mask indicating the fields to update.
// Example:
// `"displayName,postalCodeArea.regionCode"`.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
Request message for the UpdateRegion
method.
func (*UpdateRegionRequest) Descriptor
func (*UpdateRegionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRegionRequest.ProtoReflect.Descriptor instead.
func (*UpdateRegionRequest) GetRegion
func (x *UpdateRegionRequest) GetRegion() *Region
func (*UpdateRegionRequest) GetUpdateMask
func (x *UpdateRegionRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateRegionRequest) ProtoMessage
func (*UpdateRegionRequest) ProtoMessage()
func (*UpdateRegionRequest) ProtoReflect
func (x *UpdateRegionRequest) ProtoReflect() protoreflect.Message
func (*UpdateRegionRequest) Reset
func (x *UpdateRegionRequest) Reset()
func (*UpdateRegionRequest) String
func (x *UpdateRegionRequest) String() string
UpdateUserRequest
type UpdateUserRequest struct {
// Required. The new version of the user.
//
// Use `me` to refer to your own email address, for example
// `accounts/{account}/users/me`.
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
// Required. List of fields being updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
Request message for the UpdateUser
method.
func (*UpdateUserRequest) Descriptor
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetUpdateMask
func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateUserRequest) GetUser
func (x *UpdateUserRequest) GetUser() *User
func (*UpdateUserRequest) ProtoMessage
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String
func (x *UpdateUserRequest) String() string
User
type User struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
State User_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.shopping.merchant.accounts.v1beta.User_State" json:"state,omitempty"`
AccessRights []AccessRight "" /* 163 byte string literal not displayed */
}
A user.
func (*User) Descriptor
Deprecated: Use User.ProtoReflect.Descriptor instead.
func (*User) GetAccessRights
func (x *User) GetAccessRights() []AccessRight
func (*User) GetName
func (*User) GetState
func (x *User) GetState() User_State
func (*User) ProtoMessage
func (*User) ProtoMessage()
func (*User) ProtoReflect
func (x *User) ProtoReflect() protoreflect.Message
func (*User) Reset
func (x *User) Reset()
func (*User) String
UserServiceClient
type UserServiceClient interface {
// Retrieves a Merchant Center account user.
GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
// Creates a Merchant Center account user. Executing this method requires
// admin access.
CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error)
// Deletes a Merchant Center account user. Executing this method requires
// admin access.
DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Updates a Merchant Center account user. Executing this method requires
// admin access.
UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error)
// Lists all users of a Merchant Center account.
ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
}
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserServiceClient
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
UserServiceServer
type UserServiceServer interface {
// Retrieves a Merchant Center account user.
GetUser(context.Context, *GetUserRequest) (*User, error)
// Creates a Merchant Center account user. Executing this method requires
// admin access.
CreateUser(context.Context, *CreateUserRequest) (*User, error)
// Deletes a Merchant Center account user. Executing this method requires
// admin access.
DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
// Updates a Merchant Center account user. Executing this method requires
// admin access.
UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
// Lists all users of a Merchant Center account.
ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
}
UserServiceServer is the server API for UserService service.
User_State
type User_State int32
The possible states of a user.
User_STATE_UNSPECIFIED, User_PENDING, User_VERIFIED
const (
// Default value. This value is unused.
User_STATE_UNSPECIFIED User_State = 0
// The user is pending confirmation. In this state, the user first needs to
// accept the invitation before performing other actions.
User_PENDING User_State = 1
// The user is verified.
User_VERIFIED User_State = 2
)
func (User_State) Descriptor
func (User_State) Descriptor() protoreflect.EnumDescriptor
func (User_State) Enum
func (x User_State) Enum() *User_State
func (User_State) EnumDescriptor
func (User_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use User_State.Descriptor instead.
func (User_State) Number
func (x User_State) Number() protoreflect.EnumNumber
func (User_State) String
func (x User_State) String() string
func (User_State) Type
func (User_State) Type() protoreflect.EnumType
Value
type Value struct {
// If true, then the product can't be shipped. Must be true when set, can only
// be set if all other fields are not set.
NoShipping *bool `protobuf:"varint,1,opt,name=no_shipping,json=noShipping,proto3,oneof" json:"no_shipping,omitempty"`
// A flat rate. Can only be set if all other fields are not set.
FlatRate *typepb.Price `protobuf:"bytes,2,opt,name=flat_rate,json=flatRate,proto3,oneof" json:"flat_rate,omitempty"`
// A percentage of the price represented as a number in decimal notation
// (For example, `"5.4"`). Can only be set if all other fields are not
// set.
PricePercentage *string `protobuf:"bytes,3,opt,name=price_percentage,json=pricePercentage,proto3,oneof" json:"price_percentage,omitempty"`
// The name of a carrier rate referring to a carrier rate defined in the
// same rate group. Can only be set if all other fields are not set.
CarrierRate *string `protobuf:"bytes,4,opt,name=carrier_rate,json=carrierRate,proto3,oneof" json:"carrier_rate,omitempty"`
// The name of a subtable. Can only be set in table cells (For example, not
// for single values), and only if all other fields are not set.
Subtable *string `protobuf:"bytes,5,opt,name=subtable,proto3,oneof" json:"subtable,omitempty"`
// contains filtered or unexported fields
}
The single value of a rate group or the value of a rate group table's cell.
Exactly one of no_shipping
, flat_rate
,
price_percentage
, carrier_rateName
,
subtable_name
must be set.
func (*Value) Descriptor
Deprecated: Use Value.ProtoReflect.Descriptor instead.
func (*Value) GetCarrierRate
func (*Value) GetFlatRate
func (*Value) GetNoShipping
func (*Value) GetPricePercentage
func (*Value) GetSubtable
func (*Value) ProtoMessage
func (*Value) ProtoMessage()
func (*Value) ProtoReflect
func (x *Value) ProtoReflect() protoreflect.Message
func (*Value) Reset
func (x *Value) Reset()
func (*Value) String
Warehouse
type Warehouse struct {
// Required. The name of the warehouse. Must be unique within account.
Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
// Required. Shipping address of the warehouse.
ShippingAddress *Address `protobuf:"bytes,2,opt,name=shipping_address,json=shippingAddress,proto3,oneof" json:"shipping_address,omitempty"`
// Required. The latest time of day that an order can be accepted and begin
// processing. Later orders will be processed in the next day. The time is
// based on the warehouse postal code.
CutoffTime *WarehouseCutoffTime `protobuf:"bytes,3,opt,name=cutoff_time,json=cutoffTime,proto3,oneof" json:"cutoff_time,omitempty"`
// Required. The number of days it takes for this warehouse to pack up and
// ship an item. This is on the warehouse level, but can be overridden on the
// offer level based on the attributes of an item.
HandlingDays *int64 `protobuf:"varint,4,opt,name=handling_days,json=handlingDays,proto3,oneof" json:"handling_days,omitempty"`
// Business days of the warehouse.
// If not set, will be Monday to Friday by default.
BusinessDayConfig *BusinessDayConfig `protobuf:"bytes,5,opt,name=business_day_config,json=businessDayConfig,proto3,oneof" json:"business_day_config,omitempty"`
// contains filtered or unexported fields
}
A fulfillment warehouse, which stores and handles inventory. Next tag: 7
func (*Warehouse) Descriptor
Deprecated: Use Warehouse.ProtoReflect.Descriptor instead.
func (*Warehouse) GetBusinessDayConfig
func (x *Warehouse) GetBusinessDayConfig() *BusinessDayConfig
func (*Warehouse) GetCutoffTime
func (x *Warehouse) GetCutoffTime() *WarehouseCutoffTime
func (*Warehouse) GetHandlingDays
func (*Warehouse) GetName
func (*Warehouse) GetShippingAddress
func (*Warehouse) ProtoMessage
func (*Warehouse) ProtoMessage()
func (*Warehouse) ProtoReflect
func (x *Warehouse) ProtoReflect() protoreflect.Message
func (*Warehouse) Reset
func (x *Warehouse) Reset()
func (*Warehouse) String
WarehouseBasedDeliveryTime
type WarehouseBasedDeliveryTime struct {
// Required. Carrier, such as `"UPS"` or `"Fedex"`.
Carrier *string `protobuf:"bytes,1,opt,name=carrier,proto3,oneof" json:"carrier,omitempty"`
// Required. Carrier service, such as `"ground"` or `"2 days"`. The name of
// the service must be in the eddSupportedServices list.
CarrierService *string `protobuf:"bytes,2,opt,name=carrier_service,json=carrierService,proto3,oneof" json:"carrier_service,omitempty"`
// Required. Warehouse name. This should match
// [warehouse][ShippingSetting.warehouses.name]
Warehouse *string `protobuf:"bytes,3,opt,name=warehouse,proto3,oneof" json:"warehouse,omitempty"`
// contains filtered or unexported fields
}
Indicates that the delivery time should be calculated per warehouse
(shipping origin location) based on the settings of the selected carrier.
When set, no other transit time related field in delivery_time
should be
set.
func (*WarehouseBasedDeliveryTime) Descriptor
func (*WarehouseBasedDeliveryTime) Descriptor() ([]byte, []int)
Deprecated: Use WarehouseBasedDeliveryTime.ProtoReflect.Descriptor instead.
func (*WarehouseBasedDeliveryTime) GetCarrier
func (x *WarehouseBasedDeliveryTime) GetCarrier() string
func (*WarehouseBasedDeliveryTime) GetCarrierService
func (x *WarehouseBasedDeliveryTime) GetCarrierService() string
func (*WarehouseBasedDeliveryTime) GetWarehouse
func (x *WarehouseBasedDeliveryTime) GetWarehouse() string
func (*WarehouseBasedDeliveryTime) ProtoMessage
func (*WarehouseBasedDeliveryTime) ProtoMessage()
func (*WarehouseBasedDeliveryTime) ProtoReflect
func (x *WarehouseBasedDeliveryTime) ProtoReflect() protoreflect.Message
func (*WarehouseBasedDeliveryTime) Reset
func (x *WarehouseBasedDeliveryTime) Reset()
func (*WarehouseBasedDeliveryTime) String
func (x *WarehouseBasedDeliveryTime) String() string
WarehouseCutoffTime
type WarehouseCutoffTime struct {
// Required. Hour of the cutoff time until which an order has to be placed to
// be processed in the same day by the warehouse. Hour is based on the
// timezone of warehouse.
Hour *int32 `protobuf:"varint,1,opt,name=hour,proto3,oneof" json:"hour,omitempty"`
// Required. Minute of the cutoff time until which an order has to be placed
// to be processed in the same day by the warehouse. Minute is based on the
// timezone of warehouse.
Minute *int32 `protobuf:"varint,2,opt,name=minute,proto3,oneof" json:"minute,omitempty"`
// contains filtered or unexported fields
}
The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code.
func (*WarehouseCutoffTime) Descriptor
func (*WarehouseCutoffTime) Descriptor() ([]byte, []int)
Deprecated: Use WarehouseCutoffTime.ProtoReflect.Descriptor instead.
func (*WarehouseCutoffTime) GetHour
func (x *WarehouseCutoffTime) GetHour() int32
func (*WarehouseCutoffTime) GetMinute
func (x *WarehouseCutoffTime) GetMinute() int32
func (*WarehouseCutoffTime) ProtoMessage
func (*WarehouseCutoffTime) ProtoMessage()
func (*WarehouseCutoffTime) ProtoReflect
func (x *WarehouseCutoffTime) ProtoReflect() protoreflect.Message
func (*WarehouseCutoffTime) Reset
func (x *WarehouseCutoffTime) Reset()
func (*WarehouseCutoffTime) String
func (x *WarehouseCutoffTime) String() string