Variables
AggregateProductStatus_ItemLevelIssue_Severity_name, AggregateProductStatus_ItemLevelIssue_Severity_value
var (
AggregateProductStatus_ItemLevelIssue_Severity_name = map[int32]string{
0: "SEVERITY_UNSPECIFIED",
1: "NOT_IMPACTED",
2: "DEMOTED",
3: "DISAPPROVED",
}
AggregateProductStatus_ItemLevelIssue_Severity_value = map[string]int32{
"SEVERITY_UNSPECIFIED": 0,
"NOT_IMPACTED": 1,
"DEMOTED": 2,
"DISAPPROVED": 3,
}
)Enum value maps for AggregateProductStatus_ItemLevelIssue_Severity.
AggregateProductStatus_ItemLevelIssue_Resolution_name, AggregateProductStatus_ItemLevelIssue_Resolution_value
var (
AggregateProductStatus_ItemLevelIssue_Resolution_name = map[int32]string{
0: "RESOLUTION_UNSPECIFIED",
1: "MERCHANT_ACTION",
2: "PENDING_PROCESSING",
}
AggregateProductStatus_ItemLevelIssue_Resolution_value = map[string]int32{
"RESOLUTION_UNSPECIFIED": 0,
"MERCHANT_ACTION": 1,
"PENDING_PROCESSING": 2,
}
)Enum value maps for AggregateProductStatus_ItemLevelIssue_Resolution.
Severity_name, Severity_value
var (
Severity_name = map[int32]string{
0: "SEVERITY_UNSPECIFIED",
1: "ERROR",
2: "WARNING",
3: "INFO",
}
Severity_value = map[string]int32{
"SEVERITY_UNSPECIFIED": 0,
"ERROR": 1,
"WARNING": 2,
"INFO": 3,
}
)Enum value maps for Severity.
ContentOption_name, ContentOption_value
var (
ContentOption_name = map[int32]string{
0: "CONTENT_OPTION_UNSPECIFIED",
1: "PRE_RENDERED_HTML",
}
ContentOption_value = map[string]int32{
"CONTENT_OPTION_UNSPECIFIED": 0,
"PRE_RENDERED_HTML": 1,
}
)Enum value maps for ContentOption.
UserInputActionRenderingOption_name, UserInputActionRenderingOption_value
var (
UserInputActionRenderingOption_name = map[int32]string{
0: "USER_INPUT_ACTION_RENDERING_OPTION_UNSPECIFIED",
1: "REDIRECT_TO_MERCHANT_CENTER",
2: "BUILT_IN_USER_INPUT_ACTIONS",
}
UserInputActionRenderingOption_value = map[string]int32{
"USER_INPUT_ACTION_RENDERING_OPTION_UNSPECIFIED": 0,
"REDIRECT_TO_MERCHANT_CENTER": 1,
"BUILT_IN_USER_INPUT_ACTIONS": 2,
}
)Enum value maps for UserInputActionRenderingOption.
BuiltInSimpleAction_BuiltInSimpleActionType_name, BuiltInSimpleAction_BuiltInSimpleActionType_value
var (
BuiltInSimpleAction_BuiltInSimpleActionType_name = map[int32]string{
0: "BUILT_IN_SIMPLE_ACTION_TYPE_UNSPECIFIED",
1: "VERIFY_PHONE",
2: "CLAIM_WEBSITE",
3: "ADD_PRODUCTS",
4: "ADD_CONTACT_INFO",
5: "LINK_ADS_ACCOUNT",
6: "ADD_BUSINESS_REGISTRATION_NUMBER",
7: "EDIT_ITEM_ATTRIBUTE",
8: "FIX_ACCOUNT_ISSUE",
9: "SHOW_ADDITIONAL_CONTENT",
}
BuiltInSimpleAction_BuiltInSimpleActionType_value = map[string]int32{
"BUILT_IN_SIMPLE_ACTION_TYPE_UNSPECIFIED": 0,
"VERIFY_PHONE": 1,
"CLAIM_WEBSITE": 2,
"ADD_PRODUCTS": 3,
"ADD_CONTACT_INFO": 4,
"LINK_ADS_ACCOUNT": 5,
"ADD_BUSINESS_REGISTRATION_NUMBER": 6,
"EDIT_ITEM_ATTRIBUTE": 7,
"FIX_ACCOUNT_ISSUE": 8,
"SHOW_ADDITIONAL_CONTENT": 9,
}
)Enum value maps for BuiltInSimpleAction_BuiltInSimpleActionType.
InputField_TextInput_TextInputType_name, InputField_TextInput_TextInputType_value
var (
InputField_TextInput_TextInputType_name = map[int32]string{
0: "TEXT_INPUT_TYPE_UNSPECIFIED",
1: "GENERIC_SHORT_TEXT",
2: "GENERIC_LONG_TEXT",
}
InputField_TextInput_TextInputType_value = map[string]int32{
"TEXT_INPUT_TYPE_UNSPECIFIED": 0,
"GENERIC_SHORT_TEXT": 1,
"GENERIC_LONG_TEXT": 2,
}
)Enum value maps for InputField_TextInput_TextInputType.
TextWithTooltip_TooltipIconStyle_name, TextWithTooltip_TooltipIconStyle_value
var (
TextWithTooltip_TooltipIconStyle_name = map[int32]string{
0: "TOOLTIP_ICON_STYLE_UNSPECIFIED",
1: "INFO",
2: "QUESTION",
}
TextWithTooltip_TooltipIconStyle_value = map[string]int32{
"TOOLTIP_ICON_STYLE_UNSPECIFIED": 0,
"INFO": 1,
"QUESTION": 2,
}
)Enum value maps for TextWithTooltip_TooltipIconStyle.
Callout_CalloutStyleHint_name, Callout_CalloutStyleHint_value
var (
Callout_CalloutStyleHint_name = map[int32]string{
0: "CALLOUT_STYLE_HINT_UNSPECIFIED",
1: "ERROR",
2: "WARNING",
3: "INFO",
}
Callout_CalloutStyleHint_value = map[string]int32{
"CALLOUT_STYLE_HINT_UNSPECIFIED": 0,
"ERROR": 1,
"WARNING": 2,
"INFO": 3,
}
)Enum value maps for Callout_CalloutStyleHint.
ExternalAction_ExternalActionType_name, ExternalAction_ExternalActionType_value
var (
ExternalAction_ExternalActionType_name = map[int32]string{
0: "EXTERNAL_ACTION_TYPE_UNSPECIFIED",
1: "REVIEW_PRODUCT_ISSUE_IN_MERCHANT_CENTER",
2: "REVIEW_ACCOUNT_ISSUE_IN_MERCHANT_CENTER",
3: "LEGAL_APPEAL_IN_HELP_CENTER",
4: "VERIFY_IDENTITY_IN_MERCHANT_CENTER",
}
ExternalAction_ExternalActionType_value = map[string]int32{
"EXTERNAL_ACTION_TYPE_UNSPECIFIED": 0,
"REVIEW_PRODUCT_ISSUE_IN_MERCHANT_CENTER": 1,
"REVIEW_ACCOUNT_ISSUE_IN_MERCHANT_CENTER": 2,
"LEGAL_APPEAL_IN_HELP_CENTER": 3,
"VERIFY_IDENTITY_IN_MERCHANT_CENTER": 4,
}
)Enum value maps for ExternalAction_ExternalActionType.
File_google_shopping_merchant_issueresolution_v1_aggregateproductstatuses_proto
var File_google_shopping_merchant_issueresolution_v1_aggregateproductstatuses_proto protoreflect.FileDescriptorFile_google_shopping_merchant_issueresolution_v1_issueresolution_proto
var File_google_shopping_merchant_issueresolution_v1_issueresolution_proto protoreflect.FileDescriptorFunctions
func RegisterAggregateProductStatusesServiceServer
func RegisterAggregateProductStatusesServiceServer(s *grpc.Server, srv AggregateProductStatusesServiceServer)func RegisterIssueResolutionServiceServer
func RegisterIssueResolutionServiceServer(s *grpc.Server, srv IssueResolutionServiceServer)Action
type Action struct {
// An actionable step that can be executed to solve the issue.
//
// Types that are assignable to Action:
//
// *Action_BuiltinSimpleAction
// *Action_ExternalAction
// *Action_BuiltinUserInputAction
Action isAction_Action `protobuf_oneof:"action"`
// Label of the action button.
ButtonLabel string `protobuf:"bytes,4,opt,name=button_label,json=buttonLabel,proto3" json:"button_label,omitempty"`
// Controlling whether the button is active or disabled. The value is 'false'
// when the action was already requested or is not available. If the action is
// not available then a
// [reason][google.shopping.merchant.issueresolution.v1.Action.reasons] will
// be present. If (your) third-party application shows a disabled button for
// action that is not available, then it should also show reasons.
IsAvailable bool `protobuf:"varint,5,opt,name=is_available,json=isAvailable,proto3" json:"is_available,omitempty"`
// List of reasons why the action is not available. The list of reasons is
// empty if the action is available. If there is only one reason, it can be
// displayed next to the disabled button. If there are more reasons, all of
// them should be displayed, for example in a pop-up dialog.
Reasons []*Action_Reason `protobuf:"bytes,6,rep,name=reasons,proto3" json:"reasons,omitempty"`
// contains filtered or unexported fields
}An actionable step that can be executed to solve the issue.
func (*Action) Descriptor
Deprecated: Use Action.ProtoReflect.Descriptor instead.
func (*Action) GetAction
func (m *Action) GetAction() isAction_Actionfunc (*Action) GetBuiltinSimpleAction
func (x *Action) GetBuiltinSimpleAction() *BuiltInSimpleActionfunc (*Action) GetBuiltinUserInputAction
func (x *Action) GetBuiltinUserInputAction() *BuiltInUserInputActionfunc (*Action) GetButtonLabel
func (*Action) GetExternalAction
func (x *Action) GetExternalAction() *ExternalActionfunc (*Action) GetIsAvailable
func (*Action) GetReasons
func (x *Action) GetReasons() []*Action_Reasonfunc (*Action) ProtoMessage
func (*Action) ProtoMessage()func (*Action) ProtoReflect
func (x *Action) ProtoReflect() protoreflect.Messagefunc (*Action) Reset
func (x *Action) Reset()func (*Action) String
ActionFlow
type ActionFlow struct {
// Not for display but need to be sent back for the selected action flow.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Text value describing the intent for the action flow. It can be used as an
// input label if business needs to pick one of multiple flows. For example:
// "I disagree with the issue"
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
// A list of input fields.
Inputs []*InputField `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"`
// Title of the request dialog. For example: "Before you request a review"
DialogTitle string `protobuf:"bytes,4,opt,name=dialog_title,json=dialogTitle,proto3" json:"dialog_title,omitempty"`
// Message displayed in the request dialog. For example: "Make sure you've
// fixed all your country-specific issues. If not, you may have to wait 7 days
// to request another review". There may be an more information to be shown in
// a tooltip.
DialogMessage *TextWithTooltip `protobuf:"bytes,7,opt,name=dialog_message,json=dialogMessage,proto3,oneof" json:"dialog_message,omitempty"`
// Important message to be highlighted in the request dialog. For example:
// "You can only request a review for disagreeing with this issue once. If
// it's not approved, you'll need to fix the issue and wait a few days before
// you can request another review."
DialogCallout *Callout `protobuf:"bytes,8,opt,name=dialog_callout,json=dialogCallout,proto3,oneof" json:"dialog_callout,omitempty"`
// Label for the button to trigger the action from the action dialog. For
// example: "Request review"
DialogButtonLabel string `protobuf:"bytes,9,opt,name=dialog_button_label,json=dialogButtonLabel,proto3" json:"dialog_button_label,omitempty"`
// contains filtered or unexported fields
}Flow that can be selected for an action. When a business selects a flow, application should open a dialog with more information and input form.
func (*ActionFlow) Descriptor
func (*ActionFlow) Descriptor() ([]byte, []int)Deprecated: Use ActionFlow.ProtoReflect.Descriptor instead.
func (*ActionFlow) GetDialogButtonLabel
func (x *ActionFlow) GetDialogButtonLabel() stringfunc (*ActionFlow) GetDialogCallout
func (x *ActionFlow) GetDialogCallout() *Calloutfunc (*ActionFlow) GetDialogMessage
func (x *ActionFlow) GetDialogMessage() *TextWithTooltipfunc (*ActionFlow) GetDialogTitle
func (x *ActionFlow) GetDialogTitle() stringfunc (*ActionFlow) GetId
func (x *ActionFlow) GetId() stringfunc (*ActionFlow) GetInputs
func (x *ActionFlow) GetInputs() []*InputFieldfunc (*ActionFlow) GetLabel
func (x *ActionFlow) GetLabel() stringfunc (*ActionFlow) ProtoMessage
func (*ActionFlow) ProtoMessage()func (*ActionFlow) ProtoReflect
func (x *ActionFlow) ProtoReflect() protoreflect.Messagefunc (*ActionFlow) Reset
func (x *ActionFlow) Reset()func (*ActionFlow) String
func (x *ActionFlow) String() stringActionInput
type ActionInput struct {
// Required. [Id][google.shopping.merchant.issueresolution.v1.ActionFlow.id]
// of the selected action flow.
ActionFlowId string `protobuf:"bytes,1,opt,name=action_flow_id,json=actionFlowId,proto3" json:"action_flow_id,omitempty"`
// Required. Values for input fields.
InputValues []*InputValue `protobuf:"bytes,2,rep,name=input_values,json=inputValues,proto3" json:"input_values,omitempty"`
// contains filtered or unexported fields
}Input provided by the business.
func (*ActionInput) Descriptor
func (*ActionInput) Descriptor() ([]byte, []int)Deprecated: Use ActionInput.ProtoReflect.Descriptor instead.
func (*ActionInput) GetActionFlowId
func (x *ActionInput) GetActionFlowId() stringfunc (*ActionInput) GetInputValues
func (x *ActionInput) GetInputValues() []*InputValuefunc (*ActionInput) ProtoMessage
func (*ActionInput) ProtoMessage()func (*ActionInput) ProtoReflect
func (x *ActionInput) ProtoReflect() protoreflect.Messagefunc (*ActionInput) Reset
func (x *ActionInput) Reset()func (*ActionInput) String
func (x *ActionInput) String() stringAction_BuiltinSimpleAction
type Action_BuiltinSimpleAction struct {
// Action implemented and performed in (your) third-party application. The
// application should point the business to the place, where they can access
// the corresponding functionality or provide instructions, if the specific
// functionality is not available.
BuiltinSimpleAction *BuiltInSimpleAction `protobuf:"bytes,2,opt,name=builtin_simple_action,json=builtinSimpleAction,proto3,oneof"`
}Action_BuiltinUserInputAction
type Action_BuiltinUserInputAction struct {
// Action implemented and performed in (your) third-party application.
// The application needs to show an additional content and input form to the
// business as specified for given action. They can trigger the action only
// when they provided all required inputs.
BuiltinUserInputAction *BuiltInUserInputAction `protobuf:"bytes,7,opt,name=builtin_user_input_action,json=builtinUserInputAction,proto3,oneof"`
}Action_ExternalAction
type Action_ExternalAction struct {
// Action that is implemented and performed outside of (your) third-party
// application. The application needs to redirect the business to the
// external location where they can perform the action.
ExternalAction *ExternalAction `protobuf:"bytes,3,opt,name=external_action,json=externalAction,proto3,oneof"`
}Action_Reason
type Action_Reason struct {
// Messages summarizing the reason, why the action is not available.
// For example: "Review requested on Jan 03. Review requests can take a few
// days to complete."
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// Detailed explanation of the reason. Should be displayed as a hint if
// present.
Detail *string `protobuf:"bytes,2,opt,name=detail,proto3,oneof" json:"detail,omitempty"`
// Optional. An action that needs to be performed to solve the problem
// represented by this reason. This action will always be available. Should
// be rendered as a link or button next to the summarizing message.
//
// For example, the review may be available only once the business configure
// all required attributes. In such a situation this action can be a link to
// the form, where they can fill the missing attribute to unblock the main
// action.
Action *Action `protobuf:"bytes,3,opt,name=action,proto3,oneof" json:"action,omitempty"`
// contains filtered or unexported fields
}A single reason why the action is not available.
func (*Action_Reason) Descriptor
func (*Action_Reason) Descriptor() ([]byte, []int)Deprecated: Use Action_Reason.ProtoReflect.Descriptor instead.
func (*Action_Reason) GetAction
func (x *Action_Reason) GetAction() *Actionfunc (*Action_Reason) GetDetail
func (x *Action_Reason) GetDetail() stringfunc (*Action_Reason) GetMessage
func (x *Action_Reason) GetMessage() stringfunc (*Action_Reason) ProtoMessage
func (*Action_Reason) ProtoMessage()func (*Action_Reason) ProtoReflect
func (x *Action_Reason) ProtoReflect() protoreflect.Messagefunc (*Action_Reason) Reset
func (x *Action_Reason) Reset()func (*Action_Reason) String
func (x *Action_Reason) String() stringAggregateProductStatus
type AggregateProductStatus struct {
// Identifier. The name of the `AggregateProductStatuses` resource.
// Format:
// `accounts/{account}/aggregateProductStatuses/{aggregateProductStatuses}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The reporting context of the aggregate product statuses.
ReportingContext typepb.ReportingContext_ReportingContextEnum `protobuf:"varint,3,opt,name=reporting_context,json=reportingContext,proto3,enum=google.shopping.type.ReportingContext_ReportingContextEnum" json:"reporting_context,omitempty"`
// The country of the aggregate product statuses. Represented as a
// [CLDR territory
// code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml).
Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
// Products statistics for the given reporting context and country.
Stats *AggregateProductStatus_Stats `protobuf:"bytes,5,opt,name=stats,proto3" json:"stats,omitempty"`
// The product issues that affect the given reporting context and country.
ItemLevelIssues []*AggregateProductStatus_ItemLevelIssue `protobuf:"bytes,6,rep,name=item_level_issues,json=itemLevelIssues,proto3" json:"item_level_issues,omitempty"`
// contains filtered or unexported fields
}Aggregate product statuses for a given reporting context and country.
func (*AggregateProductStatus) Descriptor
func (*AggregateProductStatus) Descriptor() ([]byte, []int)Deprecated: Use AggregateProductStatus.ProtoReflect.Descriptor instead.
func (*AggregateProductStatus) GetCountry
func (x *AggregateProductStatus) GetCountry() stringfunc (*AggregateProductStatus) GetItemLevelIssues
func (x *AggregateProductStatus) GetItemLevelIssues() []*AggregateProductStatus_ItemLevelIssuefunc (*AggregateProductStatus) GetName
func (x *AggregateProductStatus) GetName() stringfunc (*AggregateProductStatus) GetReportingContext
func (x *AggregateProductStatus) GetReportingContext() typepb.ReportingContext_ReportingContextEnumfunc (*AggregateProductStatus) GetStats
func (x *AggregateProductStatus) GetStats() *AggregateProductStatus_Statsfunc (*AggregateProductStatus) ProtoMessage
func (*AggregateProductStatus) ProtoMessage()func (*AggregateProductStatus) ProtoReflect
func (x *AggregateProductStatus) ProtoReflect() protoreflect.Messagefunc (*AggregateProductStatus) Reset
func (x *AggregateProductStatus) Reset()func (*AggregateProductStatus) String
func (x *AggregateProductStatus) String() stringAggregateProductStatus_ItemLevelIssue
type AggregateProductStatus_ItemLevelIssue struct {
// The error code of the issue.
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// How this issue affects serving of the offer.
Severity AggregateProductStatus_ItemLevelIssue_Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=google.shopping.merchant.issueresolution.v1.AggregateProductStatus_ItemLevelIssue_Severity" json:"severity,omitempty"`
// Whether the issue can be resolved by the merchant.
Resolution AggregateProductStatus_ItemLevelIssue_Resolution `protobuf:"varint,3,opt,name=resolution,proto3,enum=google.shopping.merchant.issueresolution.v1.AggregateProductStatus_ItemLevelIssue_Resolution" json:"resolution,omitempty"`
// The attribute's name, if the issue is caused by a single attribute.
Attribute string `protobuf:"bytes,4,opt,name=attribute,proto3" json:"attribute,omitempty"`
// A short issue description in English.
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
// A detailed issue description in English.
Detail string `protobuf:"bytes,7,opt,name=detail,proto3" json:"detail,omitempty"`
// The URL of a web page to help with resolving this issue.
DocumentationUri string `protobuf:"bytes,8,opt,name=documentation_uri,json=documentationUri,proto3" json:"documentation_uri,omitempty"`
// The number of products affected by this issue.
ProductCount int64 `protobuf:"varint,9,opt,name=product_count,json=productCount,proto3" json:"product_count,omitempty"`
// contains filtered or unexported fields
}The ItemLevelIssue of the product status.
func (*AggregateProductStatus_ItemLevelIssue) Descriptor
func (*AggregateProductStatus_ItemLevelIssue) Descriptor() ([]byte, []int)Deprecated: Use AggregateProductStatus_ItemLevelIssue.ProtoReflect.Descriptor instead.
func (*AggregateProductStatus_ItemLevelIssue) GetAttribute
func (x *AggregateProductStatus_ItemLevelIssue) GetAttribute() stringfunc (*AggregateProductStatus_ItemLevelIssue) GetCode
func (x *AggregateProductStatus_ItemLevelIssue) GetCode() stringfunc (*AggregateProductStatus_ItemLevelIssue) GetDescription
func (x *AggregateProductStatus_ItemLevelIssue) GetDescription() stringfunc (*AggregateProductStatus_ItemLevelIssue) GetDetail
func (x *AggregateProductStatus_ItemLevelIssue) GetDetail() stringfunc (*AggregateProductStatus_ItemLevelIssue) GetDocumentationUri
func (x *AggregateProductStatus_ItemLevelIssue) GetDocumentationUri() stringfunc (*AggregateProductStatus_ItemLevelIssue) GetProductCount
func (x *AggregateProductStatus_ItemLevelIssue) GetProductCount() int64func (*AggregateProductStatus_ItemLevelIssue) GetResolution
func (x *AggregateProductStatus_ItemLevelIssue) GetResolution() AggregateProductStatus_ItemLevelIssue_Resolutionfunc (*AggregateProductStatus_ItemLevelIssue) GetSeverity
func (x *AggregateProductStatus_ItemLevelIssue) GetSeverity() AggregateProductStatus_ItemLevelIssue_Severityfunc (*AggregateProductStatus_ItemLevelIssue) ProtoMessage
func (*AggregateProductStatus_ItemLevelIssue) ProtoMessage()func (*AggregateProductStatus_ItemLevelIssue) ProtoReflect
func (x *AggregateProductStatus_ItemLevelIssue) ProtoReflect() protoreflect.Messagefunc (*AggregateProductStatus_ItemLevelIssue) Reset
func (x *AggregateProductStatus_ItemLevelIssue) Reset()func (*AggregateProductStatus_ItemLevelIssue) String
func (x *AggregateProductStatus_ItemLevelIssue) String() stringAggregateProductStatus_ItemLevelIssue_Resolution
type AggregateProductStatus_ItemLevelIssue_Resolution int32How the issue can be resolved.
AggregateProductStatus_ItemLevelIssue_RESOLUTION_UNSPECIFIED, AggregateProductStatus_ItemLevelIssue_MERCHANT_ACTION, AggregateProductStatus_ItemLevelIssue_PENDING_PROCESSING
const (
// Not specified.
AggregateProductStatus_ItemLevelIssue_RESOLUTION_UNSPECIFIED AggregateProductStatus_ItemLevelIssue_Resolution = 0
// The issue can be resolved by the merchant.
AggregateProductStatus_ItemLevelIssue_MERCHANT_ACTION AggregateProductStatus_ItemLevelIssue_Resolution = 1
// The issue will be resolved auomatically.
AggregateProductStatus_ItemLevelIssue_PENDING_PROCESSING AggregateProductStatus_ItemLevelIssue_Resolution = 2
)func (AggregateProductStatus_ItemLevelIssue_Resolution) Descriptor
func (AggregateProductStatus_ItemLevelIssue_Resolution) Descriptor() protoreflect.EnumDescriptorfunc (AggregateProductStatus_ItemLevelIssue_Resolution) Enum
func (x AggregateProductStatus_ItemLevelIssue_Resolution) Enum() *AggregateProductStatus_ItemLevelIssue_Resolutionfunc (AggregateProductStatus_ItemLevelIssue_Resolution) EnumDescriptor
func (AggregateProductStatus_ItemLevelIssue_Resolution) EnumDescriptor() ([]byte, []int)Deprecated: Use AggregateProductStatus_ItemLevelIssue_Resolution.Descriptor instead.
func (AggregateProductStatus_ItemLevelIssue_Resolution) Number
func (x AggregateProductStatus_ItemLevelIssue_Resolution) Number() protoreflect.EnumNumberfunc (AggregateProductStatus_ItemLevelIssue_Resolution) String
func (x AggregateProductStatus_ItemLevelIssue_Resolution) String() stringfunc (AggregateProductStatus_ItemLevelIssue_Resolution) Type
AggregateProductStatus_ItemLevelIssue_Severity
type AggregateProductStatus_ItemLevelIssue_Severity int32How the issue affects the serving of the product.
AggregateProductStatus_ItemLevelIssue_SEVERITY_UNSPECIFIED, AggregateProductStatus_ItemLevelIssue_NOT_IMPACTED, AggregateProductStatus_ItemLevelIssue_DEMOTED, AggregateProductStatus_ItemLevelIssue_DISAPPROVED
const (
// Not specified.
AggregateProductStatus_ItemLevelIssue_SEVERITY_UNSPECIFIED AggregateProductStatus_ItemLevelIssue_Severity = 0
// This issue represents a warning and does not have a direct affect
// on the product.
AggregateProductStatus_ItemLevelIssue_NOT_IMPACTED AggregateProductStatus_ItemLevelIssue_Severity = 1
// The product is demoted and most likely have limited performance
// in search results
AggregateProductStatus_ItemLevelIssue_DEMOTED AggregateProductStatus_ItemLevelIssue_Severity = 2
// Issue disapproves the product.
AggregateProductStatus_ItemLevelIssue_DISAPPROVED AggregateProductStatus_ItemLevelIssue_Severity = 3
)func (AggregateProductStatus_ItemLevelIssue_Severity) Descriptor
func (AggregateProductStatus_ItemLevelIssue_Severity) Descriptor() protoreflect.EnumDescriptorfunc (AggregateProductStatus_ItemLevelIssue_Severity) Enum
func (x AggregateProductStatus_ItemLevelIssue_Severity) Enum() *AggregateProductStatus_ItemLevelIssue_Severityfunc (AggregateProductStatus_ItemLevelIssue_Severity) EnumDescriptor
func (AggregateProductStatus_ItemLevelIssue_Severity) EnumDescriptor() ([]byte, []int)Deprecated: Use AggregateProductStatus_ItemLevelIssue_Severity.Descriptor instead.
func (AggregateProductStatus_ItemLevelIssue_Severity) Number
func (x AggregateProductStatus_ItemLevelIssue_Severity) Number() protoreflect.EnumNumberfunc (AggregateProductStatus_ItemLevelIssue_Severity) String
func (x AggregateProductStatus_ItemLevelIssue_Severity) String() stringfunc (AggregateProductStatus_ItemLevelIssue_Severity) Type
AggregateProductStatus_Stats
type AggregateProductStatus_Stats struct {
// The number of products that are active.
ActiveCount int64 `protobuf:"varint,1,opt,name=active_count,json=activeCount,proto3" json:"active_count,omitempty"`
// The number of products that are pending.
PendingCount int64 `protobuf:"varint,2,opt,name=pending_count,json=pendingCount,proto3" json:"pending_count,omitempty"`
// The number of products that are disapproved.
DisapprovedCount int64 `protobuf:"varint,3,opt,name=disapproved_count,json=disapprovedCount,proto3" json:"disapproved_count,omitempty"`
// The number of products that are expiring.
ExpiringCount int64 `protobuf:"varint,4,opt,name=expiring_count,json=expiringCount,proto3" json:"expiring_count,omitempty"`
// contains filtered or unexported fields
}Products statistics.
func (*AggregateProductStatus_Stats) Descriptor
func (*AggregateProductStatus_Stats) Descriptor() ([]byte, []int)Deprecated: Use AggregateProductStatus_Stats.ProtoReflect.Descriptor instead.
func (*AggregateProductStatus_Stats) GetActiveCount
func (x *AggregateProductStatus_Stats) GetActiveCount() int64func (*AggregateProductStatus_Stats) GetDisapprovedCount
func (x *AggregateProductStatus_Stats) GetDisapprovedCount() int64func (*AggregateProductStatus_Stats) GetExpiringCount
func (x *AggregateProductStatus_Stats) GetExpiringCount() int64func (*AggregateProductStatus_Stats) GetPendingCount
func (x *AggregateProductStatus_Stats) GetPendingCount() int64func (*AggregateProductStatus_Stats) ProtoMessage
func (*AggregateProductStatus_Stats) ProtoMessage()func (*AggregateProductStatus_Stats) ProtoReflect
func (x *AggregateProductStatus_Stats) ProtoReflect() protoreflect.Messagefunc (*AggregateProductStatus_Stats) Reset
func (x *AggregateProductStatus_Stats) Reset()func (*AggregateProductStatus_Stats) String
func (x *AggregateProductStatus_Stats) String() stringAggregateProductStatusesServiceClient
type AggregateProductStatusesServiceClient interface {
// Lists the `AggregateProductStatuses` resources for your merchant account.
// The response might contain fewer items than specified by `pageSize`.
// If `pageToken` was returned in previous request, it can be used to obtain
// additional results.
ListAggregateProductStatuses(ctx context.Context, in *ListAggregateProductStatusesRequest, opts ...grpc.CallOption) (*ListAggregateProductStatusesResponse, error)
}AggregateProductStatusesServiceClient is the client API for AggregateProductStatusesService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAggregateProductStatusesServiceClient
func NewAggregateProductStatusesServiceClient(cc grpc.ClientConnInterface) AggregateProductStatusesServiceClientAggregateProductStatusesServiceServer
type AggregateProductStatusesServiceServer interface {
// Lists the `AggregateProductStatuses` resources for your merchant account.
// The response might contain fewer items than specified by `pageSize`.
// If `pageToken` was returned in previous request, it can be used to obtain
// additional results.
ListAggregateProductStatuses(context.Context, *ListAggregateProductStatusesRequest) (*ListAggregateProductStatusesResponse, error)
}AggregateProductStatusesServiceServer is the server API for AggregateProductStatusesService service.
Breakdown
type Breakdown struct {
// Lists of regions. Should be rendered as a title for this group of details.
// The full list should be shown to the business. If the list is too long, it
// is recommended to make it expandable.
Regions []*Breakdown_Region `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"`
// Human readable, localized description of issue's effect on different
// targets. Should be rendered as a list.
//
// For example:
//
// * "Products not showing in ads"
// * "Products not showing organically"
Details []string `protobuf:"bytes,4,rep,name=details,proto3" json:"details,omitempty"`
// contains filtered or unexported fields
}A detailed impact breakdown for a group of regions where the impact of the issue on different shopping destinations is the same.
func (*Breakdown) Descriptor
Deprecated: Use Breakdown.ProtoReflect.Descriptor instead.
func (*Breakdown) GetDetails
func (*Breakdown) GetRegions
func (x *Breakdown) GetRegions() []*Breakdown_Regionfunc (*Breakdown) ProtoMessage
func (*Breakdown) ProtoMessage()func (*Breakdown) ProtoReflect
func (x *Breakdown) ProtoReflect() protoreflect.Messagefunc (*Breakdown) Reset
func (x *Breakdown) Reset()func (*Breakdown) String
Breakdown_Region
type Breakdown_Region struct {
// The [CLDR territory code]
// (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// The localized name of the region.
// For region with code='001' the value is 'All countries' or the equivalent
// in other languages.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Region with code and localized name.
func (*Breakdown_Region) Descriptor
func (*Breakdown_Region) Descriptor() ([]byte, []int)Deprecated: Use Breakdown_Region.ProtoReflect.Descriptor instead.
func (*Breakdown_Region) GetCode
func (x *Breakdown_Region) GetCode() stringfunc (*Breakdown_Region) GetName
func (x *Breakdown_Region) GetName() stringfunc (*Breakdown_Region) ProtoMessage
func (*Breakdown_Region) ProtoMessage()func (*Breakdown_Region) ProtoReflect
func (x *Breakdown_Region) ProtoReflect() protoreflect.Messagefunc (*Breakdown_Region) Reset
func (x *Breakdown_Region) Reset()func (*Breakdown_Region) String
func (x *Breakdown_Region) String() stringBuiltInSimpleAction
type BuiltInSimpleAction struct {
// The type of action that represents a functionality that is expected to be
// available in third-party application.
Type BuiltInSimpleAction_BuiltInSimpleActionType `protobuf:"varint,1,opt,name=type,proto3,enum=google.shopping.merchant.issueresolution.v1.BuiltInSimpleAction_BuiltInSimpleActionType" json:"type,omitempty"`
// The attribute that needs to be updated. Present when the
// [type][google.shopping.merchant.issueresolution.v1.BuiltInSimpleAction.type]
// is `EDIT_ITEM_ATTRIBUTE`.
//
// This field contains a code for attribute, represented in snake_case. You
// can find a list of product's attributes, with their codes
// [here](https://support.google.com/merchants/answer/7052112).
AttributeCode *string `protobuf:"bytes,2,opt,name=attribute_code,json=attributeCode,proto3,oneof" json:"attribute_code,omitempty"`
// Long text from an external source that should be available to the business.
// Present when the
// [type][google.shopping.merchant.issueresolution.v1.BuiltInSimpleAction.type]
// is `SHOW_ADDITIONAL_CONTENT`.
AdditionalContent *BuiltInSimpleAction_AdditionalContent `protobuf:"bytes,3,opt,name=additional_content,json=additionalContent,proto3,oneof" json:"additional_content,omitempty"`
// contains filtered or unexported fields
}Action that is implemented and performed in (your) third-party application. Represents various functionality that is expected to be available to business and will help them with resolving the issue. The application should point the business to the place, where they can access the corresponding functionality. If the functionality is not supported, it is recommended to explain the situation to the business and provide them with instructions how to solve the issue.
func (*BuiltInSimpleAction) Descriptor
func (*BuiltInSimpleAction) Descriptor() ([]byte, []int)Deprecated: Use BuiltInSimpleAction.ProtoReflect.Descriptor instead.
func (*BuiltInSimpleAction) GetAdditionalContent
func (x *BuiltInSimpleAction) GetAdditionalContent() *BuiltInSimpleAction_AdditionalContentfunc (*BuiltInSimpleAction) GetAttributeCode
func (x *BuiltInSimpleAction) GetAttributeCode() stringfunc (*BuiltInSimpleAction) GetType
func (x *BuiltInSimpleAction) GetType() BuiltInSimpleAction_BuiltInSimpleActionTypefunc (*BuiltInSimpleAction) ProtoMessage
func (*BuiltInSimpleAction) ProtoMessage()func (*BuiltInSimpleAction) ProtoReflect
func (x *BuiltInSimpleAction) ProtoReflect() protoreflect.Messagefunc (*BuiltInSimpleAction) Reset
func (x *BuiltInSimpleAction) Reset()func (*BuiltInSimpleAction) String
func (x *BuiltInSimpleAction) String() stringBuiltInSimpleAction_AdditionalContent
type BuiltInSimpleAction_AdditionalContent struct {
// Title of the additional content;
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
// Long text organized into paragraphs.
Paragraphs []string `protobuf:"bytes,2,rep,name=paragraphs,proto3" json:"paragraphs,omitempty"`
// contains filtered or unexported fields
}Long text from external source.
func (*BuiltInSimpleAction_AdditionalContent) Descriptor
func (*BuiltInSimpleAction_AdditionalContent) Descriptor() ([]byte, []int)Deprecated: Use BuiltInSimpleAction_AdditionalContent.ProtoReflect.Descriptor instead.
func (*BuiltInSimpleAction_AdditionalContent) GetParagraphs
func (x *BuiltInSimpleAction_AdditionalContent) GetParagraphs() []stringfunc (*BuiltInSimpleAction_AdditionalContent) GetTitle
func (x *BuiltInSimpleAction_AdditionalContent) GetTitle() stringfunc (*BuiltInSimpleAction_AdditionalContent) ProtoMessage
func (*BuiltInSimpleAction_AdditionalContent) ProtoMessage()func (*BuiltInSimpleAction_AdditionalContent) ProtoReflect
func (x *BuiltInSimpleAction_AdditionalContent) ProtoReflect() protoreflect.Messagefunc (*BuiltInSimpleAction_AdditionalContent) Reset
func (x *BuiltInSimpleAction_AdditionalContent) Reset()func (*BuiltInSimpleAction_AdditionalContent) String
func (x *BuiltInSimpleAction_AdditionalContent) String() stringBuiltInSimpleAction_BuiltInSimpleActionType
type BuiltInSimpleAction_BuiltInSimpleActionType int32Enum specifying the type of action in third-party application.
BuiltInSimpleAction_BUILT_IN_SIMPLE_ACTION_TYPE_UNSPECIFIED, BuiltInSimpleAction_VERIFY_PHONE, BuiltInSimpleAction_CLAIM_WEBSITE, BuiltInSimpleAction_ADD_PRODUCTS, BuiltInSimpleAction_ADD_CONTACT_INFO, BuiltInSimpleAction_LINK_ADS_ACCOUNT, BuiltInSimpleAction_ADD_BUSINESS_REGISTRATION_NUMBER, BuiltInSimpleAction_EDIT_ITEM_ATTRIBUTE, BuiltInSimpleAction_FIX_ACCOUNT_ISSUE, BuiltInSimpleAction_SHOW_ADDITIONAL_CONTENT
const (
// Default value. Will never be provided by the API.
BuiltInSimpleAction_BUILT_IN_SIMPLE_ACTION_TYPE_UNSPECIFIED BuiltInSimpleAction_BuiltInSimpleActionType = 0
// Redirect the business to the part of your application where they can
// verify their phone.
BuiltInSimpleAction_VERIFY_PHONE BuiltInSimpleAction_BuiltInSimpleActionType = 1
// Redirect the business to the part of your application where they can
// claim their website.
BuiltInSimpleAction_CLAIM_WEBSITE BuiltInSimpleAction_BuiltInSimpleActionType = 2
// Redirect the business to the part of your application where they can add
// products.
BuiltInSimpleAction_ADD_PRODUCTS BuiltInSimpleAction_BuiltInSimpleActionType = 3
// Open a form where the business can edit their contact information.
BuiltInSimpleAction_ADD_CONTACT_INFO BuiltInSimpleAction_BuiltInSimpleActionType = 4
// Redirect the business to the part of your application where they can link
// ads account.
BuiltInSimpleAction_LINK_ADS_ACCOUNT BuiltInSimpleAction_BuiltInSimpleActionType = 5
// Open a form where the business can add their business registration
// number.
BuiltInSimpleAction_ADD_BUSINESS_REGISTRATION_NUMBER BuiltInSimpleAction_BuiltInSimpleActionType = 6
// Open a form where the business can edit an attribute. The attribute that
// needs to be updated is specified in
// [attribute_code][google.shopping.merchant.issueresolution.v1.BuiltInSimpleAction.attribute_code]
// field of the action.
BuiltInSimpleAction_EDIT_ITEM_ATTRIBUTE BuiltInSimpleAction_BuiltInSimpleActionType = 7
// Redirect the business from the product issues to the diagnostic page with
// their account issues in your application.
//
// This action will be returned only for product issues that are caused by
// an account issue and thus the business should resolve the problem on the
// account level.
BuiltInSimpleAction_FIX_ACCOUNT_ISSUE BuiltInSimpleAction_BuiltInSimpleActionType = 8
// Show [additional
// content][google.shopping.merchant.issueresolution.v1.BuiltInSimpleAction.additional_content]
// to the business.
//
// This action will be used for example to deliver a justification from
// national authority.
BuiltInSimpleAction_SHOW_ADDITIONAL_CONTENT BuiltInSimpleAction_BuiltInSimpleActionType = 9
)func (BuiltInSimpleAction_BuiltInSimpleActionType) Descriptor
func (BuiltInSimpleAction_BuiltInSimpleActionType) Descriptor() protoreflect.EnumDescriptorfunc (BuiltInSimpleAction_BuiltInSimpleActionType) Enum
func (x BuiltInSimpleAction_BuiltInSimpleActionType) Enum() *BuiltInSimpleAction_BuiltInSimpleActionTypefunc (BuiltInSimpleAction_BuiltInSimpleActionType) EnumDescriptor
func (BuiltInSimpleAction_BuiltInSimpleActionType) EnumDescriptor() ([]byte, []int)Deprecated: Use BuiltInSimpleAction_BuiltInSimpleActionType.Descriptor instead.
func (BuiltInSimpleAction_BuiltInSimpleActionType) Number
func (x BuiltInSimpleAction_BuiltInSimpleActionType) Number() protoreflect.EnumNumberfunc (BuiltInSimpleAction_BuiltInSimpleActionType) String
func (x BuiltInSimpleAction_BuiltInSimpleActionType) String() stringfunc (BuiltInSimpleAction_BuiltInSimpleActionType) Type
func (BuiltInSimpleAction_BuiltInSimpleActionType) Type() protoreflect.EnumTypeBuiltInUserInputAction
type BuiltInUserInputAction struct {
// Contains the action's context that must be included as part of the
// [TriggerActionPayload.action_context][google.shopping.merchant.issueresolution.v1.TriggerActionPayload.action_context]
// in
// [TriggerActionRequest.payload][google.shopping.merchant.issueresolution.v1.TriggerActionRequest.payload]
// to call the `triggeraction` method. The content should be treated as opaque
// and must not be modified.
ActionContext string `protobuf:"bytes,1,opt,name=action_context,json=actionContext,proto3" json:"action_context,omitempty"`
// Actions may provide multiple different flows. Business selects one that
// fits best to their intent. Selecting the flow is the first step in user's
// interaction with the action. It affects what input fields will be available
// and required and also how the request will be processed.
Flows []*ActionFlow `protobuf:"bytes,3,rep,name=flows,proto3" json:"flows,omitempty"`
// contains filtered or unexported fields
}Action that is implemented and performed in (your) third-party application. The application needs to show an additional content and input form to the business. They can start the action only when they provided all required inputs. The application will request processing of the action by calling the triggeraction method.
func (*BuiltInUserInputAction) Descriptor
func (*BuiltInUserInputAction) Descriptor() ([]byte, []int)Deprecated: Use BuiltInUserInputAction.ProtoReflect.Descriptor instead.
func (*BuiltInUserInputAction) GetActionContext
func (x *BuiltInUserInputAction) GetActionContext() stringfunc (*BuiltInUserInputAction) GetFlows
func (x *BuiltInUserInputAction) GetFlows() []*ActionFlowfunc (*BuiltInUserInputAction) ProtoMessage
func (*BuiltInUserInputAction) ProtoMessage()func (*BuiltInUserInputAction) ProtoReflect
func (x *BuiltInUserInputAction) ProtoReflect() protoreflect.Messagefunc (*BuiltInUserInputAction) Reset
func (x *BuiltInUserInputAction) Reset()func (*BuiltInUserInputAction) String
func (x *BuiltInUserInputAction) String() stringCallout
type Callout struct {
// Can be used to render messages with different severity in different styles.
// Snippets off all types contain important information that should be
// displayed to the business.
StyleHint Callout_CalloutStyleHint `protobuf:"varint,1,opt,name=style_hint,json=styleHint,proto3,enum=google.shopping.merchant.issueresolution.v1.Callout_CalloutStyleHint" json:"style_hint,omitempty"`
// A full message that needs to be shown to the business.
FullMessage *TextWithTooltip `protobuf:"bytes,3,opt,name=full_message,json=fullMessage,proto3" json:"full_message,omitempty"`
// contains filtered or unexported fields
}An important message that should be highlighted. Usually displayed as a banner.
func (*Callout) Descriptor
Deprecated: Use Callout.ProtoReflect.Descriptor instead.
func (*Callout) GetFullMessage
func (x *Callout) GetFullMessage() *TextWithTooltipfunc (*Callout) GetStyleHint
func (x *Callout) GetStyleHint() Callout_CalloutStyleHintfunc (*Callout) ProtoMessage
func (*Callout) ProtoMessage()func (*Callout) ProtoReflect
func (x *Callout) ProtoReflect() protoreflect.Messagefunc (*Callout) Reset
func (x *Callout) Reset()func (*Callout) String
Callout_CalloutStyleHint
type Callout_CalloutStyleHint int32Enum specifying the suggested style, how the message should be rendered.
Callout_CALLOUT_STYLE_HINT_UNSPECIFIED, Callout_ERROR, Callout_WARNING, Callout_INFO
const (
// Default value. Will never be provided by the API.
Callout_CALLOUT_STYLE_HINT_UNSPECIFIED Callout_CalloutStyleHint = 0
// The most important type of information highlighting problems, like an
// unsuccessful outcome of previously requested actions.
Callout_ERROR Callout_CalloutStyleHint = 1
// Information warning about pending problems, risks or deadlines.
Callout_WARNING Callout_CalloutStyleHint = 2
// Default severity for important information like pending status of
// previously requested action or cooldown for re-review.
Callout_INFO Callout_CalloutStyleHint = 3
)func (Callout_CalloutStyleHint) Descriptor
func (Callout_CalloutStyleHint) Descriptor() protoreflect.EnumDescriptorfunc (Callout_CalloutStyleHint) Enum
func (x Callout_CalloutStyleHint) Enum() *Callout_CalloutStyleHintfunc (Callout_CalloutStyleHint) EnumDescriptor
func (Callout_CalloutStyleHint) EnumDescriptor() ([]byte, []int)Deprecated: Use Callout_CalloutStyleHint.Descriptor instead.
func (Callout_CalloutStyleHint) Number
func (x Callout_CalloutStyleHint) Number() protoreflect.EnumNumberfunc (Callout_CalloutStyleHint) String
func (x Callout_CalloutStyleHint) String() stringfunc (Callout_CalloutStyleHint) Type
func (Callout_CalloutStyleHint) Type() protoreflect.EnumTypeContentOption
type ContentOption int32Enum specifying how is the content returned.
ContentOption_CONTENT_OPTION_UNSPECIFIED, ContentOption_PRE_RENDERED_HTML
const (
// Default value. Will never be provided by the API.
ContentOption_CONTENT_OPTION_UNSPECIFIED ContentOption = 0
// Returns the detail of the issue as a pre-rendered HTML text.
ContentOption_PRE_RENDERED_HTML ContentOption = 1
)func (ContentOption) Descriptor
func (ContentOption) Descriptor() protoreflect.EnumDescriptorfunc (ContentOption) Enum
func (x ContentOption) Enum() *ContentOptionfunc (ContentOption) EnumDescriptor
func (ContentOption) EnumDescriptor() ([]byte, []int)Deprecated: Use ContentOption.Descriptor instead.
func (ContentOption) Number
func (x ContentOption) Number() protoreflect.EnumNumberfunc (ContentOption) String
func (x ContentOption) String() stringfunc (ContentOption) Type
func (ContentOption) Type() protoreflect.EnumTypeExternalAction
type ExternalAction struct {
// The type of external action.
Type ExternalAction_ExternalActionType `protobuf:"varint,1,opt,name=type,proto3,enum=google.shopping.merchant.issueresolution.v1.ExternalAction_ExternalActionType" json:"type,omitempty"`
// URL to external system, for example Merchant Center, where the business can
// perform the action.
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// contains filtered or unexported fields
}Action that is implemented and performed outside of the third-party application. It should redirect the business to the provided URL of an external system where they can perform the action. For example to request a review in the Merchant Center.
func (*ExternalAction) Descriptor
func (*ExternalAction) Descriptor() ([]byte, []int)Deprecated: Use ExternalAction.ProtoReflect.Descriptor instead.
func (*ExternalAction) GetType
func (x *ExternalAction) GetType() ExternalAction_ExternalActionTypefunc (*ExternalAction) GetUri
func (x *ExternalAction) GetUri() stringfunc (*ExternalAction) ProtoMessage
func (*ExternalAction) ProtoMessage()func (*ExternalAction) ProtoReflect
func (x *ExternalAction) ProtoReflect() protoreflect.Messagefunc (*ExternalAction) Reset
func (x *ExternalAction) Reset()func (*ExternalAction) String
func (x *ExternalAction) String() stringExternalAction_ExternalActionType
type ExternalAction_ExternalActionType int32Enum specifying the type of action that requires to redirect the business to an external location.
ExternalAction_EXTERNAL_ACTION_TYPE_UNSPECIFIED, ExternalAction_REVIEW_PRODUCT_ISSUE_IN_MERCHANT_CENTER, ExternalAction_REVIEW_ACCOUNT_ISSUE_IN_MERCHANT_CENTER, ExternalAction_LEGAL_APPEAL_IN_HELP_CENTER, ExternalAction_VERIFY_IDENTITY_IN_MERCHANT_CENTER
const (
// Default value. Will never be provided by the API.
ExternalAction_EXTERNAL_ACTION_TYPE_UNSPECIFIED ExternalAction_ExternalActionType = 0
// Redirect to Merchant Center where the business can request a review for
// issue related to their product.
ExternalAction_REVIEW_PRODUCT_ISSUE_IN_MERCHANT_CENTER ExternalAction_ExternalActionType = 1
// Redirect to Merchant Center where the business can request a review for
// issue related to their account.
ExternalAction_REVIEW_ACCOUNT_ISSUE_IN_MERCHANT_CENTER ExternalAction_ExternalActionType = 2
// Redirect to the form in Help Center where the business can request a
// legal appeal for the issue.
ExternalAction_LEGAL_APPEAL_IN_HELP_CENTER ExternalAction_ExternalActionType = 3
// Redirect to Merchant Center where the business can perform identity
// verification.
ExternalAction_VERIFY_IDENTITY_IN_MERCHANT_CENTER ExternalAction_ExternalActionType = 4
)func (ExternalAction_ExternalActionType) Descriptor
func (ExternalAction_ExternalActionType) Descriptor() protoreflect.EnumDescriptorfunc (ExternalAction_ExternalActionType) Enum
func (x ExternalAction_ExternalActionType) Enum() *ExternalAction_ExternalActionTypefunc (ExternalAction_ExternalActionType) EnumDescriptor
func (ExternalAction_ExternalActionType) EnumDescriptor() ([]byte, []int)Deprecated: Use ExternalAction_ExternalActionType.Descriptor instead.
func (ExternalAction_ExternalActionType) Number
func (x ExternalAction_ExternalActionType) Number() protoreflect.EnumNumberfunc (ExternalAction_ExternalActionType) String
func (x ExternalAction_ExternalActionType) String() stringfunc (ExternalAction_ExternalActionType) Type
func (ExternalAction_ExternalActionType) Type() protoreflect.EnumTypeImpact
type Impact struct {
// Optional. Message summarizing the overall impact of the issue. If present,
// it should be rendered to the business. For example: "Disapproves 90k offers
// in 25 countries"
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// The severity of the issue.
Severity Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=google.shopping.merchant.issueresolution.v1.Severity" json:"severity,omitempty"`
// Detailed impact breakdown. Explains the types of restriction the issue has
// in different shopping destinations and territory. If present, it should be
// rendered to the business. Can be shown as a mouse over dropdown or a
// dialog. Each breakdown item represents a group of regions with the same
// impact details.
Breakdowns []*Breakdown `protobuf:"bytes,3,rep,name=breakdowns,proto3" json:"breakdowns,omitempty"`
// contains filtered or unexported fields
}Overall impact of the issue.
func (*Impact) Descriptor
Deprecated: Use Impact.ProtoReflect.Descriptor instead.
func (*Impact) GetBreakdowns
func (*Impact) GetMessage
func (*Impact) GetSeverity
func (*Impact) ProtoMessage
func (*Impact) ProtoMessage()func (*Impact) ProtoReflect
func (x *Impact) ProtoReflect() protoreflect.Messagefunc (*Impact) Reset
func (x *Impact) Reset()func (*Impact) String
InputField
type InputField struct {
// Specific type of the input field.
//
// Types that are assignable to ValueInput:
//
// *InputField_TextInput_
// *InputField_ChoiceInput_
// *InputField_CheckboxInput_
ValueInput isInputField_ValueInput `protobuf_oneof:"value_input"`
// Not for display but need to be sent back for the given input field.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Input field label. There may be more information to be shown in a tooltip.
Label *TextWithTooltip `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
// Whether the field is required. The action button needs to stay disabled
// till values for all required fields are provided.
Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"`
// contains filtered or unexported fields
}Input field that needs to be available to the business. If the field is marked as required, then a value needs to be provided for a successful processing of the request.
func (*InputField) Descriptor
func (*InputField) Descriptor() ([]byte, []int)Deprecated: Use InputField.ProtoReflect.Descriptor instead.
func (*InputField) GetCheckboxInput
func (x *InputField) GetCheckboxInput() *InputField_CheckboxInputfunc (*InputField) GetChoiceInput
func (x *InputField) GetChoiceInput() *InputField_ChoiceInputfunc (*InputField) GetId
func (x *InputField) GetId() stringfunc (*InputField) GetLabel
func (x *InputField) GetLabel() *TextWithTooltipfunc (*InputField) GetRequired
func (x *InputField) GetRequired() boolfunc (*InputField) GetTextInput
func (x *InputField) GetTextInput() *InputField_TextInputfunc (*InputField) GetValueInput
func (m *InputField) GetValueInput() isInputField_ValueInputfunc (*InputField) ProtoMessage
func (*InputField) ProtoMessage()func (*InputField) ProtoReflect
func (x *InputField) ProtoReflect() protoreflect.Messagefunc (*InputField) Reset
func (x *InputField) Reset()func (*InputField) String
func (x *InputField) String() stringInputField_CheckboxInput
type InputField_CheckboxInput struct {
// contains filtered or unexported fields
}Checkbox input allows the business to provide a boolean value. Corresponds to the html input type=checkbox.
If the business checks the box, the input value for the field is true,
otherwise it is false.
This type of input is often used as a confirmation that the business completed required steps before they are allowed to start the action. In such a case, the input field is marked as [required][google.shopping.merchant.issueresolution.v1.InputField.required] and the button to trigger the action should stay disabled until the business checks the box.
func (*InputField_CheckboxInput) Descriptor
func (*InputField_CheckboxInput) Descriptor() ([]byte, []int)Deprecated: Use InputField_CheckboxInput.ProtoReflect.Descriptor instead.
func (*InputField_CheckboxInput) ProtoMessage
func (*InputField_CheckboxInput) ProtoMessage()func (*InputField_CheckboxInput) ProtoReflect
func (x *InputField_CheckboxInput) ProtoReflect() protoreflect.Messagefunc (*InputField_CheckboxInput) Reset
func (x *InputField_CheckboxInput) Reset()func (*InputField_CheckboxInput) String
func (x *InputField_CheckboxInput) String() stringInputField_CheckboxInput_
type InputField_CheckboxInput_ struct {
// Input field to provide a boolean value.
// Corresponds to the [html input
// type=checkbox](https://www.w3.org/TR/2012/WD-html-markup-20121025/input.checkbox.html#input.checkbox).
CheckboxInput *InputField_CheckboxInput `protobuf:"bytes,6,opt,name=checkbox_input,json=checkboxInput,proto3,oneof"`
}InputField_ChoiceInput
type InputField_ChoiceInput struct {
// A list of choices. Only one option can be selected.
Options []*InputField_ChoiceInput_ChoiceInputOption `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}Choice input allows the business to select one of the offered choices. Some choices may be linked to additional input fields that should be displayed under or next to the choice option. The value for the additional input field needs to be provided only when the specific choice is selected by the the business. For example, additional input field can be hidden or disabled until the business selects the specific choice.
func (*InputField_ChoiceInput) Descriptor
func (*InputField_ChoiceInput) Descriptor() ([]byte, []int)Deprecated: Use InputField_ChoiceInput.ProtoReflect.Descriptor instead.
func (*InputField_ChoiceInput) GetOptions
func (x *InputField_ChoiceInput) GetOptions() []*InputField_ChoiceInput_ChoiceInputOptionfunc (*InputField_ChoiceInput) ProtoMessage
func (*InputField_ChoiceInput) ProtoMessage()func (*InputField_ChoiceInput) ProtoReflect
func (x *InputField_ChoiceInput) ProtoReflect() protoreflect.Messagefunc (*InputField_ChoiceInput) Reset
func (x *InputField_ChoiceInput) Reset()func (*InputField_ChoiceInput) String
func (x *InputField_ChoiceInput) String() stringInputField_ChoiceInput_
type InputField_ChoiceInput_ struct {
// Input field to select one of the offered choices.
// Corresponds to the [html input
// type=radio](https://www.w3.org/TR/2012/WD-html-markup-20121025/input.radio.html#input.radio).
ChoiceInput *InputField_ChoiceInput `protobuf:"bytes,5,opt,name=choice_input,json=choiceInput,proto3,oneof"`
}InputField_ChoiceInput_ChoiceInputOption
type InputField_ChoiceInput_ChoiceInputOption struct {
// Not for display but need to be sent back for the selected choice
// option.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Short description of the choice option. There may be more information
// to be shown as a tooltip.
Label *TextWithTooltip `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
// Input that should be displayed when this option is selected.
// The additional input will not contain a `ChoiceInput`.
AdditionalInput *InputField `protobuf:"bytes,3,opt,name=additional_input,json=additionalInput,proto3,oneof" json:"additional_input,omitempty"`
// contains filtered or unexported fields
}A choice that the business can select.
func (*InputField_ChoiceInput_ChoiceInputOption) Descriptor
func (*InputField_ChoiceInput_ChoiceInputOption) Descriptor() ([]byte, []int)Deprecated: Use InputField_ChoiceInput_ChoiceInputOption.ProtoReflect.Descriptor instead.
func (*InputField_ChoiceInput_ChoiceInputOption) GetAdditionalInput
func (x *InputField_ChoiceInput_ChoiceInputOption) GetAdditionalInput() *InputFieldfunc (*InputField_ChoiceInput_ChoiceInputOption) GetId
func (x *InputField_ChoiceInput_ChoiceInputOption) GetId() stringfunc (*InputField_ChoiceInput_ChoiceInputOption) GetLabel
func (x *InputField_ChoiceInput_ChoiceInputOption) GetLabel() *TextWithTooltipfunc (*InputField_ChoiceInput_ChoiceInputOption) ProtoMessage
func (*InputField_ChoiceInput_ChoiceInputOption) ProtoMessage()func (*InputField_ChoiceInput_ChoiceInputOption) ProtoReflect
func (x *InputField_ChoiceInput_ChoiceInputOption) ProtoReflect() protoreflect.Messagefunc (*InputField_ChoiceInput_ChoiceInputOption) Reset
func (x *InputField_ChoiceInput_ChoiceInputOption) Reset()func (*InputField_ChoiceInput_ChoiceInputOption) String
func (x *InputField_ChoiceInput_ChoiceInputOption) String() stringInputField_TextInput
type InputField_TextInput struct {
// Type of the text input
Type InputField_TextInput_TextInputType `protobuf:"varint,1,opt,name=type,proto3,enum=google.shopping.merchant.issueresolution.v1.InputField_TextInput_TextInputType" json:"type,omitempty"`
// Additional info regarding the field to be displayed to the business. For
// example, warning to not include personal identifiable information. There
// may be more information to be shown in a tooltip.
AdditionalInfo *TextWithTooltip `protobuf:"bytes,2,opt,name=additional_info,json=additionalInfo,proto3,oneof" json:"additional_info,omitempty"`
// Information about the required format. If present, it should be shown
// close to the input field to help the business to provide a correct value.
// For example: "VAT numbers should be in a format similar to SK9999999999"
FormatInfo *string `protobuf:"bytes,3,opt,name=format_info,json=formatInfo,proto3,oneof" json:"format_info,omitempty"`
// Text to be used as the
// [aria-label](https://www.w3.org/TR/WCAG20-TECHS/ARIA14.html) for the
// input.
AriaLabel *string `protobuf:"bytes,4,opt,name=aria_label,json=ariaLabel,proto3,oneof" json:"aria_label,omitempty"`
// contains filtered or unexported fields
}Text input allows the business to provide a text value.
func (*InputField_TextInput) Descriptor
func (*InputField_TextInput) Descriptor() ([]byte, []int)Deprecated: Use InputField_TextInput.ProtoReflect.Descriptor instead.
func (*InputField_TextInput) GetAdditionalInfo
func (x *InputField_TextInput) GetAdditionalInfo() *TextWithTooltipfunc (*InputField_TextInput) GetAriaLabel
func (x *InputField_TextInput) GetAriaLabel() stringfunc (*InputField_TextInput) GetFormatInfo
func (x *InputField_TextInput) GetFormatInfo() stringfunc (*InputField_TextInput) GetType
func (x *InputField_TextInput) GetType() InputField_TextInput_TextInputTypefunc (*InputField_TextInput) ProtoMessage
func (*InputField_TextInput) ProtoMessage()func (*InputField_TextInput) ProtoReflect
func (x *InputField_TextInput) ProtoReflect() protoreflect.Messagefunc (*InputField_TextInput) Reset
func (x *InputField_TextInput) Reset()func (*InputField_TextInput) String
func (x *InputField_TextInput) String() stringInputField_TextInput_
type InputField_TextInput_ struct {
// Input field to provide text information.
// Corresponds to the [html input
// type=text](https://www.w3.org/TR/2012/WD-html-markup-20121025/input.text.html#input.text)
// or [html
// textarea](https://www.w3.org/TR/2012/WD-html-markup-20121025/textarea.html#textarea).
TextInput *InputField_TextInput `protobuf:"bytes,4,opt,name=text_input,json=textInput,proto3,oneof"`
}InputField_TextInput_TextInputType
type InputField_TextInput_TextInputType int32Enum specifying the type of the text input and how it should be rendered.
InputField_TextInput_TEXT_INPUT_TYPE_UNSPECIFIED, InputField_TextInput_GENERIC_SHORT_TEXT, InputField_TextInput_GENERIC_LONG_TEXT
const (
// Default value. Will never be provided by the API.
InputField_TextInput_TEXT_INPUT_TYPE_UNSPECIFIED InputField_TextInput_TextInputType = 0
// Used when a short text is expected. The field can be rendered as a
// [text
// field](https://www.w3.org/TR/2012/WD-html-markup-20121025/input.text.html#input.text).
InputField_TextInput_GENERIC_SHORT_TEXT InputField_TextInput_TextInputType = 1
// Used when a longer text is expected. The field should be rendered as a
// [textarea](https://www.w3.org/TR/2012/WD-html-markup-20121025/textarea.html#textarea).
InputField_TextInput_GENERIC_LONG_TEXT InputField_TextInput_TextInputType = 2
)func (InputField_TextInput_TextInputType) Descriptor
func (InputField_TextInput_TextInputType) Descriptor() protoreflect.EnumDescriptorfunc (InputField_TextInput_TextInputType) Enum
func (x InputField_TextInput_TextInputType) Enum() *InputField_TextInput_TextInputTypefunc (InputField_TextInput_TextInputType) EnumDescriptor
func (InputField_TextInput_TextInputType) EnumDescriptor() ([]byte, []int)Deprecated: Use InputField_TextInput_TextInputType.Descriptor instead.
func (InputField_TextInput_TextInputType) Number
func (x InputField_TextInput_TextInputType) Number() protoreflect.EnumNumberfunc (InputField_TextInput_TextInputType) String
func (x InputField_TextInput_TextInputType) String() stringfunc (InputField_TextInput_TextInputType) Type
func (InputField_TextInput_TextInputType) Type() protoreflect.EnumTypeInputValue
type InputValue struct {
// Value provided by the business.
//
// Types that are assignable to Value:
//
// *InputValue_TextInputValue_
// *InputValue_ChoiceInputValue_
// *InputValue_CheckboxInputValue_
Value isInputValue_Value `protobuf_oneof:"value"`
// Required. [Id][google.shopping.merchant.issueresolution.v1.InputField.id]
// of the corresponding input field.
InputFieldId string `protobuf:"bytes,1,opt,name=input_field_id,json=inputFieldId,proto3" json:"input_field_id,omitempty"`
// contains filtered or unexported fields
}Input provided by the business for input field.
func (*InputValue) Descriptor
func (*InputValue) Descriptor() ([]byte, []int)Deprecated: Use InputValue.ProtoReflect.Descriptor instead.
func (*InputValue) GetCheckboxInputValue
func (x *InputValue) GetCheckboxInputValue() *InputValue_CheckboxInputValuefunc (*InputValue) GetChoiceInputValue
func (x *InputValue) GetChoiceInputValue() *InputValue_ChoiceInputValuefunc (*InputValue) GetInputFieldId
func (x *InputValue) GetInputFieldId() stringfunc (*InputValue) GetTextInputValue
func (x *InputValue) GetTextInputValue() *InputValue_TextInputValuefunc (*InputValue) GetValue
func (m *InputValue) GetValue() isInputValue_Valuefunc (*InputValue) ProtoMessage
func (*InputValue) ProtoMessage()func (*InputValue) ProtoReflect
func (x *InputValue) ProtoReflect() protoreflect.Messagefunc (*InputValue) Reset
func (x *InputValue) Reset()func (*InputValue) String
func (x *InputValue) String() stringInputValue_CheckboxInputValue
type InputValue_CheckboxInputValue struct {
// Required. True if the business checked the box field. False otherwise.
Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}Value for [checkbox input][google.shopping.merchant.issueresolution.v1.InputField.CheckboxInput] field.
func (*InputValue_CheckboxInputValue) Descriptor
func (*InputValue_CheckboxInputValue) Descriptor() ([]byte, []int)Deprecated: Use InputValue_CheckboxInputValue.ProtoReflect.Descriptor instead.
func (*InputValue_CheckboxInputValue) GetValue
func (x *InputValue_CheckboxInputValue) GetValue() boolfunc (*InputValue_CheckboxInputValue) ProtoMessage
func (*InputValue_CheckboxInputValue) ProtoMessage()func (*InputValue_CheckboxInputValue) ProtoReflect
func (x *InputValue_CheckboxInputValue) ProtoReflect() protoreflect.Messagefunc (*InputValue_CheckboxInputValue) Reset
func (x *InputValue_CheckboxInputValue) Reset()func (*InputValue_CheckboxInputValue) String
func (x *InputValue_CheckboxInputValue) String() stringInputValue_CheckboxInputValue_
type InputValue_CheckboxInputValue_ struct {
// Value for [checkbox
// input][google.shopping.merchant.issueresolution.v1.InputField.CheckboxInput]
// field.
CheckboxInputValue *InputValue_CheckboxInputValue `protobuf:"bytes,4,opt,name=checkbox_input_value,json=checkboxInputValue,proto3,oneof"`
}InputValue_ChoiceInputValue
type InputValue_ChoiceInputValue struct {
// Required. [Id][InputField.ChoiceInput.id] of the option that was selected
// by the business.
ChoiceInputOptionId string `protobuf:"bytes,1,opt,name=choice_input_option_id,json=choiceInputOptionId,proto3" json:"choice_input_option_id,omitempty"`
// contains filtered or unexported fields
}Value for [choice input][google.shopping.merchant.issueresolution.v1.InputField.ChoiceInput] field.
func (*InputValue_ChoiceInputValue) Descriptor
func (*InputValue_ChoiceInputValue) Descriptor() ([]byte, []int)Deprecated: Use InputValue_ChoiceInputValue.ProtoReflect.Descriptor instead.
func (*InputValue_ChoiceInputValue) GetChoiceInputOptionId
func (x *InputValue_ChoiceInputValue) GetChoiceInputOptionId() stringfunc (*InputValue_ChoiceInputValue) ProtoMessage
func (*InputValue_ChoiceInputValue) ProtoMessage()func (*InputValue_ChoiceInputValue) ProtoReflect
func (x *InputValue_ChoiceInputValue) ProtoReflect() protoreflect.Messagefunc (*InputValue_ChoiceInputValue) Reset
func (x *InputValue_ChoiceInputValue) Reset()func (*InputValue_ChoiceInputValue) String
func (x *InputValue_ChoiceInputValue) String() stringInputValue_ChoiceInputValue_
type InputValue_ChoiceInputValue_ struct {
// Value for [choice
// input][google.shopping.merchant.issueresolution.v1.InputField.ChoiceInput]
// field.
ChoiceInputValue *InputValue_ChoiceInputValue `protobuf:"bytes,3,opt,name=choice_input_value,json=choiceInputValue,proto3,oneof"`
}InputValue_TextInputValue
type InputValue_TextInputValue struct {
// Required. Text provided by the business.
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}Value for [text input][google.shopping.merchant.issueresolution.v1.InputField.TextInput] field.
func (*InputValue_TextInputValue) Descriptor
func (*InputValue_TextInputValue) Descriptor() ([]byte, []int)Deprecated: Use InputValue_TextInputValue.ProtoReflect.Descriptor instead.
func (*InputValue_TextInputValue) GetValue
func (x *InputValue_TextInputValue) GetValue() stringfunc (*InputValue_TextInputValue) ProtoMessage
func (*InputValue_TextInputValue) ProtoMessage()func (*InputValue_TextInputValue) ProtoReflect
func (x *InputValue_TextInputValue) ProtoReflect() protoreflect.Messagefunc (*InputValue_TextInputValue) Reset
func (x *InputValue_TextInputValue) Reset()func (*InputValue_TextInputValue) String
func (x *InputValue_TextInputValue) String() stringInputValue_TextInputValue_
type InputValue_TextInputValue_ struct {
// Value for [text
// input][google.shopping.merchant.issueresolution.v1.InputField.TextInput]
// field.
TextInputValue *InputValue_TextInputValue `protobuf:"bytes,2,opt,name=text_input_value,json=textInputValue,proto3,oneof"`
}IssueResolutionServiceClient
type IssueResolutionServiceClient interface {
// Provide a list of business's account issues with an issue resolution
// content and available actions. This content and actions are meant to be
// rendered and shown in third-party applications.
RenderAccountIssues(ctx context.Context, in *RenderAccountIssuesRequest, opts ...grpc.CallOption) (*RenderAccountIssuesResponse, error)
// Provide a list of issues for business's product with an issue resolution
// content and available actions. This content and actions are meant to be
// rendered and shown in third-party applications.
RenderProductIssues(ctx context.Context, in *RenderProductIssuesRequest, opts ...grpc.CallOption) (*RenderProductIssuesResponse, error)
// Start an action. The action can be requested by a business in
// third-party application. Before the business can request the action, the
// third-party application needs to show them action specific content and
// display a user input form.
//
// The action can be successfully started only once all `required` inputs are
// provided. If any `required` input is missing, or invalid value was
// provided, the service will return 400 error. Validation errors will contain
// [Ids][google.shopping.merchant.issueresolution.v1.InputField.id] for all
// problematic field together with translated, human readable error messages
// that can be shown to the user.
TriggerAction(ctx context.Context, in *TriggerActionRequest, opts ...grpc.CallOption) (*TriggerActionResponse, error)
}IssueResolutionServiceClient is the client API for IssueResolutionService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewIssueResolutionServiceClient
func NewIssueResolutionServiceClient(cc grpc.ClientConnInterface) IssueResolutionServiceClientIssueResolutionServiceServer
type IssueResolutionServiceServer interface {
// Provide a list of business's account issues with an issue resolution
// content and available actions. This content and actions are meant to be
// rendered and shown in third-party applications.
RenderAccountIssues(context.Context, *RenderAccountIssuesRequest) (*RenderAccountIssuesResponse, error)
// Provide a list of issues for business's product with an issue resolution
// content and available actions. This content and actions are meant to be
// rendered and shown in third-party applications.
RenderProductIssues(context.Context, *RenderProductIssuesRequest) (*RenderProductIssuesResponse, error)
// Start an action. The action can be requested by a business in
// third-party application. Before the business can request the action, the
// third-party application needs to show them action specific content and
// display a user input form.
//
// The action can be successfully started only once all `required` inputs are
// provided. If any `required` input is missing, or invalid value was
// provided, the service will return 400 error. Validation errors will contain
// [Ids][google.shopping.merchant.issueresolution.v1.InputField.id] for all
// problematic field together with translated, human readable error messages
// that can be shown to the user.
TriggerAction(context.Context, *TriggerActionRequest) (*TriggerActionResponse, error)
}IssueResolutionServiceServer is the server API for IssueResolutionService service.
ListAggregateProductStatusesRequest
type ListAggregateProductStatusesRequest struct {
// Required. The account to list aggregate product statuses for.
// Format: `accounts/{account}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of aggregate product statuses to return. The
// service may return fewer than this value. If unspecified, at most 25
// aggregate product statuses are returned. The maximum value is 250; values
// above 250 are coerced to 250.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous
// `ListAggregateProductStatuses` call. Provide this to retrieve the
// subsequent page.
//
// When paginating, all other parameters provided to
// `ListAggregateProductStatuses` 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. A filter expression that filters the aggregate product statuses.
// Filtering is only supported by the `reporting_context` and `country` field.
// For example: `reporting_context = "SHOPPING_ADS" AND country = "US"`.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}Request message for the ListAggregateProductStatuses method.
func (*ListAggregateProductStatusesRequest) Descriptor
func (*ListAggregateProductStatusesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListAggregateProductStatusesRequest.ProtoReflect.Descriptor instead.
func (*ListAggregateProductStatusesRequest) GetFilter
func (x *ListAggregateProductStatusesRequest) GetFilter() stringfunc (*ListAggregateProductStatusesRequest) GetPageSize
func (x *ListAggregateProductStatusesRequest) GetPageSize() int32func (*ListAggregateProductStatusesRequest) GetPageToken
func (x *ListAggregateProductStatusesRequest) GetPageToken() stringfunc (*ListAggregateProductStatusesRequest) GetParent
func (x *ListAggregateProductStatusesRequest) GetParent() stringfunc (*ListAggregateProductStatusesRequest) ProtoMessage
func (*ListAggregateProductStatusesRequest) ProtoMessage()func (*ListAggregateProductStatusesRequest) ProtoReflect
func (x *ListAggregateProductStatusesRequest) ProtoReflect() protoreflect.Messagefunc (*ListAggregateProductStatusesRequest) Reset
func (x *ListAggregateProductStatusesRequest) Reset()func (*ListAggregateProductStatusesRequest) String
func (x *ListAggregateProductStatusesRequest) String() stringListAggregateProductStatusesResponse
type ListAggregateProductStatusesResponse struct {
// The `AggregateProductStatuses` resources for the given account.
AggregateProductStatuses []*AggregateProductStatus `protobuf:"bytes,1,rep,name=aggregate_product_statuses,json=aggregateProductStatuses,proto3" json:"aggregate_product_statuses,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 ListAggregateProductStatuses method.
func (*ListAggregateProductStatusesResponse) Descriptor
func (*ListAggregateProductStatusesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListAggregateProductStatusesResponse.ProtoReflect.Descriptor instead.
func (*ListAggregateProductStatusesResponse) GetAggregateProductStatuses
func (x *ListAggregateProductStatusesResponse) GetAggregateProductStatuses() []*AggregateProductStatusfunc (*ListAggregateProductStatusesResponse) GetNextPageToken
func (x *ListAggregateProductStatusesResponse) GetNextPageToken() stringfunc (*ListAggregateProductStatusesResponse) ProtoMessage
func (*ListAggregateProductStatusesResponse) ProtoMessage()func (*ListAggregateProductStatusesResponse) ProtoReflect
func (x *ListAggregateProductStatusesResponse) ProtoReflect() protoreflect.Messagefunc (*ListAggregateProductStatusesResponse) Reset
func (x *ListAggregateProductStatusesResponse) Reset()func (*ListAggregateProductStatusesResponse) String
func (x *ListAggregateProductStatusesResponse) String() stringRenderAccountIssuesRequest
type RenderAccountIssuesRequest struct {
// Required. The account to fetch issues for.
// Format: `accounts/{account}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The [IETF BCP-47](https://tools.ietf.org/html/bcp47) language
// code used to localize issue resolution content. If not set, the result will
// be in default language `en-US`.
LanguageCode string `protobuf:"bytes,2,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 an issue resolution content. For example
// 'America/Los_Angeles'. If not set, results will use as a default UTC.
TimeZone string `protobuf:"bytes,3,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
// Optional. The payload for configuring how the content should be rendered.
Payload *RenderIssuesRequestPayload `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
// contains filtered or unexported fields
}Request to provide issue resolution content and actions for business's account issues.
func (*RenderAccountIssuesRequest) Descriptor
func (*RenderAccountIssuesRequest) Descriptor() ([]byte, []int)Deprecated: Use RenderAccountIssuesRequest.ProtoReflect.Descriptor instead.
func (*RenderAccountIssuesRequest) GetLanguageCode
func (x *RenderAccountIssuesRequest) GetLanguageCode() stringfunc (*RenderAccountIssuesRequest) GetName
func (x *RenderAccountIssuesRequest) GetName() stringfunc (*RenderAccountIssuesRequest) GetPayload
func (x *RenderAccountIssuesRequest) GetPayload() *RenderIssuesRequestPayloadfunc (*RenderAccountIssuesRequest) GetTimeZone
func (x *RenderAccountIssuesRequest) GetTimeZone() stringfunc (*RenderAccountIssuesRequest) ProtoMessage
func (*RenderAccountIssuesRequest) ProtoMessage()func (*RenderAccountIssuesRequest) ProtoReflect
func (x *RenderAccountIssuesRequest) ProtoReflect() protoreflect.Messagefunc (*RenderAccountIssuesRequest) Reset
func (x *RenderAccountIssuesRequest) Reset()func (*RenderAccountIssuesRequest) String
func (x *RenderAccountIssuesRequest) String() stringRenderAccountIssuesResponse
type RenderAccountIssuesResponse struct {
// List of account issues for a given account.
//
// This list can be shown with compressed, expandable items. In the compressed
// form, the title and impact should be shown for each issue. Once the issue
// is expanded, the detailed
// [content][google.shopping.merchant.issueresolution.v1.RenderedIssue.prerendered_content]
// and available
// [actions][google.shopping.merchant.issueresolution.v1.RenderedIssue.actions]
// should be rendered.
RenderedIssues []*RenderedIssue `protobuf:"bytes,1,rep,name=rendered_issues,json=renderedIssues,proto3" json:"rendered_issues,omitempty"`
// contains filtered or unexported fields
}Response containing an issue resolution content and actions for listed account issues.
func (*RenderAccountIssuesResponse) Descriptor
func (*RenderAccountIssuesResponse) Descriptor() ([]byte, []int)Deprecated: Use RenderAccountIssuesResponse.ProtoReflect.Descriptor instead.
func (*RenderAccountIssuesResponse) GetRenderedIssues
func (x *RenderAccountIssuesResponse) GetRenderedIssues() []*RenderedIssuefunc (*RenderAccountIssuesResponse) ProtoMessage
func (*RenderAccountIssuesResponse) ProtoMessage()func (*RenderAccountIssuesResponse) ProtoReflect
func (x *RenderAccountIssuesResponse) ProtoReflect() protoreflect.Messagefunc (*RenderAccountIssuesResponse) Reset
func (x *RenderAccountIssuesResponse) Reset()func (*RenderAccountIssuesResponse) String
func (x *RenderAccountIssuesResponse) String() stringRenderIssuesRequestPayload
type RenderIssuesRequestPayload struct {
// Optional. How the detailed content should be returned. Default option is to
// return the content as a pre-rendered HTML text.
ContentOption *ContentOption `protobuf:"varint,1,opt,name=content_option,json=contentOption,proto3,enum=google.shopping.merchant.issueresolution.v1.ContentOption,oneof" json:"content_option,omitempty"`
// Optional. How actions with user input form should be handled. If not
// provided, actions will be returned as links that points the business to
// Merchant Center where they can request the action.
UserInputActionOption *UserInputActionRenderingOption `protobuf:"varint,2,opt,name=user_input_action_option,json=userInputActionOption,proto3,enum=google.shopping.merchant.issueresolution.v1.UserInputActionRenderingOption,oneof" json:"user_input_action_option,omitempty"`
// contains filtered or unexported fields
}The payload for configuring how the content should be rendered.
func (*RenderIssuesRequestPayload) Descriptor
func (*RenderIssuesRequestPayload) Descriptor() ([]byte, []int)Deprecated: Use RenderIssuesRequestPayload.ProtoReflect.Descriptor instead.
func (*RenderIssuesRequestPayload) GetContentOption
func (x *RenderIssuesRequestPayload) GetContentOption() ContentOptionfunc (*RenderIssuesRequestPayload) GetUserInputActionOption
func (x *RenderIssuesRequestPayload) GetUserInputActionOption() UserInputActionRenderingOptionfunc (*RenderIssuesRequestPayload) ProtoMessage
func (*RenderIssuesRequestPayload) ProtoMessage()func (*RenderIssuesRequestPayload) ProtoReflect
func (x *RenderIssuesRequestPayload) ProtoReflect() protoreflect.Messagefunc (*RenderIssuesRequestPayload) Reset
func (x *RenderIssuesRequestPayload) Reset()func (*RenderIssuesRequestPayload) String
func (x *RenderIssuesRequestPayload) String() stringRenderProductIssuesRequest
type RenderProductIssuesRequest struct {
// Required. The name of the product to fetch issues for.
// Format: `accounts/{account}/products/{product}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The [IETF BCP-47](https://tools.ietf.org/html/bcp47) language
// code used to localize an issue resolution content. If not set, the result
// will be in default language `en-US`.
LanguageCode string `protobuf:"bytes,2,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 an issue resolution content. For example
// 'America/Los_Angeles'. If not set, results will use as a default UTC.
TimeZone string `protobuf:"bytes,3,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
// Optional. The payload for configuring how the content should be rendered.
Payload *RenderIssuesRequestPayload `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
// contains filtered or unexported fields
}Request to provide an issue resolution content and actions for product issues of business's product.
func (*RenderProductIssuesRequest) Descriptor
func (*RenderProductIssuesRequest) Descriptor() ([]byte, []int)Deprecated: Use RenderProductIssuesRequest.ProtoReflect.Descriptor instead.
func (*RenderProductIssuesRequest) GetLanguageCode
func (x *RenderProductIssuesRequest) GetLanguageCode() stringfunc (*RenderProductIssuesRequest) GetName
func (x *RenderProductIssuesRequest) GetName() stringfunc (*RenderProductIssuesRequest) GetPayload
func (x *RenderProductIssuesRequest) GetPayload() *RenderIssuesRequestPayloadfunc (*RenderProductIssuesRequest) GetTimeZone
func (x *RenderProductIssuesRequest) GetTimeZone() stringfunc (*RenderProductIssuesRequest) ProtoMessage
func (*RenderProductIssuesRequest) ProtoMessage()func (*RenderProductIssuesRequest) ProtoReflect
func (x *RenderProductIssuesRequest) ProtoReflect() protoreflect.Messagefunc (*RenderProductIssuesRequest) Reset
func (x *RenderProductIssuesRequest) Reset()func (*RenderProductIssuesRequest) String
func (x *RenderProductIssuesRequest) String() stringRenderProductIssuesResponse
type RenderProductIssuesResponse struct {
// List of issues for a given product.
//
// This list can be shown with compressed, expandable items. In the compressed
// form, the
// [title][google.shopping.merchant.issueresolution.v1.RenderedIssue.title]
// and
// [impact][google.shopping.merchant.issueresolution.v1.RenderedIssue.impact]
// should be shown for each issue. Once the issue is expanded, the detailed
// [content][google.shopping.merchant.issueresolution.v1.RenderedIssue.prerendered_content]
// and available
// [actions][google.shopping.merchant.issueresolution.v1.RenderedIssue.actions]
// should be rendered.
RenderedIssues []*RenderedIssue `protobuf:"bytes,1,rep,name=rendered_issues,json=renderedIssues,proto3" json:"rendered_issues,omitempty"`
// contains filtered or unexported fields
}Response containing an issue resolution content and actions for listed product issues.
func (*RenderProductIssuesResponse) Descriptor
func (*RenderProductIssuesResponse) Descriptor() ([]byte, []int)Deprecated: Use RenderProductIssuesResponse.ProtoReflect.Descriptor instead.
func (*RenderProductIssuesResponse) GetRenderedIssues
func (x *RenderProductIssuesResponse) GetRenderedIssues() []*RenderedIssuefunc (*RenderProductIssuesResponse) ProtoMessage
func (*RenderProductIssuesResponse) ProtoMessage()func (*RenderProductIssuesResponse) ProtoReflect
func (x *RenderProductIssuesResponse) ProtoReflect() protoreflect.Messagefunc (*RenderProductIssuesResponse) Reset
func (x *RenderProductIssuesResponse) Reset()func (*RenderProductIssuesResponse) String
func (x *RenderProductIssuesResponse) String() stringRenderedIssue
type RenderedIssue struct {
// Detailed content of the issue. Should be shown to the business when they
// expand the issue. The form in which is the content returned is specified
// with the [content
// option][google.shopping.merchant.issueresolution.v1.RenderIssuesRequestPayload.content_option]
// request field.
//
// Types that are assignable to Content:
//
// *RenderedIssue_PrerenderedContent
Content isRenderedIssue_Content `protobuf_oneof:"content"`
// Out-of-court dispute settlement (ODS) contains a link to a page where
// the business can bring their appeal to an [external
// body](https://support.google.com/european-union-digital-services-act-redress-options/answer/13535501).
// It may contains a detailed instructions and any values needed for the
// business to proceed with their request.
//
// The ODS is a part of the EU's Digital Service ACT (DSA). If present, it
// should be shown to the business.
//
// The ODS may differ for individual issues and thus it should be by default
// shown in the detail of the issue. It could be shown next to
// [actions][google.shopping.merchant.issueresolution.v1.RenderedIssue.actions]
// for the issue.
//
// In some cases the ODS could be the same for all issues in the list. If the
// values for individual issues do not differ, then the ODS could be shown
// only once. For example under the list with issues. This is an optional UX
// improvement. If values differ, then ODS needs to be shown in details of
// individual issues.
//
// Types that are assignable to OutOfCourtDisputeSettlement:
//
// *RenderedIssue_PrerenderedOutOfCourtDisputeSettlement
OutOfCourtDisputeSettlement isRenderedIssue_OutOfCourtDisputeSettlement `protobuf_oneof:"out_of_court_dispute_settlement"`
// Title of the issue.
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
// Clarifies the severity of the issue.
//
// The [summarizing
// message][google.shopping.merchant.issueresolution.v1.Impact.message], if
// present, should be shown right under the title for each issue. It helps
// business to quickly understand the impact of the issue.
//
// The detailed
// [breakdown][google.shopping.merchant.issueresolution.v1.Impact.breakdowns]
// helps the business to fully understand the impact of the issue. It can be
// rendered as dialog that opens when the business mouse over the summarized
// impact statement.
//
// Issues with different
// [severity][google.shopping.merchant.issueresolution.v1.Impact.severity] can
// be styled differently. They may use a different color or icon to signal the
// difference between `ERROR`, `WARNING` and `INFO`.
Impact *Impact `protobuf:"bytes,2,opt,name=impact,proto3" json:"impact,omitempty"`
// A list of actionable steps that can be executed to solve the issue. An
// example is requesting a re-review or providing arguments when business
// disagrees with the issue.
//
// Actions that are supported in (your) third-party application can be
// rendered as buttons and should be available to the business when they
// expand the issue.
Actions []*Action `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"`
// contains filtered or unexported fields
}An issue affecting specific business or their product.
func (*RenderedIssue) Descriptor
func (*RenderedIssue) Descriptor() ([]byte, []int)Deprecated: Use RenderedIssue.ProtoReflect.Descriptor instead.
func (*RenderedIssue) GetActions
func (x *RenderedIssue) GetActions() []*Actionfunc (*RenderedIssue) GetContent
func (m *RenderedIssue) GetContent() isRenderedIssue_Contentfunc (*RenderedIssue) GetImpact
func (x *RenderedIssue) GetImpact() *Impactfunc (*RenderedIssue) GetOutOfCourtDisputeSettlement
func (m *RenderedIssue) GetOutOfCourtDisputeSettlement() isRenderedIssue_OutOfCourtDisputeSettlementfunc (*RenderedIssue) GetPrerenderedContent
func (x *RenderedIssue) GetPrerenderedContent() stringfunc (*RenderedIssue) GetPrerenderedOutOfCourtDisputeSettlement
func (x *RenderedIssue) GetPrerenderedOutOfCourtDisputeSettlement() stringfunc (*RenderedIssue) GetTitle
func (x *RenderedIssue) GetTitle() stringfunc (*RenderedIssue) ProtoMessage
func (*RenderedIssue) ProtoMessage()func (*RenderedIssue) ProtoReflect
func (x *RenderedIssue) ProtoReflect() protoreflect.Messagefunc (*RenderedIssue) Reset
func (x *RenderedIssue) Reset()func (*RenderedIssue) String
func (x *RenderedIssue) String() stringRenderedIssue_PrerenderedContent
type RenderedIssue_PrerenderedContent struct {
// Details of the issue as a pre-rendered HTML. HTML elements contain CSS
// classes that can be used to customize the style of the content.
//
// Always sanitize the HTML before embedding it directly to your
// application. The sanitizer needs to allow basic HTML tags, such as:
// `div`, `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example,
// you can use [DOMPurify](https://www.npmjs.com/package/dompurify).
//
// CSS classes:
//
// * `issue-detail` - top level container for the detail of the issue
// * `callout-banners` - section of the `issue-detail` with callout banners
// * `callout-banner` - single callout banner, inside `callout-banners`
// * `callout-banner-info` - callout with important information (default)
// * `callout-banner-warning` - callout with a warning
// * `callout-banner-error` - callout informing about an error (most severe)
// * `issue-content` - section of the `issue-detail`, contains multiple
// `content-element`
// * `content-element` - content element such as a list, link or paragraph,
// inside `issue-content`
// * `root-causes` - unordered list with items describing root causes of the
// issue, inside `issue-content`
// * `root-causes-intro` - intro text before the `root-causes` list, inside
// `issue-content`
// * `segment` - section of the text, `span` inside paragraph
// * `segment-attribute` - section of the text that represents a product
// attribute, for example 'image\_link'
// * `segment-literal` - section of the text that contains a special value,
// for example '0-1000 kg'
// * `segment-bold` - section of the text that should be rendered as bold
// * `segment-italic` - section of the text that should be rendered as
// italic
// * `tooltip` - used on paragraphs that should be rendered with a tooltip.
// A section of the text in such a paragraph will have a class
// `tooltip-text` and is intended to be shown in a mouse over dialog. If the
// style is not used, the `tooltip-text` section would be shown on a new
// line, after the main part of the text.
// * `tooltip-text` - marks a section of the text within a `tooltip`, that
// is intended to be shown in a mouse over dialog.
// * `tooltip-icon` - marks a section of the text within a `tooltip`, that
// can be replaced with a tooltip icon, for example '?' or 'i'. By default,
// this section contains a `br` tag, that is separating the main text and
// the tooltip text when the style is not used.
// * `tooltip-style-question` - the tooltip shows helpful information,
// can use the '?' as an icon.
// * `tooltip-style-info` - the tooltip adds additional information fitting
// to the context, can use the 'i' as an icon.
// * `content-moderation` - marks the paragraph that explains how the issue
// was identified.
// * `new-element` - Present for new elements added to the pre-rendered
// content in the future. To make sure that a new content element does not
// break your style, you can hide everything with this class.
PrerenderedContent string `protobuf:"bytes,3,opt,name=prerendered_content,json=prerenderedContent,proto3,oneof"`
}RenderedIssue_PrerenderedOutOfCourtDisputeSettlement
type RenderedIssue_PrerenderedOutOfCourtDisputeSettlement struct {
// Pre-rendered HTML that contains a link to the external location where the
// ODS can be requested and instructions for how to request it. HTML
// elements contain CSS classes that can be used to customize the style of
// this snippet.
//
// Always sanitize the HTML before embedding it directly to your
// application. The sanitizer needs to allow basic HTML tags, such as:
// `div`, `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example,
// you can use [DOMPurify](https://www.npmjs.com/package/dompurify).
//
// CSS classes:
//
// * `ods-section`* - wrapper around the out-of-court dispute resolution
// section
// * `ods-description`* - intro text for the out-of-court dispute
// resolution. It may contain multiple segments and a link.
// * `ods-param`* - wrapper around the header-value pair for parameters that
// the business may need to provide during the ODS process.
// * `ods-routing-id`* - ods param for the Routing ID.
// * `ods-reference-id`* - ods param for the Routing ID.
// * `ods-param-header`* - header for the ODS parameter
// * `ods-param-value`* - value of the ODS parameter. This value should be
// rendered in a way that it is easy for the user to identify and copy.
// * `segment` - section of the text, `span` inside paragraph
// * `segment-attribute` - section of the text that represents a product
// attribute, for example 'image\_link'
// * `segment-literal` - section of the text that contains a special value,
// for example '0-1000 kg'
// * `segment-bold` - section of the text that should be rendered as bold
// * `segment-italic` - section of the text that should be rendered as
// italic
// * `tooltip` - used on paragraphs that should be rendered with a tooltip.
// A section of the text in such a paragraph will have a class
// `tooltip-text` and is intended to be shown in a mouse over dialog. If the
// style is not used, the `tooltip-text` section would be shown on a new
// line, after the main part of the text.
// * `tooltip-text` - marks a section of the text within a `tooltip`, that
// is intended to be shown in a mouse over dialog.
// * `tooltip-icon` - marks a section of the text within a `tooltip`, that
// can be replaced with a tooltip icon, for example '?' or 'i'. By default,
// this section contains a `br` tag, that is separating the main text and
// the tooltip text when the style is not used.
// * `tooltip-style-question` - the tooltip shows helpful information,
// can use the '?' as an icon.
// * `tooltip-style-info` - the tooltip adds additional information fitting
// to the context, can use the 'i' as an icon.
PrerenderedOutOfCourtDisputeSettlement string `protobuf:"bytes,5,opt,name=prerendered_out_of_court_dispute_settlement,json=prerenderedOutOfCourtDisputeSettlement,proto3,oneof"`
}Severity
type Severity int32Enum specifying the severity of the issue.
Severity_SEVERITY_UNSPECIFIED, Severity_ERROR, Severity_WARNING, Severity_INFO
const (
// Default value. Will never be provided by the API.
Severity_SEVERITY_UNSPECIFIED Severity = 0
// Causes either an account suspension or an item disapproval. Errors should
// be resolved as soon as possible to ensure items are eligible to appear in
// results again.
Severity_ERROR Severity = 1
// Warnings can negatively impact the performance of ads and can lead to item
// or account suspensions in the future unless the issue is resolved.
Severity_WARNING Severity = 2
// Infos are suggested optimizations to increase data quality. Resolving these
// issues is recommended, but not required.
Severity_INFO Severity = 3
)func (Severity) Descriptor
func (Severity) Descriptor() protoreflect.EnumDescriptorfunc (Severity) Enum
func (Severity) EnumDescriptor
Deprecated: Use Severity.Descriptor instead.
func (Severity) Number
func (x Severity) Number() protoreflect.EnumNumberfunc (Severity) String
func (Severity) Type
func (Severity) Type() protoreflect.EnumTypeTextWithTooltip
type TextWithTooltip struct {
// Value of the text message. The form in which the value is returned is
// specified with the content option request field.
//
// Types that are assignable to Value:
//
// *TextWithTooltip_SimpleValue
Value isTextWithTooltip_Value `protobuf_oneof:"value"`
// Text that is meant to be shown in a tooltip for the main message. The
// tooltip is present when there is additional content needed to be available
// to the business. The form in which the value is returned is specified with
// the content option request field.
//
// Types that are assignable to TooltipValue:
//
// *TextWithTooltip_SimpleTooltipValue
TooltipValue isTextWithTooltip_TooltipValue `protobuf_oneof:"tooltip_value"`
// The suggested type of an icon for tooltip, if a tooltip is present.
TooltipIconStyle TextWithTooltip_TooltipIconStyle `protobuf:"varint,3,opt,name=tooltip_icon_style,json=tooltipIconStyle,proto3,enum=google.shopping.merchant.issueresolution.v1.TextWithTooltip_TooltipIconStyle" json:"tooltip_icon_style,omitempty"`
// contains filtered or unexported fields
}Block of text that may contain a tooltip with more information.
func (*TextWithTooltip) Descriptor
func (*TextWithTooltip) Descriptor() ([]byte, []int)Deprecated: Use TextWithTooltip.ProtoReflect.Descriptor instead.
func (*TextWithTooltip) GetSimpleTooltipValue
func (x *TextWithTooltip) GetSimpleTooltipValue() stringfunc (*TextWithTooltip) GetSimpleValue
func (x *TextWithTooltip) GetSimpleValue() stringfunc (*TextWithTooltip) GetTooltipIconStyle
func (x *TextWithTooltip) GetTooltipIconStyle() TextWithTooltip_TooltipIconStylefunc (*TextWithTooltip) GetTooltipValue
func (m *TextWithTooltip) GetTooltipValue() isTextWithTooltip_TooltipValuefunc (*TextWithTooltip) GetValue
func (m *TextWithTooltip) GetValue() isTextWithTooltip_Valuefunc (*TextWithTooltip) ProtoMessage
func (*TextWithTooltip) ProtoMessage()func (*TextWithTooltip) ProtoReflect
func (x *TextWithTooltip) ProtoReflect() protoreflect.Messagefunc (*TextWithTooltip) Reset
func (x *TextWithTooltip) Reset()func (*TextWithTooltip) String
func (x *TextWithTooltip) String() stringTextWithTooltip_SimpleTooltipValue
type TextWithTooltip_SimpleTooltipValue struct {
// Value of the tooltip as a simple text.
SimpleTooltipValue string `protobuf:"bytes,2,opt,name=simple_tooltip_value,json=simpleTooltipValue,proto3,oneof"`
}TextWithTooltip_SimpleValue
type TextWithTooltip_SimpleValue struct {
// Value of the message as a simple text.
SimpleValue string `protobuf:"bytes,1,opt,name=simple_value,json=simpleValue,proto3,oneof"`
}TextWithTooltip_TooltipIconStyle
type TextWithTooltip_TooltipIconStyle int32Enum specifying the type of an icon that is being used to display a corresponding tooltip in the Merchant Center.
TextWithTooltip_TOOLTIP_ICON_STYLE_UNSPECIFIED, TextWithTooltip_INFO, TextWithTooltip_QUESTION
const (
// Default value. Will never be provided by the API.
TextWithTooltip_TOOLTIP_ICON_STYLE_UNSPECIFIED TextWithTooltip_TooltipIconStyle = 0
// Used when the tooltip adds additional information to the context,
// the 'i' can be used as an icon.
TextWithTooltip_INFO TextWithTooltip_TooltipIconStyle = 1
// Used when the tooltip shows helpful information, the '?' can be used as
// an icon.
TextWithTooltip_QUESTION TextWithTooltip_TooltipIconStyle = 2
)func (TextWithTooltip_TooltipIconStyle) Descriptor
func (TextWithTooltip_TooltipIconStyle) Descriptor() protoreflect.EnumDescriptorfunc (TextWithTooltip_TooltipIconStyle) Enum
func (x TextWithTooltip_TooltipIconStyle) Enum() *TextWithTooltip_TooltipIconStylefunc (TextWithTooltip_TooltipIconStyle) EnumDescriptor
func (TextWithTooltip_TooltipIconStyle) EnumDescriptor() ([]byte, []int)Deprecated: Use TextWithTooltip_TooltipIconStyle.Descriptor instead.
func (TextWithTooltip_TooltipIconStyle) Number
func (x TextWithTooltip_TooltipIconStyle) Number() protoreflect.EnumNumberfunc (TextWithTooltip_TooltipIconStyle) String
func (x TextWithTooltip_TooltipIconStyle) String() stringfunc (TextWithTooltip_TooltipIconStyle) Type
func (TextWithTooltip_TooltipIconStyle) Type() protoreflect.EnumTypeTriggerActionPayload
type TriggerActionPayload struct {
// Required. The
// [context][google.shopping.merchant.issueresolution.v1.BuiltInUserInputAction.action_context]
// from the selected action. The value is obtained from rendered issues and
// needs to be sent back to identify the
// [action][google.shopping.merchant.issueresolution.v1.Action.builtin_user_input_action]
// that is being triggered.
ActionContext string `protobuf:"bytes,1,opt,name=action_context,json=actionContext,proto3" json:"action_context,omitempty"`
// Required. Input provided by the business.
ActionInput *ActionInput `protobuf:"bytes,2,opt,name=action_input,json=actionInput,proto3" json:"action_input,omitempty"`
// contains filtered or unexported fields
}The payload for the triggered action.
func (*TriggerActionPayload) Descriptor
func (*TriggerActionPayload) Descriptor() ([]byte, []int)Deprecated: Use TriggerActionPayload.ProtoReflect.Descriptor instead.
func (*TriggerActionPayload) GetActionContext
func (x *TriggerActionPayload) GetActionContext() stringfunc (*TriggerActionPayload) GetActionInput
func (x *TriggerActionPayload) GetActionInput() *ActionInputfunc (*TriggerActionPayload) ProtoMessage
func (*TriggerActionPayload) ProtoMessage()func (*TriggerActionPayload) ProtoReflect
func (x *TriggerActionPayload) ProtoReflect() protoreflect.Messagefunc (*TriggerActionPayload) Reset
func (x *TriggerActionPayload) Reset()func (*TriggerActionPayload) String
func (x *TriggerActionPayload) String() stringTriggerActionRequest
type TriggerActionRequest struct {
// Required. The business's account that is triggering the action.
// Format: `accounts/{account}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The payload for the triggered action.
Payload *TriggerActionPayload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
// Optional. Language code [IETF BCP 47
// syntax](https://tools.ietf.org/html/bcp47) used to localize the response.
// If not set, the result will be in default language `en-US`.
LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// contains filtered or unexported fields
}Request to start the selected action
func (*TriggerActionRequest) Descriptor
func (*TriggerActionRequest) Descriptor() ([]byte, []int)Deprecated: Use TriggerActionRequest.ProtoReflect.Descriptor instead.
func (*TriggerActionRequest) GetLanguageCode
func (x *TriggerActionRequest) GetLanguageCode() stringfunc (*TriggerActionRequest) GetName
func (x *TriggerActionRequest) GetName() stringfunc (*TriggerActionRequest) GetPayload
func (x *TriggerActionRequest) GetPayload() *TriggerActionPayloadfunc (*TriggerActionRequest) ProtoMessage
func (*TriggerActionRequest) ProtoMessage()func (*TriggerActionRequest) ProtoReflect
func (x *TriggerActionRequest) ProtoReflect() protoreflect.Messagefunc (*TriggerActionRequest) Reset
func (x *TriggerActionRequest) Reset()func (*TriggerActionRequest) String
func (x *TriggerActionRequest) String() stringTriggerActionResponse
type TriggerActionResponse struct {
// The message for the business.
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}Response informing about the started action.
func (*TriggerActionResponse) Descriptor
func (*TriggerActionResponse) Descriptor() ([]byte, []int)Deprecated: Use TriggerActionResponse.ProtoReflect.Descriptor instead.
func (*TriggerActionResponse) GetMessage
func (x *TriggerActionResponse) GetMessage() stringfunc (*TriggerActionResponse) ProtoMessage
func (*TriggerActionResponse) ProtoMessage()func (*TriggerActionResponse) ProtoReflect
func (x *TriggerActionResponse) ProtoReflect() protoreflect.Messagefunc (*TriggerActionResponse) Reset
func (x *TriggerActionResponse) Reset()func (*TriggerActionResponse) String
func (x *TriggerActionResponse) String() stringUnimplementedAggregateProductStatusesServiceServer
type UnimplementedAggregateProductStatusesServiceServer struct {
}UnimplementedAggregateProductStatusesServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAggregateProductStatusesServiceServer) ListAggregateProductStatuses
func (*UnimplementedAggregateProductStatusesServiceServer) ListAggregateProductStatuses(context.Context, *ListAggregateProductStatusesRequest) (*ListAggregateProductStatusesResponse, error)UnimplementedIssueResolutionServiceServer
type UnimplementedIssueResolutionServiceServer struct {
}UnimplementedIssueResolutionServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedIssueResolutionServiceServer) RenderAccountIssues
func (*UnimplementedIssueResolutionServiceServer) RenderAccountIssues(context.Context, *RenderAccountIssuesRequest) (*RenderAccountIssuesResponse, error)func (*UnimplementedIssueResolutionServiceServer) RenderProductIssues
func (*UnimplementedIssueResolutionServiceServer) RenderProductIssues(context.Context, *RenderProductIssuesRequest) (*RenderProductIssuesResponse, error)func (*UnimplementedIssueResolutionServiceServer) TriggerAction
func (*UnimplementedIssueResolutionServiceServer) TriggerAction(context.Context, *TriggerActionRequest) (*TriggerActionResponse, error)UserInputActionRenderingOption
type UserInputActionRenderingOption int32Enum specifying how actions with user input forms, such as requesting re-review, are handled.
UserInputActionRenderingOption_USER_INPUT_ACTION_RENDERING_OPTION_UNSPECIFIED, UserInputActionRenderingOption_REDIRECT_TO_MERCHANT_CENTER, UserInputActionRenderingOption_BUILT_IN_USER_INPUT_ACTIONS
const (
// Default value. Will never be provided by the API.
UserInputActionRenderingOption_USER_INPUT_ACTION_RENDERING_OPTION_UNSPECIFIED UserInputActionRenderingOption = 0
// Actions that require user input are represented only as links that points
// the business to Merchant Center where they can request the action. Provides
// easier to implement alternative to `BUILT_IN_USER_INPUT_ACTIONS`.
UserInputActionRenderingOption_REDIRECT_TO_MERCHANT_CENTER UserInputActionRenderingOption = 1
// Returns content and input form definition for each complex action. Your
// application needs to display this content and input form to the business
// before they can request processing of the action. To start the action, your
// application needs to call the `triggeraction` method.
UserInputActionRenderingOption_BUILT_IN_USER_INPUT_ACTIONS UserInputActionRenderingOption = 2
)func (UserInputActionRenderingOption) Descriptor
func (UserInputActionRenderingOption) Descriptor() protoreflect.EnumDescriptorfunc (UserInputActionRenderingOption) Enum
func (x UserInputActionRenderingOption) Enum() *UserInputActionRenderingOptionfunc (UserInputActionRenderingOption) EnumDescriptor
func (UserInputActionRenderingOption) EnumDescriptor() ([]byte, []int)Deprecated: Use UserInputActionRenderingOption.Descriptor instead.
func (UserInputActionRenderingOption) Number
func (x UserInputActionRenderingOption) Number() protoreflect.EnumNumberfunc (UserInputActionRenderingOption) String
func (x UserInputActionRenderingOption) String() stringfunc (UserInputActionRenderingOption) Type
func (UserInputActionRenderingOption) Type() protoreflect.EnumType