Constants
MerchantReviewsService_GetMerchantReview_FullMethodName, MerchantReviewsService_ListMerchantReviews_FullMethodName, MerchantReviewsService_InsertMerchantReview_FullMethodName, MerchantReviewsService_DeleteMerchantReview_FullMethodName
const (
MerchantReviewsService_GetMerchantReview_FullMethodName = "/google.shopping.merchant.reviews.v1beta.MerchantReviewsService/GetMerchantReview"
MerchantReviewsService_ListMerchantReviews_FullMethodName = "/google.shopping.merchant.reviews.v1beta.MerchantReviewsService/ListMerchantReviews"
MerchantReviewsService_InsertMerchantReview_FullMethodName = "/google.shopping.merchant.reviews.v1beta.MerchantReviewsService/InsertMerchantReview"
MerchantReviewsService_DeleteMerchantReview_FullMethodName = "/google.shopping.merchant.reviews.v1beta.MerchantReviewsService/DeleteMerchantReview"
)
ProductReviewsService_GetProductReview_FullMethodName, ProductReviewsService_ListProductReviews_FullMethodName, ProductReviewsService_InsertProductReview_FullMethodName, ProductReviewsService_DeleteProductReview_FullMethodName
const (
ProductReviewsService_GetProductReview_FullMethodName = "/google.shopping.merchant.reviews.v1beta.ProductReviewsService/GetProductReview"
ProductReviewsService_ListProductReviews_FullMethodName = "/google.shopping.merchant.reviews.v1beta.ProductReviewsService/ListProductReviews"
ProductReviewsService_InsertProductReview_FullMethodName = "/google.shopping.merchant.reviews.v1beta.ProductReviewsService/InsertProductReview"
ProductReviewsService_DeleteProductReview_FullMethodName = "/google.shopping.merchant.reviews.v1beta.ProductReviewsService/DeleteProductReview"
)
Variables
MerchantReviewAttributes_CollectionMethod_name, MerchantReviewAttributes_CollectionMethod_value
var (
MerchantReviewAttributes_CollectionMethod_name = map[int32]string{
0: "COLLECTION_METHOD_UNSPECIFIED",
1: "MERCHANT_UNSOLICITED",
2: "POINT_OF_SALE",
3: "AFTER_FULFILLMENT",
}
MerchantReviewAttributes_CollectionMethod_value = map[string]int32{
"COLLECTION_METHOD_UNSPECIFIED": 0,
"MERCHANT_UNSOLICITED": 1,
"POINT_OF_SALE": 2,
"AFTER_FULFILLMENT": 3,
}
)
Enum value maps for MerchantReviewAttributes_CollectionMethod.
MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity_name, MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity_value
var (
MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity_name = map[int32]string{
0: "SEVERITY_UNSPECIFIED",
1: "NOT_IMPACTED",
2: "DISAPPROVED",
}
MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity_value = map[string]int32{
"SEVERITY_UNSPECIFIED": 0,
"NOT_IMPACTED": 1,
"DISAPPROVED": 2,
}
)
Enum value maps for MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity.
ProductReviewAttributes_CollectionMethod_name, ProductReviewAttributes_CollectionMethod_value
var (
ProductReviewAttributes_CollectionMethod_name = map[int32]string{
0: "COLLECTION_METHOD_UNSPECIFIED",
1: "UNSOLICITED",
2: "POST_FULFILLMENT",
}
ProductReviewAttributes_CollectionMethod_value = map[string]int32{
"COLLECTION_METHOD_UNSPECIFIED": 0,
"UNSOLICITED": 1,
"POST_FULFILLMENT": 2,
}
)
Enum value maps for ProductReviewAttributes_CollectionMethod.
ProductReviewAttributes_ReviewLink_Type_name, ProductReviewAttributes_ReviewLink_Type_value
var (
ProductReviewAttributes_ReviewLink_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "SINGLETON",
2: "GROUP",
}
ProductReviewAttributes_ReviewLink_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"SINGLETON": 1,
"GROUP": 2,
}
)
Enum value maps for ProductReviewAttributes_ReviewLink_Type.
ProductReviewStatus_ProductReviewItemLevelIssue_Severity_name, ProductReviewStatus_ProductReviewItemLevelIssue_Severity_value
var (
ProductReviewStatus_ProductReviewItemLevelIssue_Severity_name = map[int32]string{
0: "SEVERITY_UNSPECIFIED",
1: "NOT_IMPACTED",
2: "DISAPPROVED",
}
ProductReviewStatus_ProductReviewItemLevelIssue_Severity_value = map[string]int32{
"SEVERITY_UNSPECIFIED": 0,
"NOT_IMPACTED": 1,
"DISAPPROVED": 2,
}
)
Enum value maps for ProductReviewStatus_ProductReviewItemLevelIssue_Severity.
File_google_shopping_merchant_reviews_v1beta_merchantreviews_common_proto
var File_google_shopping_merchant_reviews_v1beta_merchantreviews_common_proto protoreflect.FileDescriptor
File_google_shopping_merchant_reviews_v1beta_merchantreviews_proto
var File_google_shopping_merchant_reviews_v1beta_merchantreviews_proto protoreflect.FileDescriptor
File_google_shopping_merchant_reviews_v1beta_productreviews_common_proto
var File_google_shopping_merchant_reviews_v1beta_productreviews_common_proto protoreflect.FileDescriptor
File_google_shopping_merchant_reviews_v1beta_productreviews_proto
var File_google_shopping_merchant_reviews_v1beta_productreviews_proto protoreflect.FileDescriptor
MerchantReviewsService_ServiceDesc
var MerchantReviewsService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.shopping.merchant.reviews.v1beta.MerchantReviewsService",
HandlerType: (*MerchantReviewsServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetMerchantReview",
Handler: _MerchantReviewsService_GetMerchantReview_Handler,
},
{
MethodName: "ListMerchantReviews",
Handler: _MerchantReviewsService_ListMerchantReviews_Handler,
},
{
MethodName: "InsertMerchantReview",
Handler: _MerchantReviewsService_InsertMerchantReview_Handler,
},
{
MethodName: "DeleteMerchantReview",
Handler: _MerchantReviewsService_DeleteMerchantReview_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/shopping/merchant/reviews/v1beta/merchantreviews.proto",
}
MerchantReviewsService_ServiceDesc is the grpc.ServiceDesc for MerchantReviewsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
ProductReviewsService_ServiceDesc
var ProductReviewsService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.shopping.merchant.reviews.v1beta.ProductReviewsService",
HandlerType: (*ProductReviewsServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetProductReview",
Handler: _ProductReviewsService_GetProductReview_Handler,
},
{
MethodName: "ListProductReviews",
Handler: _ProductReviewsService_ListProductReviews_Handler,
},
{
MethodName: "InsertProductReview",
Handler: _ProductReviewsService_InsertProductReview_Handler,
},
{
MethodName: "DeleteProductReview",
Handler: _ProductReviewsService_DeleteProductReview_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/shopping/merchant/reviews/v1beta/productreviews.proto",
}
ProductReviewsService_ServiceDesc is the grpc.ServiceDesc for ProductReviewsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterMerchantReviewsServiceServer
func RegisterMerchantReviewsServiceServer(s grpc.ServiceRegistrar, srv MerchantReviewsServiceServer)
func RegisterProductReviewsServiceServer
func RegisterProductReviewsServiceServer(s grpc.ServiceRegistrar, srv ProductReviewsServiceServer)
DeleteMerchantReviewRequest
type DeleteMerchantReviewRequest struct {
// Required. The ID of the merchant review.
// Format: accounts/{account}/merchantReviews/{merchantReview}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the DeleteMerchantReview
method.
func (*DeleteMerchantReviewRequest) Descriptor
func (*DeleteMerchantReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMerchantReviewRequest.ProtoReflect.Descriptor instead.
func (*DeleteMerchantReviewRequest) GetName
func (x *DeleteMerchantReviewRequest) GetName() string
func (*DeleteMerchantReviewRequest) ProtoMessage
func (*DeleteMerchantReviewRequest) ProtoMessage()
func (*DeleteMerchantReviewRequest) ProtoReflect
func (x *DeleteMerchantReviewRequest) ProtoReflect() protoreflect.Message
func (*DeleteMerchantReviewRequest) Reset
func (x *DeleteMerchantReviewRequest) Reset()
func (*DeleteMerchantReviewRequest) String
func (x *DeleteMerchantReviewRequest) String() string
DeleteProductReviewRequest
type DeleteProductReviewRequest struct {
// Required. The ID of the Product review.
// Format: accounts/{account}/productReviews/{productReview}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the DeleteProductReview
method.
func (*DeleteProductReviewRequest) Descriptor
func (*DeleteProductReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductReviewRequest.ProtoReflect.Descriptor instead.
func (*DeleteProductReviewRequest) GetName
func (x *DeleteProductReviewRequest) GetName() string
func (*DeleteProductReviewRequest) ProtoMessage
func (*DeleteProductReviewRequest) ProtoMessage()
func (*DeleteProductReviewRequest) ProtoReflect
func (x *DeleteProductReviewRequest) ProtoReflect() protoreflect.Message
func (*DeleteProductReviewRequest) Reset
func (x *DeleteProductReviewRequest) Reset()
func (*DeleteProductReviewRequest) String
func (x *DeleteProductReviewRequest) String() string
GetMerchantReviewRequest
type GetMerchantReviewRequest struct {
// Required. The ID of the merchant review.
// Format: accounts/{account}/merchantReviews/{merchantReview}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the GetMerchantReview
method.
func (*GetMerchantReviewRequest) Descriptor
func (*GetMerchantReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMerchantReviewRequest.ProtoReflect.Descriptor instead.
func (*GetMerchantReviewRequest) GetName
func (x *GetMerchantReviewRequest) GetName() string
func (*GetMerchantReviewRequest) ProtoMessage
func (*GetMerchantReviewRequest) ProtoMessage()
func (*GetMerchantReviewRequest) ProtoReflect
func (x *GetMerchantReviewRequest) ProtoReflect() protoreflect.Message
func (*GetMerchantReviewRequest) Reset
func (x *GetMerchantReviewRequest) Reset()
func (*GetMerchantReviewRequest) String
func (x *GetMerchantReviewRequest) String() string
GetProductReviewRequest
type GetProductReviewRequest struct {
// Required. The ID of the merchant review.
// Format: accounts/{account}/productReviews/{productReview}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the GetProductReview method.
func (*GetProductReviewRequest) Descriptor
func (*GetProductReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProductReviewRequest.ProtoReflect.Descriptor instead.
func (*GetProductReviewRequest) GetName
func (x *GetProductReviewRequest) GetName() string
func (*GetProductReviewRequest) ProtoMessage
func (*GetProductReviewRequest) ProtoMessage()
func (*GetProductReviewRequest) ProtoReflect
func (x *GetProductReviewRequest) ProtoReflect() protoreflect.Message
func (*GetProductReviewRequest) Reset
func (x *GetProductReviewRequest) Reset()
func (*GetProductReviewRequest) String
func (x *GetProductReviewRequest) String() string
InsertMerchantReviewRequest
type InsertMerchantReviewRequest struct {
// Required. The account where the merchant review will be inserted.
// Format: accounts/{account}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The merchant review to insert.
MerchantReview *MerchantReview `protobuf:"bytes,2,opt,name=merchant_review,json=merchantReview,proto3" json:"merchant_review,omitempty"`
// Required. The data source of the
// [merchantreview](https://support.google.com/merchants/answer/7045996?sjid=5253581244217581976-EU)
// Format:
// `accounts/{account}/dataSources/{datasource}`.
DataSource string `protobuf:"bytes,3,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
// contains filtered or unexported fields
}
Request message for the InsertMerchantReview
method.
func (*InsertMerchantReviewRequest) Descriptor
func (*InsertMerchantReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use InsertMerchantReviewRequest.ProtoReflect.Descriptor instead.
func (*InsertMerchantReviewRequest) GetDataSource
func (x *InsertMerchantReviewRequest) GetDataSource() string
func (*InsertMerchantReviewRequest) GetMerchantReview
func (x *InsertMerchantReviewRequest) GetMerchantReview() *MerchantReview
func (*InsertMerchantReviewRequest) GetParent
func (x *InsertMerchantReviewRequest) GetParent() string
func (*InsertMerchantReviewRequest) ProtoMessage
func (*InsertMerchantReviewRequest) ProtoMessage()
func (*InsertMerchantReviewRequest) ProtoReflect
func (x *InsertMerchantReviewRequest) ProtoReflect() protoreflect.Message
func (*InsertMerchantReviewRequest) Reset
func (x *InsertMerchantReviewRequest) Reset()
func (*InsertMerchantReviewRequest) String
func (x *InsertMerchantReviewRequest) String() string
InsertProductReviewRequest
type InsertProductReviewRequest struct {
// Required. The account where the product review will be inserted.
// Format: accounts/{account}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The product review to insert.
ProductReview *ProductReview `protobuf:"bytes,2,opt,name=product_review,json=productReview,proto3" json:"product_review,omitempty"`
// Required. Format:
// `accounts/{account}/dataSources/{datasource}`.
DataSource string `protobuf:"bytes,3,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
// contains filtered or unexported fields
}
Request message for the InsertProductReview
method.
func (*InsertProductReviewRequest) Descriptor
func (*InsertProductReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use InsertProductReviewRequest.ProtoReflect.Descriptor instead.
func (*InsertProductReviewRequest) GetDataSource
func (x *InsertProductReviewRequest) GetDataSource() string
func (*InsertProductReviewRequest) GetParent
func (x *InsertProductReviewRequest) GetParent() string
func (*InsertProductReviewRequest) GetProductReview
func (x *InsertProductReviewRequest) GetProductReview() *ProductReview
func (*InsertProductReviewRequest) ProtoMessage
func (*InsertProductReviewRequest) ProtoMessage()
func (*InsertProductReviewRequest) ProtoReflect
func (x *InsertProductReviewRequest) ProtoReflect() protoreflect.Message
func (*InsertProductReviewRequest) Reset
func (x *InsertProductReviewRequest) Reset()
func (*InsertProductReviewRequest) String
func (x *InsertProductReviewRequest) String() string
ListMerchantReviewsRequest
type ListMerchantReviewsRequest struct {
// Required. The account to list merchant reviews for.
// Format: accounts/{account}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of merchant reviews to return. The service can
// return fewer than this value. The maximum value is 1000; values above 1000
// are coerced to 1000. If unspecified, the maximum number of reviews is
// returned.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListMerchantReviews`
// call. Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListMerchantReviews`
// must match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
Request message for the ListMerchantsReview
method.
func (*ListMerchantReviewsRequest) Descriptor
func (*ListMerchantReviewsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMerchantReviewsRequest.ProtoReflect.Descriptor instead.
func (*ListMerchantReviewsRequest) GetPageSize
func (x *ListMerchantReviewsRequest) GetPageSize() int32
func (*ListMerchantReviewsRequest) GetPageToken
func (x *ListMerchantReviewsRequest) GetPageToken() string
func (*ListMerchantReviewsRequest) GetParent
func (x *ListMerchantReviewsRequest) GetParent() string
func (*ListMerchantReviewsRequest) ProtoMessage
func (*ListMerchantReviewsRequest) ProtoMessage()
func (*ListMerchantReviewsRequest) ProtoReflect
func (x *ListMerchantReviewsRequest) ProtoReflect() protoreflect.Message
func (*ListMerchantReviewsRequest) Reset
func (x *ListMerchantReviewsRequest) Reset()
func (*ListMerchantReviewsRequest) String
func (x *ListMerchantReviewsRequest) String() string
ListMerchantReviewsResponse
type ListMerchantReviewsResponse struct {
// The merchant review.
MerchantReviews []*MerchantReview `protobuf:"bytes,1,rep,name=merchant_reviews,json=merchantReviews,proto3" json:"merchant_reviews,omitempty"`
// The token to retrieve the next page of results.
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 ListMerchantsReview
method.
func (*ListMerchantReviewsResponse) Descriptor
func (*ListMerchantReviewsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListMerchantReviewsResponse.ProtoReflect.Descriptor instead.
func (*ListMerchantReviewsResponse) GetMerchantReviews
func (x *ListMerchantReviewsResponse) GetMerchantReviews() []*MerchantReview
func (*ListMerchantReviewsResponse) GetNextPageToken
func (x *ListMerchantReviewsResponse) GetNextPageToken() string
func (*ListMerchantReviewsResponse) ProtoMessage
func (*ListMerchantReviewsResponse) ProtoMessage()
func (*ListMerchantReviewsResponse) ProtoReflect
func (x *ListMerchantReviewsResponse) ProtoReflect() protoreflect.Message
func (*ListMerchantReviewsResponse) Reset
func (x *ListMerchantReviewsResponse) Reset()
func (*ListMerchantReviewsResponse) String
func (x *ListMerchantReviewsResponse) String() string
ListProductReviewsRequest
type ListProductReviewsRequest struct {
// Required. The account to list product reviews for.
// Format: accounts/{account}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of products to return. The service may return
// fewer than this value.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListProductReviews` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListProductReviews`
// must match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
Request message for the ListProductReviews method.
func (*ListProductReviewsRequest) Descriptor
func (*ListProductReviewsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListProductReviewsRequest.ProtoReflect.Descriptor instead.
func (*ListProductReviewsRequest) GetPageSize
func (x *ListProductReviewsRequest) GetPageSize() int32
func (*ListProductReviewsRequest) GetPageToken
func (x *ListProductReviewsRequest) GetPageToken() string
func (*ListProductReviewsRequest) GetParent
func (x *ListProductReviewsRequest) GetParent() string
func (*ListProductReviewsRequest) ProtoMessage
func (*ListProductReviewsRequest) ProtoMessage()
func (*ListProductReviewsRequest) ProtoReflect
func (x *ListProductReviewsRequest) ProtoReflect() protoreflect.Message
func (*ListProductReviewsRequest) Reset
func (x *ListProductReviewsRequest) Reset()
func (*ListProductReviewsRequest) String
func (x *ListProductReviewsRequest) String() string
ListProductReviewsResponse
type ListProductReviewsResponse struct {
// The product review.
ProductReviews []*ProductReview `protobuf:"bytes,1,rep,name=product_reviews,json=productReviews,proto3" json:"product_reviews,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
response message for the ListProductReviews method.
func (*ListProductReviewsResponse) Descriptor
func (*ListProductReviewsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListProductReviewsResponse.ProtoReflect.Descriptor instead.
func (*ListProductReviewsResponse) GetNextPageToken
func (x *ListProductReviewsResponse) GetNextPageToken() string
func (*ListProductReviewsResponse) GetProductReviews
func (x *ListProductReviewsResponse) GetProductReviews() []*ProductReview
func (*ListProductReviewsResponse) ProtoMessage
func (*ListProductReviewsResponse) ProtoMessage()
func (*ListProductReviewsResponse) ProtoReflect
func (x *ListProductReviewsResponse) ProtoReflect() protoreflect.Message
func (*ListProductReviewsResponse) Reset
func (x *ListProductReviewsResponse) Reset()
func (*ListProductReviewsResponse) String
func (x *ListProductReviewsResponse) String() string
MerchantReview
type MerchantReview struct {
// Identifier. The name of the merchant review.
// Format:
// `"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The user provided merchant review ID to uniquely identify the
// merchant review.
MerchantReviewId string `protobuf:"bytes,2,opt,name=merchant_review_id,json=merchantReviewId,proto3" json:"merchant_review_id,omitempty"`
// Optional. A list of merchant review attributes.
MerchantReviewAttributes *MerchantReviewAttributes `protobuf:"bytes,3,opt,name=merchant_review_attributes,json=merchantReviewAttributes,proto3" json:"merchant_review_attributes,omitempty"`
// Optional. A list of custom (merchant-provided) attributes. It can also be
// used for submitting any attribute of the data specification in its generic
// form (for example,
// `{ "name": "size type", "value": "regular" }`).
// This is useful for submitting attributes not explicitly exposed by the
// API, such as experimental attributes.
// Maximum allowed number of characters for each
// custom attribute is 10240 (represents sum of characters for name and
// value). Maximum 2500 custom attributes can be set per product, with total
// size of 102.4kB. Underscores in custom attribute names are replaced by
// spaces upon insertion.
CustomAttributes []*typepb.CustomAttribute `protobuf:"bytes,4,rep,name=custom_attributes,json=customAttributes,proto3" json:"custom_attributes,omitempty"`
// Output only. The primary data source of the merchant review.
DataSource string `protobuf:"bytes,5,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
// Output only. The status of a merchant review, data validation issues, that
// is, information about a merchant review computed asynchronously.
MerchantReviewStatus *MerchantReviewStatus `protobuf:"bytes,6,opt,name=merchant_review_status,json=merchantReviewStatus,proto3" json:"merchant_review_status,omitempty"`
// contains filtered or unexported fields
}
A review for a merchant. For more information, see Introduction to Merchant Review Feeds
func (*MerchantReview) Descriptor
func (*MerchantReview) Descriptor() ([]byte, []int)
Deprecated: Use MerchantReview.ProtoReflect.Descriptor instead.
func (*MerchantReview) GetCustomAttributes
func (x *MerchantReview) GetCustomAttributes() []*typepb.CustomAttribute
func (*MerchantReview) GetDataSource
func (x *MerchantReview) GetDataSource() string
func (*MerchantReview) GetMerchantReviewAttributes
func (x *MerchantReview) GetMerchantReviewAttributes() *MerchantReviewAttributes
func (*MerchantReview) GetMerchantReviewId
func (x *MerchantReview) GetMerchantReviewId() string
func (*MerchantReview) GetMerchantReviewStatus
func (x *MerchantReview) GetMerchantReviewStatus() *MerchantReviewStatus
func (*MerchantReview) GetName
func (x *MerchantReview) GetName() string
func (*MerchantReview) ProtoMessage
func (*MerchantReview) ProtoMessage()
func (*MerchantReview) ProtoReflect
func (x *MerchantReview) ProtoReflect() protoreflect.Message
func (*MerchantReview) Reset
func (x *MerchantReview) Reset()
func (*MerchantReview) String
func (x *MerchantReview) String() string
MerchantReviewAttributes
type MerchantReviewAttributes struct {
// Required. Must be unique and stable across all requests. In other words, if
// a request today and another 90 days ago refer to the same merchant, they
// must have the same id.
MerchantId *string `protobuf:"bytes,1,opt,name=merchant_id,json=merchantId,proto3,oneof" json:"merchant_id,omitempty"`
// Optional. Human-readable display name for the merchant.
MerchantDisplayName *string `protobuf:"bytes,2,opt,name=merchant_display_name,json=merchantDisplayName,proto3,oneof" json:"merchant_display_name,omitempty"`
// Optional. URL to the merchant's main website. Do not use a redirect URL for
// this value. In other words, the value should point directly to the
// merchant's site.
MerchantLink *string `protobuf:"bytes,3,opt,name=merchant_link,json=merchantLink,proto3,oneof" json:"merchant_link,omitempty"`
// Optional. URL to the landing page that hosts the reviews for this merchant.
// Do not use a redirect URL.
MerchantRatingLink *string `protobuf:"bytes,4,opt,name=merchant_rating_link,json=merchantRatingLink,proto3,oneof" json:"merchant_rating_link,omitempty"`
// Optional. The minimum possible number for the rating. This should be the
// worst possible rating and should not be a value for no rating.
MinRating *int64 `protobuf:"varint,5,opt,name=min_rating,json=minRating,proto3,oneof" json:"min_rating,omitempty"`
// Optional. The maximum possible number for the rating. The value of the max
// rating must be greater than the value of the min rating.
MaxRating *int64 `protobuf:"varint,6,opt,name=max_rating,json=maxRating,proto3,oneof" json:"max_rating,omitempty"`
// Optional. The reviewer's overall rating of the merchant.
Rating *float64 `protobuf:"fixed64,7,opt,name=rating,proto3,oneof" json:"rating,omitempty"`
// Optional. The title of the review.
Title *string `protobuf:"bytes,8,opt,name=title,proto3,oneof" json:"title,omitempty"`
// Required. This should be any freeform text provided by the user and should
// not be truncated. If multiple responses to different questions are
// provided, all responses should be included, with the minimal context for
// the responses to make sense. Context should not be provided if questions
// were left unanswered.
Content *string `protobuf:"bytes,9,opt,name=content,proto3,oneof" json:"content,omitempty"`
// Optional. A permanent, unique identifier for the author of the review in
// the publisher's system.
ReviewerId *string `protobuf:"bytes,10,opt,name=reviewer_id,json=reviewerId,proto3,oneof" json:"reviewer_id,omitempty"`
// Optional. Display name of the review author.
ReviewerUsername *string `protobuf:"bytes,11,opt,name=reviewer_username,json=reviewerUsername,proto3,oneof" json:"reviewer_username,omitempty"`
// Optional. Set to true if the reviewer should remain anonymous.
IsAnonymous *bool `protobuf:"varint,12,opt,name=is_anonymous,json=isAnonymous,proto3,oneof" json:"is_anonymous,omitempty"`
// Optional. The method used to collect the review.
CollectionMethod *MerchantReviewAttributes_CollectionMethod `protobuf:"varint,13,opt,name=collection_method,json=collectionMethod,proto3,enum=google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes_CollectionMethod,oneof" json:"collection_method,omitempty"`
// Required. The timestamp indicating when the review was written.
ReviewTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=review_time,json=reviewTime,proto3,oneof" json:"review_time,omitempty"`
// Optional. The language of the review defined by BCP-47 language code.
ReviewLanguage *string `protobuf:"bytes,15,opt,name=review_language,json=reviewLanguage,proto3,oneof" json:"review_language,omitempty"`
// Optional. The country where the reviewer made the order defined by ISO
// 3166-1 Alpha-2 Country Code.
ReviewCountry *string `protobuf:"bytes,16,opt,name=review_country,json=reviewCountry,proto3,oneof" json:"review_country,omitempty"`
// contains filtered or unexported fields
}
Attributes.
func (*MerchantReviewAttributes) Descriptor
func (*MerchantReviewAttributes) Descriptor() ([]byte, []int)
Deprecated: Use MerchantReviewAttributes.ProtoReflect.Descriptor instead.
func (*MerchantReviewAttributes) GetCollectionMethod
func (x *MerchantReviewAttributes) GetCollectionMethod() MerchantReviewAttributes_CollectionMethod
func (*MerchantReviewAttributes) GetContent
func (x *MerchantReviewAttributes) GetContent() string
func (*MerchantReviewAttributes) GetIsAnonymous
func (x *MerchantReviewAttributes) GetIsAnonymous() bool
func (*MerchantReviewAttributes) GetMaxRating
func (x *MerchantReviewAttributes) GetMaxRating() int64
func (*MerchantReviewAttributes) GetMerchantDisplayName
func (x *MerchantReviewAttributes) GetMerchantDisplayName() string
func (*MerchantReviewAttributes) GetMerchantId
func (x *MerchantReviewAttributes) GetMerchantId() string
func (*MerchantReviewAttributes) GetMerchantLink
func (x *MerchantReviewAttributes) GetMerchantLink() string
func (*MerchantReviewAttributes) GetMerchantRatingLink
func (x *MerchantReviewAttributes) GetMerchantRatingLink() string
func (*MerchantReviewAttributes) GetMinRating
func (x *MerchantReviewAttributes) GetMinRating() int64
func (*MerchantReviewAttributes) GetRating
func (x *MerchantReviewAttributes) GetRating() float64
func (*MerchantReviewAttributes) GetReviewCountry
func (x *MerchantReviewAttributes) GetReviewCountry() string
func (*MerchantReviewAttributes) GetReviewLanguage
func (x *MerchantReviewAttributes) GetReviewLanguage() string
func (*MerchantReviewAttributes) GetReviewTime
func (x *MerchantReviewAttributes) GetReviewTime() *timestamppb.Timestamp
func (*MerchantReviewAttributes) GetReviewerId
func (x *MerchantReviewAttributes) GetReviewerId() string
func (*MerchantReviewAttributes) GetReviewerUsername
func (x *MerchantReviewAttributes) GetReviewerUsername() string
func (*MerchantReviewAttributes) GetTitle
func (x *MerchantReviewAttributes) GetTitle() string
func (*MerchantReviewAttributes) ProtoMessage
func (*MerchantReviewAttributes) ProtoMessage()
func (*MerchantReviewAttributes) ProtoReflect
func (x *MerchantReviewAttributes) ProtoReflect() protoreflect.Message
func (*MerchantReviewAttributes) Reset
func (x *MerchantReviewAttributes) Reset()
func (*MerchantReviewAttributes) String
func (x *MerchantReviewAttributes) String() string
MerchantReviewAttributes_CollectionMethod
type MerchantReviewAttributes_CollectionMethod int32
The method used to collect the review.
MerchantReviewAttributes_COLLECTION_METHOD_UNSPECIFIED, MerchantReviewAttributes_MERCHANT_UNSOLICITED, MerchantReviewAttributes_POINT_OF_SALE, MerchantReviewAttributes_AFTER_FULFILLMENT
const (
// Collection method unspecified.
MerchantReviewAttributes_COLLECTION_METHOD_UNSPECIFIED MerchantReviewAttributes_CollectionMethod = 0
// The user was not responding to a specific solicitation when they
// submitted the review.
MerchantReviewAttributes_MERCHANT_UNSOLICITED MerchantReviewAttributes_CollectionMethod = 1
// The user submitted the review in response to a solicitation when the
// user placed an order.
MerchantReviewAttributes_POINT_OF_SALE MerchantReviewAttributes_CollectionMethod = 2
// The user submitted the review in response to a solicitation after
// fulfillment of the user's order.
MerchantReviewAttributes_AFTER_FULFILLMENT MerchantReviewAttributes_CollectionMethod = 3
)
func (MerchantReviewAttributes_CollectionMethod) Descriptor
func (MerchantReviewAttributes_CollectionMethod) Descriptor() protoreflect.EnumDescriptor
func (MerchantReviewAttributes_CollectionMethod) Enum
func (x MerchantReviewAttributes_CollectionMethod) Enum() *MerchantReviewAttributes_CollectionMethod
func (MerchantReviewAttributes_CollectionMethod) EnumDescriptor
func (MerchantReviewAttributes_CollectionMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use MerchantReviewAttributes_CollectionMethod.Descriptor instead.
func (MerchantReviewAttributes_CollectionMethod) Number
func (x MerchantReviewAttributes_CollectionMethod) Number() protoreflect.EnumNumber
func (MerchantReviewAttributes_CollectionMethod) String
func (x MerchantReviewAttributes_CollectionMethod) String() string
func (MerchantReviewAttributes_CollectionMethod) Type
func (MerchantReviewAttributes_CollectionMethod) Type() protoreflect.EnumType
MerchantReviewStatus
type MerchantReviewStatus struct {
// Output only. The intended destinations for the merchant review.
DestinationStatuses []*MerchantReviewStatus_MerchantReviewDestinationStatus `protobuf:"bytes,3,rep,name=destination_statuses,json=destinationStatuses,proto3" json:"destination_statuses,omitempty"`
// Output only. A list of all issues associated with the merchant review.
ItemLevelIssues []*MerchantReviewStatus_MerchantReviewItemLevelIssue `protobuf:"bytes,4,rep,name=item_level_issues,json=itemLevelIssues,proto3" json:"item_level_issues,omitempty"`
// Output only. Date on which the item has been created, in [ISO
// 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Date on which the item has been last updated, in [ISO
// 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
// contains filtered or unexported fields
}
The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously.
func (*MerchantReviewStatus) Descriptor
func (*MerchantReviewStatus) Descriptor() ([]byte, []int)
Deprecated: Use MerchantReviewStatus.ProtoReflect.Descriptor instead.
func (*MerchantReviewStatus) GetCreateTime
func (x *MerchantReviewStatus) GetCreateTime() *timestamppb.Timestamp
func (*MerchantReviewStatus) GetDestinationStatuses
func (x *MerchantReviewStatus) GetDestinationStatuses() []*MerchantReviewStatus_MerchantReviewDestinationStatus
func (*MerchantReviewStatus) GetItemLevelIssues
func (x *MerchantReviewStatus) GetItemLevelIssues() []*MerchantReviewStatus_MerchantReviewItemLevelIssue
func (*MerchantReviewStatus) GetLastUpdateTime
func (x *MerchantReviewStatus) GetLastUpdateTime() *timestamppb.Timestamp
func (*MerchantReviewStatus) ProtoMessage
func (*MerchantReviewStatus) ProtoMessage()
func (*MerchantReviewStatus) ProtoReflect
func (x *MerchantReviewStatus) ProtoReflect() protoreflect.Message
func (*MerchantReviewStatus) Reset
func (x *MerchantReviewStatus) Reset()
func (*MerchantReviewStatus) String
func (x *MerchantReviewStatus) String() string
MerchantReviewStatus_MerchantReviewDestinationStatus
type MerchantReviewStatus_MerchantReviewDestinationStatus struct {
// Output only. The name of the reporting context.
ReportingContext typepb.ReportingContext_ReportingContextEnum `protobuf:"varint,1,opt,name=reporting_context,json=reportingContext,proto3,enum=google.shopping.type.ReportingContext_ReportingContextEnum" json:"reporting_context,omitempty"`
// contains filtered or unexported fields
}
The destination status of the merchant review status.
func (*MerchantReviewStatus_MerchantReviewDestinationStatus) Descriptor
func (*MerchantReviewStatus_MerchantReviewDestinationStatus) Descriptor() ([]byte, []int)
Deprecated: Use MerchantReviewStatus_MerchantReviewDestinationStatus.ProtoReflect.Descriptor instead.
func (*MerchantReviewStatus_MerchantReviewDestinationStatus) GetReportingContext
func (x *MerchantReviewStatus_MerchantReviewDestinationStatus) GetReportingContext() typepb.ReportingContext_ReportingContextEnum
func (*MerchantReviewStatus_MerchantReviewDestinationStatus) ProtoMessage
func (*MerchantReviewStatus_MerchantReviewDestinationStatus) ProtoMessage()
func (*MerchantReviewStatus_MerchantReviewDestinationStatus) ProtoReflect
func (x *MerchantReviewStatus_MerchantReviewDestinationStatus) ProtoReflect() protoreflect.Message
func (*MerchantReviewStatus_MerchantReviewDestinationStatus) Reset
func (x *MerchantReviewStatus_MerchantReviewDestinationStatus) Reset()
func (*MerchantReviewStatus_MerchantReviewDestinationStatus) String
func (x *MerchantReviewStatus_MerchantReviewDestinationStatus) String() string
MerchantReviewStatus_MerchantReviewItemLevelIssue
type MerchantReviewStatus_MerchantReviewItemLevelIssue struct {
// Output only. The error code of the issue.
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// Output only. How this issue affects serving of the merchant review.
Severity MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=google.shopping.merchant.reviews.v1beta.MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity" json:"severity,omitempty"`
// Output only. Whether the issue can be resolved by the merchant.
Resolution string `protobuf:"bytes,3,opt,name=resolution,proto3" json:"resolution,omitempty"`
// Output only. 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"`
// Output only. The reporting context the issue applies to.
ReportingContext typepb.ReportingContext_ReportingContextEnum `protobuf:"varint,5,opt,name=reporting_context,json=reportingContext,proto3,enum=google.shopping.type.ReportingContext_ReportingContextEnum" json:"reporting_context,omitempty"`
// Output only. A short issue description in English.
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
// Output only. A detailed issue description in English.
Detail string `protobuf:"bytes,7,opt,name=detail,proto3" json:"detail,omitempty"`
// Output only. The URL of a web page to help with resolving this issue.
Documentation string `protobuf:"bytes,8,opt,name=documentation,proto3" json:"documentation,omitempty"`
// contains filtered or unexported fields
}
The ItemLevelIssue of the merchant review status.
func (*MerchantReviewStatus_MerchantReviewItemLevelIssue) Descriptor
func (*MerchantReviewStatus_MerchantReviewItemLevelIssue) Descriptor() ([]byte, []int)
Deprecated: Use MerchantReviewStatus_MerchantReviewItemLevelIssue.ProtoReflect.Descriptor instead.
func (*MerchantReviewStatus_MerchantReviewItemLevelIssue) GetAttribute
func (x *MerchantReviewStatus_MerchantReviewItemLevelIssue) GetAttribute() string
func (*MerchantReviewStatus_MerchantReviewItemLevelIssue) GetCode
func (x *MerchantReviewStatus_MerchantReviewItemLevelIssue) GetCode() string
func (*MerchantReviewStatus_MerchantReviewItemLevelIssue) GetDescription
func (x *MerchantReviewStatus_MerchantReviewItemLevelIssue) GetDescription() string
func (*MerchantReviewStatus_MerchantReviewItemLevelIssue) GetDetail
func (x *MerchantReviewStatus_MerchantReviewItemLevelIssue) GetDetail() string
func (*MerchantReviewStatus_MerchantReviewItemLevelIssue) GetDocumentation
func (x *MerchantReviewStatus_MerchantReviewItemLevelIssue) GetDocumentation() string
func (*MerchantReviewStatus_MerchantReviewItemLevelIssue) GetReportingContext
func (x *MerchantReviewStatus_MerchantReviewItemLevelIssue) GetReportingContext() typepb.ReportingContext_ReportingContextEnum
func (*MerchantReviewStatus_MerchantReviewItemLevelIssue) GetResolution
func (x *MerchantReviewStatus_MerchantReviewItemLevelIssue) GetResolution() string
func (*MerchantReviewStatus_MerchantReviewItemLevelIssue) GetSeverity
func (x *MerchantReviewStatus_MerchantReviewItemLevelIssue) GetSeverity() MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity
func (*MerchantReviewStatus_MerchantReviewItemLevelIssue) ProtoMessage
func (*MerchantReviewStatus_MerchantReviewItemLevelIssue) ProtoMessage()
func (*MerchantReviewStatus_MerchantReviewItemLevelIssue) ProtoReflect
func (x *MerchantReviewStatus_MerchantReviewItemLevelIssue) ProtoReflect() protoreflect.Message
func (*MerchantReviewStatus_MerchantReviewItemLevelIssue) Reset
func (x *MerchantReviewStatus_MerchantReviewItemLevelIssue) Reset()
func (*MerchantReviewStatus_MerchantReviewItemLevelIssue) String
func (x *MerchantReviewStatus_MerchantReviewItemLevelIssue) String() string
MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity
type MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity int32
How the issue affects the serving of the merchant review.
MerchantReviewStatus_MerchantReviewItemLevelIssue_SEVERITY_UNSPECIFIED, MerchantReviewStatus_MerchantReviewItemLevelIssue_NOT_IMPACTED, MerchantReviewStatus_MerchantReviewItemLevelIssue_DISAPPROVED
const (
// Not specified.
MerchantReviewStatus_MerchantReviewItemLevelIssue_SEVERITY_UNSPECIFIED MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity = 0
// This issue represents a warning and does not have a direct affect
// on the merchant review.
MerchantReviewStatus_MerchantReviewItemLevelIssue_NOT_IMPACTED MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity = 1
// Issue disapproves the merchant review.
MerchantReviewStatus_MerchantReviewItemLevelIssue_DISAPPROVED MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity = 2
)
func (MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity) Descriptor
func (MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity) Descriptor() protoreflect.EnumDescriptor
func (MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity) Enum
func (x MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity) Enum() *MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity
func (MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity) EnumDescriptor
func (MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity) EnumDescriptor() ([]byte, []int)
Deprecated: Use MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity.Descriptor instead.
func (MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity) Number
func (x MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity) Number() protoreflect.EnumNumber
func (MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity) String
func (x MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity) String() string
func (MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity) Type
MerchantReviewsServiceClient
type MerchantReviewsServiceClient interface {
// Gets a merchant review.
GetMerchantReview(ctx context.Context, in *GetMerchantReviewRequest, opts ...grpc.CallOption) (*MerchantReview, error)
// Lists merchant reviews.
ListMerchantReviews(ctx context.Context, in *ListMerchantReviewsRequest, opts ...grpc.CallOption) (*ListMerchantReviewsResponse, error)
// Inserts a review for your Merchant Center account. If the review
// already exists, then the review is replaced with the new instance.
InsertMerchantReview(ctx context.Context, in *InsertMerchantReviewRequest, opts ...grpc.CallOption) (*MerchantReview, error)
// Deletes merchant review.
DeleteMerchantReview(ctx context.Context, in *DeleteMerchantReviewRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
MerchantReviewsServiceClient is the client API for MerchantReviewsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMerchantReviewsServiceClient
func NewMerchantReviewsServiceClient(cc grpc.ClientConnInterface) MerchantReviewsServiceClient
MerchantReviewsServiceServer
type MerchantReviewsServiceServer interface {
// Gets a merchant review.
GetMerchantReview(context.Context, *GetMerchantReviewRequest) (*MerchantReview, error)
// Lists merchant reviews.
ListMerchantReviews(context.Context, *ListMerchantReviewsRequest) (*ListMerchantReviewsResponse, error)
// Inserts a review for your Merchant Center account. If the review
// already exists, then the review is replaced with the new instance.
InsertMerchantReview(context.Context, *InsertMerchantReviewRequest) (*MerchantReview, error)
// Deletes merchant review.
DeleteMerchantReview(context.Context, *DeleteMerchantReviewRequest) (*emptypb.Empty, error)
}
MerchantReviewsServiceServer is the server API for MerchantReviewsService service. All implementations should embed UnimplementedMerchantReviewsServiceServer for forward compatibility
ProductReview
type ProductReview struct {
// Identifier. The name of the product review.
// Format:
// `"{productreview.name=accounts/{account}/productReviews/{productReview}}"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The permanent, unique identifier for the product review in the
// publisher’s system.
ProductReviewId string `protobuf:"bytes,2,opt,name=product_review_id,json=productReviewId,proto3" json:"product_review_id,omitempty"`
// Optional. A list of product review attributes.
ProductReviewAttributes *ProductReviewAttributes `protobuf:"bytes,3,opt,name=product_review_attributes,json=productReviewAttributes,proto3" json:"product_review_attributes,omitempty"`
// Optional. A list of custom (merchant-provided) attributes.
CustomAttributes []*typepb.CustomAttribute `protobuf:"bytes,4,rep,name=custom_attributes,json=customAttributes,proto3" json:"custom_attributes,omitempty"`
// Output only. The primary data source of the product review.
DataSource string `protobuf:"bytes,5,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
// Output only. The status of a product review, data validation issues, that
// is, information about a product review computed asynchronously.
ProductReviewStatus *ProductReviewStatus `protobuf:"bytes,6,opt,name=product_review_status,json=productReviewStatus,proto3" json:"product_review_status,omitempty"`
// contains filtered or unexported fields
}
A review for a product. For more information, see Introduction to Product Review Feeds
func (*ProductReview) Descriptor
func (*ProductReview) Descriptor() ([]byte, []int)
Deprecated: Use ProductReview.ProtoReflect.Descriptor instead.
func (*ProductReview) GetCustomAttributes
func (x *ProductReview) GetCustomAttributes() []*typepb.CustomAttribute
func (*ProductReview) GetDataSource
func (x *ProductReview) GetDataSource() string
func (*ProductReview) GetName
func (x *ProductReview) GetName() string
func (*ProductReview) GetProductReviewAttributes
func (x *ProductReview) GetProductReviewAttributes() *ProductReviewAttributes
func (*ProductReview) GetProductReviewId
func (x *ProductReview) GetProductReviewId() string
func (*ProductReview) GetProductReviewStatus
func (x *ProductReview) GetProductReviewStatus() *ProductReviewStatus
func (*ProductReview) ProtoMessage
func (*ProductReview) ProtoMessage()
func (*ProductReview) ProtoReflect
func (x *ProductReview) ProtoReflect() protoreflect.Message
func (*ProductReview) Reset
func (x *ProductReview) Reset()
func (*ProductReview) String
func (x *ProductReview) String() string
ProductReviewAttributes
type ProductReviewAttributes struct {
// Optional. The name of the aggregator of the product reviews.
//
// A publisher may use a reviews aggregator to manage reviews and provide
// the feeds. This element indicates the use of an aggregator and contains
// information about the aggregator.
AggregatorName *string `protobuf:"bytes,1,opt,name=aggregator_name,json=aggregatorName,proto3,oneof" json:"aggregator_name,omitempty"`
// Optional. The name of the subclient of the product reviews.
//
// The subclient is an identifier of the product review source.
// It should be equivalent to the directory provided in the file data source
// path.
SubclientName *string `protobuf:"bytes,2,opt,name=subclient_name,json=subclientName,proto3,oneof" json:"subclient_name,omitempty"`
// Optional. The name of the publisher of the product reviews.
//
// The information about the publisher, which may be a retailer,
// manufacturer, reviews service company, or any entity that publishes
// product reviews.
PublisherName *string `protobuf:"bytes,3,opt,name=publisher_name,json=publisherName,proto3,oneof" json:"publisher_name,omitempty"`
// Optional. A link to the company favicon of the publisher. The image
// dimensions should be favicon size: 16x16 pixels. The image format should be
// GIF, JPG or PNG.
PublisherFavicon *string `protobuf:"bytes,4,opt,name=publisher_favicon,json=publisherFavicon,proto3,oneof" json:"publisher_favicon,omitempty"`
// Optional. The author of the product review.
//
// A permanent, unique identifier for the author of the review in the
// publisher's system.
ReviewerId *string `protobuf:"bytes,5,opt,name=reviewer_id,json=reviewerId,proto3,oneof" json:"reviewer_id,omitempty"`
// Optional. Set to true if the reviewer should remain anonymous.
ReviewerIsAnonymous *bool `protobuf:"varint,6,opt,name=reviewer_is_anonymous,json=reviewerIsAnonymous,proto3,oneof" json:"reviewer_is_anonymous,omitempty"`
// Optional. The name of the reviewer of the product review.
ReviewerUsername *string `protobuf:"bytes,7,opt,name=reviewer_username,json=reviewerUsername,proto3,oneof" json:"reviewer_username,omitempty"`
// Optional. The language of the review defined by BCP-47 language code.
ReviewLanguage *string `protobuf:"bytes,8,opt,name=review_language,json=reviewLanguage,proto3,oneof" json:"review_language,omitempty"`
// Optional. The country of the review defined by ISO 3166-1 Alpha-2 Country
// Code.
ReviewCountry *string `protobuf:"bytes,9,opt,name=review_country,json=reviewCountry,proto3,oneof" json:"review_country,omitempty"`
// Required. The timestamp indicating when the review was written.
ReviewTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=review_time,json=reviewTime,proto3" json:"review_time,omitempty"`
// Optional. The title of the review.
Title *string `protobuf:"bytes,11,opt,name=title,proto3,oneof" json:"title,omitempty"`
// Optional. The content of the review. If empty, the content might still get
// populated from pros and cons.
Content *string `protobuf:"bytes,12,opt,name=content,proto3,oneof" json:"content,omitempty"`
// Optional. Contains the advantages based on the opinion of the reviewer.
// Omit boilerplate text like "pro:" unless it was written by the reviewer.
Pros []string `protobuf:"bytes,13,rep,name=pros,proto3" json:"pros,omitempty"`
// Optional. Contains the disadvantages based on the opinion of the reviewer.
// Omit boilerplate text like "con:" unless it was written by the reviewer.
Cons []string `protobuf:"bytes,14,rep,name=cons,proto3" json:"cons,omitempty"`
// Optional. The URI of the review landing page.
ReviewLink *ProductReviewAttributes_ReviewLink `protobuf:"bytes,15,opt,name=review_link,json=reviewLink,proto3" json:"review_link,omitempty"`
// Optional. A URI to an image of the reviewed product created by the review
// author. The URI does not have to end with an image file extension.
ReviewerImageLinks []string `protobuf:"bytes,16,rep,name=reviewer_image_links,json=reviewerImageLinks,proto3" json:"reviewer_image_links,omitempty"`
// Optional. Contains the ratings associated with the review.
// The minimum possible number for the rating. This should be the worst
// possible rating and should not be a value for no rating.
MinRating *int64 `protobuf:"varint,17,opt,name=min_rating,json=minRating,proto3,oneof" json:"min_rating,omitempty"`
// Optional. The maximum possible number for the rating. The value of the max
// rating must be greater than the value of the min attribute.
MaxRating *int64 `protobuf:"varint,18,opt,name=max_rating,json=maxRating,proto3,oneof" json:"max_rating,omitempty"`
// Optional. The reviewer's overall rating of the product.
Rating *float64 `protobuf:"fixed64,19,opt,name=rating,proto3,oneof" json:"rating,omitempty"`
// Optional. Descriptive name of a product.
ProductNames []string `protobuf:"bytes,20,rep,name=product_names,json=productNames,proto3" json:"product_names,omitempty"`
// Optional. The URI of the product. This URI can have the same value as the
// `review_link` element, if the review URI and the product URI are the
// same.
ProductLinks []string `protobuf:"bytes,21,rep,name=product_links,json=productLinks,proto3" json:"product_links,omitempty"`
// Optional. Contains ASINs (Amazon Standard Identification Numbers)
// associated with a product.
Asins []string `protobuf:"bytes,22,rep,name=asins,proto3" json:"asins,omitempty"`
// Optional. Contains GTINs (global trade item numbers) associated with a
// product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported.
Gtins []string `protobuf:"bytes,23,rep,name=gtins,proto3" json:"gtins,omitempty"`
// Optional. Contains MPNs (manufacturer part numbers) associated with a
// product.
Mpns []string `protobuf:"bytes,24,rep,name=mpns,proto3" json:"mpns,omitempty"`
// Optional. Contains SKUs (stock keeping units) associated with a product.
// Often this matches the product Offer Id in the product feed.
Skus []string `protobuf:"bytes,25,rep,name=skus,proto3" json:"skus,omitempty"`
// Optional. Contains brand names associated with a product.
Brands []string `protobuf:"bytes,26,rep,name=brands,proto3" json:"brands,omitempty"`
// Optional. Indicates whether the review is marked as spam in the publisher's
// system.
IsSpam *bool `protobuf:"varint,27,opt,name=is_spam,json=isSpam,proto3,oneof" json:"is_spam,omitempty"`
// Optional. Indicates whether the reviewer's purchase is verified.
IsVerifiedPurchase *bool `protobuf:"varint,30,opt,name=is_verified_purchase,json=isVerifiedPurchase,proto3,oneof" json:"is_verified_purchase,omitempty"`
// Optional. Indicates whether the review is incentivized.
IsIncentivizedReview *bool `protobuf:"varint,31,opt,name=is_incentivized_review,json=isIncentivizedReview,proto3,oneof" json:"is_incentivized_review,omitempty"`
// Optional. The method used to collect the review.
CollectionMethod ProductReviewAttributes_CollectionMethod `protobuf:"varint,28,opt,name=collection_method,json=collectionMethod,proto3,enum=google.shopping.merchant.reviews.v1beta.ProductReviewAttributes_CollectionMethod" json:"collection_method,omitempty"`
// Optional. A permanent, unique identifier for the transaction associated
// with the review in the publisher's system. This ID can be used to indicate
// that multiple reviews are associated with the same transaction.
TransactionId string `protobuf:"bytes,29,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
// contains filtered or unexported fields
}
Attributes.
func (*ProductReviewAttributes) Descriptor
func (*ProductReviewAttributes) Descriptor() ([]byte, []int)
Deprecated: Use ProductReviewAttributes.ProtoReflect.Descriptor instead.
func (*ProductReviewAttributes) GetAggregatorName
func (x *ProductReviewAttributes) GetAggregatorName() string
func (*ProductReviewAttributes) GetAsins
func (x *ProductReviewAttributes) GetAsins() []string
func (*ProductReviewAttributes) GetBrands
func (x *ProductReviewAttributes) GetBrands() []string
func (*ProductReviewAttributes) GetCollectionMethod
func (x *ProductReviewAttributes) GetCollectionMethod() ProductReviewAttributes_CollectionMethod
func (*ProductReviewAttributes) GetCons
func (x *ProductReviewAttributes) GetCons() []string
func (*ProductReviewAttributes) GetContent
func (x *ProductReviewAttributes) GetContent() string
func (*ProductReviewAttributes) GetGtins
func (x *ProductReviewAttributes) GetGtins() []string
func (*ProductReviewAttributes) GetIsIncentivizedReview
func (x *ProductReviewAttributes) GetIsIncentivizedReview() bool
func (*ProductReviewAttributes) GetIsSpam
func (x *ProductReviewAttributes) GetIsSpam() bool
func (*ProductReviewAttributes) GetIsVerifiedPurchase
func (x *ProductReviewAttributes) GetIsVerifiedPurchase() bool
func (*ProductReviewAttributes) GetMaxRating
func (x *ProductReviewAttributes) GetMaxRating() int64
func (*ProductReviewAttributes) GetMinRating
func (x *ProductReviewAttributes) GetMinRating() int64
func (*ProductReviewAttributes) GetMpns
func (x *ProductReviewAttributes) GetMpns() []string
func (*ProductReviewAttributes) GetProductLinks
func (x *ProductReviewAttributes) GetProductLinks() []string
func (*ProductReviewAttributes) GetProductNames
func (x *ProductReviewAttributes) GetProductNames() []string
func (*ProductReviewAttributes) GetPros
func (x *ProductReviewAttributes) GetPros() []string
func (*ProductReviewAttributes) GetPublisherFavicon
func (x *ProductReviewAttributes) GetPublisherFavicon() string
func (*ProductReviewAttributes) GetPublisherName
func (x *ProductReviewAttributes) GetPublisherName() string
func (*ProductReviewAttributes) GetRating
func (x *ProductReviewAttributes) GetRating() float64
func (*ProductReviewAttributes) GetReviewCountry
func (x *ProductReviewAttributes) GetReviewCountry() string
func (*ProductReviewAttributes) GetReviewLanguage
func (x *ProductReviewAttributes) GetReviewLanguage() string
func (*ProductReviewAttributes) GetReviewLink
func (x *ProductReviewAttributes) GetReviewLink() *ProductReviewAttributes_ReviewLink
func (*ProductReviewAttributes) GetReviewTime
func (x *ProductReviewAttributes) GetReviewTime() *timestamppb.Timestamp
func (*ProductReviewAttributes) GetReviewerId
func (x *ProductReviewAttributes) GetReviewerId() string
func (*ProductReviewAttributes) GetReviewerImageLinks
func (x *ProductReviewAttributes) GetReviewerImageLinks() []string
func (*ProductReviewAttributes) GetReviewerIsAnonymous
func (x *ProductReviewAttributes) GetReviewerIsAnonymous() bool
func (*ProductReviewAttributes) GetReviewerUsername
func (x *ProductReviewAttributes) GetReviewerUsername() string
func (*ProductReviewAttributes) GetSkus
func (x *ProductReviewAttributes) GetSkus() []string
func (*ProductReviewAttributes) GetSubclientName
func (x *ProductReviewAttributes) GetSubclientName() string
func (*ProductReviewAttributes) GetTitle
func (x *ProductReviewAttributes) GetTitle() string
func (*ProductReviewAttributes) GetTransactionId
func (x *ProductReviewAttributes) GetTransactionId() string
func (*ProductReviewAttributes) ProtoMessage
func (*ProductReviewAttributes) ProtoMessage()
func (*ProductReviewAttributes) ProtoReflect
func (x *ProductReviewAttributes) ProtoReflect() protoreflect.Message
func (*ProductReviewAttributes) Reset
func (x *ProductReviewAttributes) Reset()
func (*ProductReviewAttributes) String
func (x *ProductReviewAttributes) String() string
ProductReviewAttributes_CollectionMethod
type ProductReviewAttributes_CollectionMethod int32
The method used to collect the review.
ProductReviewAttributes_COLLECTION_METHOD_UNSPECIFIED, ProductReviewAttributes_UNSOLICITED, ProductReviewAttributes_POST_FULFILLMENT
const (
// Collection method unspecified.
ProductReviewAttributes_COLLECTION_METHOD_UNSPECIFIED ProductReviewAttributes_CollectionMethod = 0
// The user was not responding to a specific solicitation when they
// submitted the review.
ProductReviewAttributes_UNSOLICITED ProductReviewAttributes_CollectionMethod = 1
// The user submitted the review in response to a solicitation after
// fulfillment of the user's order.
ProductReviewAttributes_POST_FULFILLMENT ProductReviewAttributes_CollectionMethod = 2
)
func (ProductReviewAttributes_CollectionMethod) Descriptor
func (ProductReviewAttributes_CollectionMethod) Descriptor() protoreflect.EnumDescriptor
func (ProductReviewAttributes_CollectionMethod) Enum
func (ProductReviewAttributes_CollectionMethod) EnumDescriptor
func (ProductReviewAttributes_CollectionMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProductReviewAttributes_CollectionMethod.Descriptor instead.
func (ProductReviewAttributes_CollectionMethod) Number
func (x ProductReviewAttributes_CollectionMethod) Number() protoreflect.EnumNumber
func (ProductReviewAttributes_CollectionMethod) String
func (x ProductReviewAttributes_CollectionMethod) String() string
func (ProductReviewAttributes_CollectionMethod) Type
func (ProductReviewAttributes_CollectionMethod) Type() protoreflect.EnumType
ProductReviewAttributes_ReviewLink
type ProductReviewAttributes_ReviewLink struct {
// Optional. Type of the review URI.
Type ProductReviewAttributes_ReviewLink_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.shopping.merchant.reviews.v1beta.ProductReviewAttributes_ReviewLink_Type" json:"type,omitempty"`
// Optional. The URI of the review landing page.
// For example: `http://www.example.com/review_5.html`.
Link string `protobuf:"bytes,2,opt,name=link,proto3" json:"link,omitempty"`
// contains filtered or unexported fields
}
The URI of the review landing page.
func (*ProductReviewAttributes_ReviewLink) Descriptor
func (*ProductReviewAttributes_ReviewLink) Descriptor() ([]byte, []int)
Deprecated: Use ProductReviewAttributes_ReviewLink.ProtoReflect.Descriptor instead.
func (*ProductReviewAttributes_ReviewLink) GetLink
func (x *ProductReviewAttributes_ReviewLink) GetLink() string
func (*ProductReviewAttributes_ReviewLink) GetType
func (x *ProductReviewAttributes_ReviewLink) GetType() ProductReviewAttributes_ReviewLink_Type
func (*ProductReviewAttributes_ReviewLink) ProtoMessage
func (*ProductReviewAttributes_ReviewLink) ProtoMessage()
func (*ProductReviewAttributes_ReviewLink) ProtoReflect
func (x *ProductReviewAttributes_ReviewLink) ProtoReflect() protoreflect.Message
func (*ProductReviewAttributes_ReviewLink) Reset
func (x *ProductReviewAttributes_ReviewLink) Reset()
func (*ProductReviewAttributes_ReviewLink) String
func (x *ProductReviewAttributes_ReviewLink) String() string
ProductReviewAttributes_ReviewLink_Type
type ProductReviewAttributes_ReviewLink_Type int32
Type of the review URI.
ProductReviewAttributes_ReviewLink_TYPE_UNSPECIFIED, ProductReviewAttributes_ReviewLink_SINGLETON, ProductReviewAttributes_ReviewLink_GROUP
const (
// Type unspecified.
ProductReviewAttributes_ReviewLink_TYPE_UNSPECIFIED ProductReviewAttributes_ReviewLink_Type = 0
// The review page contains only this single review.
ProductReviewAttributes_ReviewLink_SINGLETON ProductReviewAttributes_ReviewLink_Type = 1
// The review page contains a group of reviews including this review.
ProductReviewAttributes_ReviewLink_GROUP ProductReviewAttributes_ReviewLink_Type = 2
)
func (ProductReviewAttributes_ReviewLink_Type) Descriptor
func (ProductReviewAttributes_ReviewLink_Type) Descriptor() protoreflect.EnumDescriptor
func (ProductReviewAttributes_ReviewLink_Type) Enum
func (ProductReviewAttributes_ReviewLink_Type) EnumDescriptor
func (ProductReviewAttributes_ReviewLink_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProductReviewAttributes_ReviewLink_Type.Descriptor instead.
func (ProductReviewAttributes_ReviewLink_Type) Number
func (x ProductReviewAttributes_ReviewLink_Type) Number() protoreflect.EnumNumber
func (ProductReviewAttributes_ReviewLink_Type) String
func (x ProductReviewAttributes_ReviewLink_Type) String() string
func (ProductReviewAttributes_ReviewLink_Type) Type
func (ProductReviewAttributes_ReviewLink_Type) Type() protoreflect.EnumType
ProductReviewStatus
type ProductReviewStatus struct {
// Output only. The intended destinations for the product review.
DestinationStatuses []*ProductReviewStatus_ProductReviewDestinationStatus `protobuf:"bytes,3,rep,name=destination_statuses,json=destinationStatuses,proto3" json:"destination_statuses,omitempty"`
// Output only. A list of all issues associated with the product review.
ItemLevelIssues []*ProductReviewStatus_ProductReviewItemLevelIssue `protobuf:"bytes,4,rep,name=item_level_issues,json=itemLevelIssues,proto3" json:"item_level_issues,omitempty"`
// Output only. Date on which the item has been created, in [ISO
// 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Date on which the item has been last updated, in [ISO
// 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
// contains filtered or unexported fields
}
Product review status.
func (*ProductReviewStatus) Descriptor
func (*ProductReviewStatus) Descriptor() ([]byte, []int)
Deprecated: Use ProductReviewStatus.ProtoReflect.Descriptor instead.
func (*ProductReviewStatus) GetCreateTime
func (x *ProductReviewStatus) GetCreateTime() *timestamppb.Timestamp
func (*ProductReviewStatus) GetDestinationStatuses
func (x *ProductReviewStatus) GetDestinationStatuses() []*ProductReviewStatus_ProductReviewDestinationStatus
func (*ProductReviewStatus) GetItemLevelIssues
func (x *ProductReviewStatus) GetItemLevelIssues() []*ProductReviewStatus_ProductReviewItemLevelIssue
func (*ProductReviewStatus) GetLastUpdateTime
func (x *ProductReviewStatus) GetLastUpdateTime() *timestamppb.Timestamp
func (*ProductReviewStatus) ProtoMessage
func (*ProductReviewStatus) ProtoMessage()
func (*ProductReviewStatus) ProtoReflect
func (x *ProductReviewStatus) ProtoReflect() protoreflect.Message
func (*ProductReviewStatus) Reset
func (x *ProductReviewStatus) Reset()
func (*ProductReviewStatus) String
func (x *ProductReviewStatus) String() string
ProductReviewStatus_ProductReviewDestinationStatus
type ProductReviewStatus_ProductReviewDestinationStatus struct {
// Output only. The name of the reporting context.
ReportingContext typepb.ReportingContext_ReportingContextEnum `protobuf:"varint,1,opt,name=reporting_context,json=reportingContext,proto3,enum=google.shopping.type.ReportingContext_ReportingContextEnum" json:"reporting_context,omitempty"`
// contains filtered or unexported fields
}
The destination status of the product review status.
func (*ProductReviewStatus_ProductReviewDestinationStatus) Descriptor
func (*ProductReviewStatus_ProductReviewDestinationStatus) Descriptor() ([]byte, []int)
Deprecated: Use ProductReviewStatus_ProductReviewDestinationStatus.ProtoReflect.Descriptor instead.
func (*ProductReviewStatus_ProductReviewDestinationStatus) GetReportingContext
func (x *ProductReviewStatus_ProductReviewDestinationStatus) GetReportingContext() typepb.ReportingContext_ReportingContextEnum
func (*ProductReviewStatus_ProductReviewDestinationStatus) ProtoMessage
func (*ProductReviewStatus_ProductReviewDestinationStatus) ProtoMessage()
func (*ProductReviewStatus_ProductReviewDestinationStatus) ProtoReflect
func (x *ProductReviewStatus_ProductReviewDestinationStatus) ProtoReflect() protoreflect.Message
func (*ProductReviewStatus_ProductReviewDestinationStatus) Reset
func (x *ProductReviewStatus_ProductReviewDestinationStatus) Reset()
func (*ProductReviewStatus_ProductReviewDestinationStatus) String
func (x *ProductReviewStatus_ProductReviewDestinationStatus) String() string
ProductReviewStatus_ProductReviewItemLevelIssue
type ProductReviewStatus_ProductReviewItemLevelIssue struct {
// Output only. The error code of the issue.
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// Output only. How this issue affects serving of the product review.
Severity ProductReviewStatus_ProductReviewItemLevelIssue_Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=google.shopping.merchant.reviews.v1beta.ProductReviewStatus_ProductReviewItemLevelIssue_Severity" json:"severity,omitempty"`
// Output only. Whether the issue can be resolved by the merchant.
Resolution string `protobuf:"bytes,3,opt,name=resolution,proto3" json:"resolution,omitempty"`
// Output only. 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"`
// Output only. The reporting context the issue applies to.
ReportingContext typepb.ReportingContext_ReportingContextEnum `protobuf:"varint,5,opt,name=reporting_context,json=reportingContext,proto3,enum=google.shopping.type.ReportingContext_ReportingContextEnum" json:"reporting_context,omitempty"`
// Output only. A short issue description in English.
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
// Output only. A detailed issue description in English.
Detail string `protobuf:"bytes,7,opt,name=detail,proto3" json:"detail,omitempty"`
// Output only. The URL of a web page to help with resolving this issue.
Documentation string `protobuf:"bytes,8,opt,name=documentation,proto3" json:"documentation,omitempty"`
// contains filtered or unexported fields
}
The ItemLevelIssue of the product review status.
func (*ProductReviewStatus_ProductReviewItemLevelIssue) Descriptor
func (*ProductReviewStatus_ProductReviewItemLevelIssue) Descriptor() ([]byte, []int)
Deprecated: Use ProductReviewStatus_ProductReviewItemLevelIssue.ProtoReflect.Descriptor instead.
func (*ProductReviewStatus_ProductReviewItemLevelIssue) GetAttribute
func (x *ProductReviewStatus_ProductReviewItemLevelIssue) GetAttribute() string
func (*ProductReviewStatus_ProductReviewItemLevelIssue) GetCode
func (x *ProductReviewStatus_ProductReviewItemLevelIssue) GetCode() string
func (*ProductReviewStatus_ProductReviewItemLevelIssue) GetDescription
func (x *ProductReviewStatus_ProductReviewItemLevelIssue) GetDescription() string
func (*ProductReviewStatus_ProductReviewItemLevelIssue) GetDetail
func (x *ProductReviewStatus_ProductReviewItemLevelIssue) GetDetail() string
func (*ProductReviewStatus_ProductReviewItemLevelIssue) GetDocumentation
func (x *ProductReviewStatus_ProductReviewItemLevelIssue) GetDocumentation() string
func (*ProductReviewStatus_ProductReviewItemLevelIssue) GetReportingContext
func (x *ProductReviewStatus_ProductReviewItemLevelIssue) GetReportingContext() typepb.ReportingContext_ReportingContextEnum
func (*ProductReviewStatus_ProductReviewItemLevelIssue) GetResolution
func (x *ProductReviewStatus_ProductReviewItemLevelIssue) GetResolution() string
func (*ProductReviewStatus_ProductReviewItemLevelIssue) GetSeverity
func (x *ProductReviewStatus_ProductReviewItemLevelIssue) GetSeverity() ProductReviewStatus_ProductReviewItemLevelIssue_Severity
func (*ProductReviewStatus_ProductReviewItemLevelIssue) ProtoMessage
func (*ProductReviewStatus_ProductReviewItemLevelIssue) ProtoMessage()
func (*ProductReviewStatus_ProductReviewItemLevelIssue) ProtoReflect
func (x *ProductReviewStatus_ProductReviewItemLevelIssue) ProtoReflect() protoreflect.Message
func (*ProductReviewStatus_ProductReviewItemLevelIssue) Reset
func (x *ProductReviewStatus_ProductReviewItemLevelIssue) Reset()
func (*ProductReviewStatus_ProductReviewItemLevelIssue) String
func (x *ProductReviewStatus_ProductReviewItemLevelIssue) String() string
ProductReviewStatus_ProductReviewItemLevelIssue_Severity
type ProductReviewStatus_ProductReviewItemLevelIssue_Severity int32
How the issue affects the serving of the product review.
ProductReviewStatus_ProductReviewItemLevelIssue_SEVERITY_UNSPECIFIED, ProductReviewStatus_ProductReviewItemLevelIssue_NOT_IMPACTED, ProductReviewStatus_ProductReviewItemLevelIssue_DISAPPROVED
const (
// Not specified.
ProductReviewStatus_ProductReviewItemLevelIssue_SEVERITY_UNSPECIFIED ProductReviewStatus_ProductReviewItemLevelIssue_Severity = 0
// This issue represents a warning and does not have a direct affect
// on the product review.
ProductReviewStatus_ProductReviewItemLevelIssue_NOT_IMPACTED ProductReviewStatus_ProductReviewItemLevelIssue_Severity = 1
// Issue disapproves the product review.
ProductReviewStatus_ProductReviewItemLevelIssue_DISAPPROVED ProductReviewStatus_ProductReviewItemLevelIssue_Severity = 2
)
func (ProductReviewStatus_ProductReviewItemLevelIssue_Severity) Descriptor
func (ProductReviewStatus_ProductReviewItemLevelIssue_Severity) Descriptor() protoreflect.EnumDescriptor
func (ProductReviewStatus_ProductReviewItemLevelIssue_Severity) Enum
func (x ProductReviewStatus_ProductReviewItemLevelIssue_Severity) Enum() *ProductReviewStatus_ProductReviewItemLevelIssue_Severity
func (ProductReviewStatus_ProductReviewItemLevelIssue_Severity) EnumDescriptor
func (ProductReviewStatus_ProductReviewItemLevelIssue_Severity) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProductReviewStatus_ProductReviewItemLevelIssue_Severity.Descriptor instead.
func (ProductReviewStatus_ProductReviewItemLevelIssue_Severity) Number
func (x ProductReviewStatus_ProductReviewItemLevelIssue_Severity) Number() protoreflect.EnumNumber
func (ProductReviewStatus_ProductReviewItemLevelIssue_Severity) String
func (x ProductReviewStatus_ProductReviewItemLevelIssue_Severity) String() string
func (ProductReviewStatus_ProductReviewItemLevelIssue_Severity) Type
ProductReviewsServiceClient
type ProductReviewsServiceClient interface {
// Gets a product review.
GetProductReview(ctx context.Context, in *GetProductReviewRequest, opts ...grpc.CallOption) (*ProductReview, error)
// Lists product reviews.
ListProductReviews(ctx context.Context, in *ListProductReviewsRequest, opts ...grpc.CallOption) (*ListProductReviewsResponse, error)
// Inserts a product review.
InsertProductReview(ctx context.Context, in *InsertProductReviewRequest, opts ...grpc.CallOption) (*ProductReview, error)
// Deletes a product review.
DeleteProductReview(ctx context.Context, in *DeleteProductReviewRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
ProductReviewsServiceClient is the client API for ProductReviewsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewProductReviewsServiceClient
func NewProductReviewsServiceClient(cc grpc.ClientConnInterface) ProductReviewsServiceClient
ProductReviewsServiceServer
type ProductReviewsServiceServer interface {
// Gets a product review.
GetProductReview(context.Context, *GetProductReviewRequest) (*ProductReview, error)
// Lists product reviews.
ListProductReviews(context.Context, *ListProductReviewsRequest) (*ListProductReviewsResponse, error)
// Inserts a product review.
InsertProductReview(context.Context, *InsertProductReviewRequest) (*ProductReview, error)
// Deletes a product review.
DeleteProductReview(context.Context, *DeleteProductReviewRequest) (*emptypb.Empty, error)
}
ProductReviewsServiceServer is the server API for ProductReviewsService service. All implementations should embed UnimplementedProductReviewsServiceServer for forward compatibility
UnimplementedMerchantReviewsServiceServer
type UnimplementedMerchantReviewsServiceServer struct {
}
UnimplementedMerchantReviewsServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedMerchantReviewsServiceServer) DeleteMerchantReview
func (UnimplementedMerchantReviewsServiceServer) DeleteMerchantReview(context.Context, *DeleteMerchantReviewRequest) (*emptypb.Empty, error)
func (UnimplementedMerchantReviewsServiceServer) GetMerchantReview
func (UnimplementedMerchantReviewsServiceServer) GetMerchantReview(context.Context, *GetMerchantReviewRequest) (*MerchantReview, error)
func (UnimplementedMerchantReviewsServiceServer) InsertMerchantReview
func (UnimplementedMerchantReviewsServiceServer) InsertMerchantReview(context.Context, *InsertMerchantReviewRequest) (*MerchantReview, error)
func (UnimplementedMerchantReviewsServiceServer) ListMerchantReviews
func (UnimplementedMerchantReviewsServiceServer) ListMerchantReviews(context.Context, *ListMerchantReviewsRequest) (*ListMerchantReviewsResponse, error)
UnimplementedProductReviewsServiceServer
type UnimplementedProductReviewsServiceServer struct {
}
UnimplementedProductReviewsServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedProductReviewsServiceServer) DeleteProductReview
func (UnimplementedProductReviewsServiceServer) DeleteProductReview(context.Context, *DeleteProductReviewRequest) (*emptypb.Empty, error)
func (UnimplementedProductReviewsServiceServer) GetProductReview
func (UnimplementedProductReviewsServiceServer) GetProductReview(context.Context, *GetProductReviewRequest) (*ProductReview, error)
func (UnimplementedProductReviewsServiceServer) InsertProductReview
func (UnimplementedProductReviewsServiceServer) InsertProductReview(context.Context, *InsertProductReviewRequest) (*ProductReview, error)
func (UnimplementedProductReviewsServiceServer) ListProductReviews
func (UnimplementedProductReviewsServiceServer) ListProductReviews(context.Context, *ListProductReviewsRequest) (*ListProductReviewsResponse, error)
UnsafeMerchantReviewsServiceServer
type UnsafeMerchantReviewsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMerchantReviewsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MerchantReviewsServiceServer will result in compilation errors.
UnsafeProductReviewsServiceServer
type UnsafeProductReviewsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProductReviewsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProductReviewsServiceServer will result in compilation errors.