Enum value maps for LineItemChangeType.
var ( LineItemChangeType_name = map[int32]string{ 0: "LINE_ITEM_CHANGE_TYPE_UNSPECIFIED", 1: "LINE_ITEM_CHANGE_TYPE_CREATE", 2: "LINE_ITEM_CHANGE_TYPE_UPDATE", 3: "LINE_ITEM_CHANGE_TYPE_CANCEL", 4: "LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION", } LineItemChangeType_value = map[string]int32{ "LINE_ITEM_CHANGE_TYPE_UNSPECIFIED": 0, "LINE_ITEM_CHANGE_TYPE_CREATE": 1, "LINE_ITEM_CHANGE_TYPE_UPDATE": 2, "LINE_ITEM_CHANGE_TYPE_CANCEL": 3, "LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION": 4, } )
Enum value maps for LineItemChangeState.
var ( LineItemChangeState_name = map[int32]string{ 0: "LINE_ITEM_CHANGE_STATE_UNSPECIFIED", 1: "LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL", 2: "LINE_ITEM_CHANGE_STATE_APPROVED", 3: "LINE_ITEM_CHANGE_STATE_COMPLETED", 4: "LINE_ITEM_CHANGE_STATE_REJECTED", 5: "LINE_ITEM_CHANGE_STATE_ABANDONED", 6: "LINE_ITEM_CHANGE_STATE_ACTIVATING", } LineItemChangeState_value = map[string]int32{ "LINE_ITEM_CHANGE_STATE_UNSPECIFIED": 0, "LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL": 1, "LINE_ITEM_CHANGE_STATE_APPROVED": 2, "LINE_ITEM_CHANGE_STATE_COMPLETED": 3, "LINE_ITEM_CHANGE_STATE_REJECTED": 4, "LINE_ITEM_CHANGE_STATE_ABANDONED": 5, "LINE_ITEM_CHANGE_STATE_ACTIVATING": 6, } )
Enum value maps for LineItemChangeStateReasonType.
var ( LineItemChangeStateReasonType_name = map[int32]string{ 0: "LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED", 1: "LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED", 2: "LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED", 3: "LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED", } LineItemChangeStateReasonType_value = map[string]int32{ "LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED": 0, "LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED": 1, "LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED": 2, "LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED": 3, } )
var File_google_cloud_commerce_consumer_procurement_v1alpha1_order_proto protoreflect.FileDescriptor
var File_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto protoreflect.FileDescriptor
func RegisterConsumerProcurementServiceServer(s *grpc.Server, srv ConsumerProcurementServiceServer)
ConsumerProcurementServiceClient is the client API for ConsumerProcurementService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ConsumerProcurementServiceClient interface { // Creates a new [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order]. // // The returned long-running operation is in-progress until the backend // completes the creation of the resource. Once completed, the order is // in [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1alpha1.OrderState.ORDER_STATE_ACTIVE]. In case of failure, the // order resource will be removed. PlaceOrder(ctx context.Context, in *PlaceOrderRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resource. GetOrder(ctx context.Context, in *GetOrderRequest, opts ...grpc.CallOption) (*Order, error) // Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resources that the user has access to, within the // scope of the parent resource. ListOrders(ctx context.Context, in *ListOrdersRequest, opts ...grpc.CallOption) (*ListOrdersResponse, error) }
func NewConsumerProcurementServiceClient(cc grpc.ClientConnInterface) ConsumerProcurementServiceClient
ConsumerProcurementServiceServer is the server API for ConsumerProcurementService service.
type ConsumerProcurementServiceServer interface { // Creates a new [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order]. // // The returned long-running operation is in-progress until the backend // completes the creation of the resource. Once completed, the order is // in [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1alpha1.OrderState.ORDER_STATE_ACTIVE]. In case of failure, the // order resource will be removed. PlaceOrder(context.Context, *PlaceOrderRequest) (*longrunning.Operation, error) // Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resource. GetOrder(context.Context, *GetOrderRequest) (*Order, error) // Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resources that the user has access to, within the // scope of the parent resource. ListOrders(context.Context, *ListOrdersRequest) (*ListOrdersResponse, error) }
Request message for [ConsumerProcurementService.GetOrder][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.GetOrder]
type GetOrderRequest struct { // Required. The name of the order to retrieve. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderRequest.ProtoReflect.Descriptor instead.
func (x *GetOrderRequest) GetName() string
func (*GetOrderRequest) ProtoMessage()
func (x *GetOrderRequest) ProtoReflect() protoreflect.Message
func (x *GetOrderRequest) Reset()
func (x *GetOrderRequest) String() string
A single item within an order.
type LineItem struct { // Output only. Line item ID. LineItemId string `protobuf:"bytes,1,opt,name=line_item_id,json=lineItemId,proto3" json:"line_item_id,omitempty"` // Output only. Current state and information of this item. It tells what, // e.g. which offer, is currently effective. LineItemInfo *LineItemInfo `protobuf:"bytes,2,opt,name=line_item_info,json=lineItemInfo,proto3" json:"line_item_info,omitempty"` // Output only. A change made on the item which is pending and not yet // effective. Absence of this field indicates the line item is not undergoing // a change. PendingChange *LineItemChange `protobuf:"bytes,3,opt,name=pending_change,json=pendingChange,proto3" json:"pending_change,omitempty"` // Output only. Changes made on the item that are not pending anymore which might be // because they already took effect, were reverted by the customer, or were // rejected by the partner. No more operations are allowed on these changes. ChangeHistory []*LineItemChange `protobuf:"bytes,4,rep,name=change_history,json=changeHistory,proto3" json:"change_history,omitempty"` // contains filtered or unexported fields }
func (*LineItem) Descriptor() ([]byte, []int)
Deprecated: Use LineItem.ProtoReflect.Descriptor instead.
func (x *LineItem) GetChangeHistory() []*LineItemChange
func (x *LineItem) GetLineItemId() string
func (x *LineItem) GetLineItemInfo() *LineItemInfo
func (x *LineItem) GetPendingChange() *LineItemChange
func (*LineItem) ProtoMessage()
func (x *LineItem) ProtoReflect() protoreflect.Message
func (x *LineItem) Reset()
func (x *LineItem) String() string
A change made on a line item.
type LineItemChange struct { // Output only. Change ID. // All changes made within one order update operation have the same change_id. ChangeId string `protobuf:"bytes,1,opt,name=change_id,json=changeId,proto3" json:"change_id,omitempty"` // Required. Type of the change to make. ChangeType LineItemChangeType `protobuf:"varint,2,opt,name=change_type,json=changeType,proto3,enum=google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType" json:"change_type,omitempty"` // Output only. Line item info before the change. OldLineItemInfo *LineItemInfo `protobuf:"bytes,3,opt,name=old_line_item_info,json=oldLineItemInfo,proto3" json:"old_line_item_info,omitempty"` // Line item info after the change. NewLineItemInfo *LineItemInfo `protobuf:"bytes,4,opt,name=new_line_item_info,json=newLineItemInfo,proto3" json:"new_line_item_info,omitempty"` // Output only. State of the change. ChangeState LineItemChangeState `protobuf:"varint,5,opt,name=change_state,json=changeState,proto3,enum=google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState" json:"change_state,omitempty"` // Output only. Provider-supplied message explaining the LineItemChange's // state. Mainly used to communicate progress and ETA for provisioning in the // case of `PENDING_APPROVAL`, and to explain why the change request was // denied or canceled in the case of `REJECTED` and `CANCELED` states. StateReason string `protobuf:"bytes,6,opt,name=state_reason,json=stateReason,proto3" json:"state_reason,omitempty"` // Output only. Predefined enum types for why this line item change is in current state. // For example, a line item change's state could be // `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration, // immediate cancellation initiated by the user, or system-initiated // cancellation. ChangeStateReasonType LineItemChangeStateReasonType `protobuf:"varint,10,opt,name=change_state_reason_type,json=changeStateReasonType,proto3,enum=google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType" json:"change_state_reason_type,omitempty"` // Output only. A time at which the change became or will become (in case of // pending change) effective. ChangeEffectiveTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=change_effective_time,json=changeEffectiveTime,proto3" json:"change_effective_time,omitempty"` // Output only. The time when change was initiated. CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when change was updated, e.g. approved/rejected by // partners or cancelled by the user. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
func (*LineItemChange) Descriptor() ([]byte, []int)
Deprecated: Use LineItemChange.ProtoReflect.Descriptor instead.
func (x *LineItemChange) GetChangeEffectiveTime() *timestamppb.Timestamp
func (x *LineItemChange) GetChangeId() string
func (x *LineItemChange) GetChangeState() LineItemChangeState
func (x *LineItemChange) GetChangeStateReasonType() LineItemChangeStateReasonType
func (x *LineItemChange) GetChangeType() LineItemChangeType
func (x *LineItemChange) GetCreateTime() *timestamppb.Timestamp
func (x *LineItemChange) GetNewLineItemInfo() *LineItemInfo
func (x *LineItemChange) GetOldLineItemInfo() *LineItemInfo
func (x *LineItemChange) GetStateReason() string
func (x *LineItemChange) GetUpdateTime() *timestamppb.Timestamp
func (*LineItemChange) ProtoMessage()
func (x *LineItemChange) ProtoReflect() protoreflect.Message
func (x *LineItemChange) Reset()
func (x *LineItemChange) String() string
State of a change.
type LineItemChangeState int32
const ( // Sentinel value. Do not use. LineItemChangeState_LINE_ITEM_CHANGE_STATE_UNSPECIFIED LineItemChangeState = 0 // Change is in this state when a change is initiated and waiting for // partner approval. LineItemChangeState_LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL LineItemChangeState = 1 // Change is in this state after it's approved by the partner or auto-approved // but before it takes effect. The change can be overwritten // or cancelled depending on the new line item info property (pending Private // Offer change cannot be cancelled and can only be overwritten by another // Private Offer). LineItemChangeState_LINE_ITEM_CHANGE_STATE_APPROVED LineItemChangeState = 2 // Change is in this state after it's been activated. LineItemChangeState_LINE_ITEM_CHANGE_STATE_COMPLETED LineItemChangeState = 3 // Change is in this state if it was rejected by the partner. LineItemChangeState_LINE_ITEM_CHANGE_STATE_REJECTED LineItemChangeState = 4 // Change is in this state if it was abandoned by the user. LineItemChangeState_LINE_ITEM_CHANGE_STATE_ABANDONED LineItemChangeState = 5 // Change is in this state if it's currently being provisioned downstream. The // change can't be overwritten or cancelled when it's in this state. LineItemChangeState_LINE_ITEM_CHANGE_STATE_ACTIVATING LineItemChangeState = 6 )
func (LineItemChangeState) Descriptor() protoreflect.EnumDescriptor
func (x LineItemChangeState) Enum() *LineItemChangeState
func (LineItemChangeState) EnumDescriptor() ([]byte, []int)
Deprecated: Use LineItemChangeState.Descriptor instead.
func (x LineItemChangeState) Number() protoreflect.EnumNumber
func (x LineItemChangeState) String() string
func (LineItemChangeState) Type() protoreflect.EnumType
Predefined types for line item change state reason.
type LineItemChangeStateReasonType int32
const ( // Default value, indicating there's no predefined type for change state // reason. LineItemChangeStateReasonType_LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED LineItemChangeStateReasonType = 0 // Change is in current state due to term expiration. LineItemChangeStateReasonType_LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED LineItemChangeStateReasonType = 1 // Change is in current state due to user-initiated cancellation. LineItemChangeStateReasonType_LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED LineItemChangeStateReasonType = 2 // Change is in current state due to system-initiated cancellation. LineItemChangeStateReasonType_LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED LineItemChangeStateReasonType = 3 )
func (LineItemChangeStateReasonType) Descriptor() protoreflect.EnumDescriptor
func (x LineItemChangeStateReasonType) Enum() *LineItemChangeStateReasonType
func (LineItemChangeStateReasonType) EnumDescriptor() ([]byte, []int)
Deprecated: Use LineItemChangeStateReasonType.Descriptor instead.
func (x LineItemChangeStateReasonType) Number() protoreflect.EnumNumber
func (x LineItemChangeStateReasonType) String() string
func (LineItemChangeStateReasonType) Type() protoreflect.EnumType
Type of a line item change.
type LineItemChangeType int32
const ( // Sentinel value. Do not use. LineItemChangeType_LINE_ITEM_CHANGE_TYPE_UNSPECIFIED LineItemChangeType = 0 // The change is to create a new line item. LineItemChangeType_LINE_ITEM_CHANGE_TYPE_CREATE LineItemChangeType = 1 // The change is to update an existing line item. LineItemChangeType_LINE_ITEM_CHANGE_TYPE_UPDATE LineItemChangeType = 2 // The change is to cancel an existing line item. LineItemChangeType_LINE_ITEM_CHANGE_TYPE_CANCEL LineItemChangeType = 3 // The change is to revert a cancellation. LineItemChangeType_LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION LineItemChangeType = 4 )
func (LineItemChangeType) Descriptor() protoreflect.EnumDescriptor
func (x LineItemChangeType) Enum() *LineItemChangeType
func (LineItemChangeType) EnumDescriptor() ([]byte, []int)
Deprecated: Use LineItemChangeType.Descriptor instead.
func (x LineItemChangeType) Number() protoreflect.EnumNumber
func (x LineItemChangeType) String() string
func (LineItemChangeType) Type() protoreflect.EnumType
Line item information.
type LineItemInfo struct { // Optional. The name of the offer can have either of these formats: // 'billingAccounts/{billing_account}/offers/{offer}', // or 'services/{service}/standardOffers/{offer}'. Offer string `protobuf:"bytes,13,opt,name=offer,proto3" json:"offer,omitempty"` // Optional. User-provided parameters. Parameters []*Parameter `protobuf:"bytes,9,rep,name=parameters,proto3" json:"parameters,omitempty"` // Output only. Information about the subscription created, if applicable. Subscription *Subscription `protobuf:"bytes,10,opt,name=subscription,proto3" json:"subscription,omitempty"` // contains filtered or unexported fields }
func (*LineItemInfo) Descriptor() ([]byte, []int)
Deprecated: Use LineItemInfo.ProtoReflect.Descriptor instead.
func (x *LineItemInfo) GetOffer() string
func (x *LineItemInfo) GetParameters() []*Parameter
func (x *LineItemInfo) GetSubscription() *Subscription
func (*LineItemInfo) ProtoMessage()
func (x *LineItemInfo) ProtoReflect() protoreflect.Message
func (x *LineItemInfo) Reset()
func (x *LineItemInfo) String() string
Request message for [ConsumerProcurementService.ListOrders][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.ListOrders].
type ListOrdersRequest struct { // Required. The parent resource to query for orders. // This field has the form `billingAccounts/{billing-account-id}`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of entries requested. // The default page size is 25 and the maximum page size is 200. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The token for fetching the next page. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Filter that you can use to limit the list request. // // A query string that can match a selected set of attributes // with string values. For example, `display_name=abc`. // Supported query attributes are // // * `display_name` // // If the query contains special characters other than letters, // underscore, or digits, the phrase must be quoted with double quotes. For // example, `display_name="foo:bar"`, where the display name needs to be // quoted because it contains special character colon. // // Queries can be combined with `OR`, and `NOT` to form more complex queries. // You can also group them to force a desired evaluation order. // For example, `display_name=abc OR display_name=def`. Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*ListOrdersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListOrdersRequest.ProtoReflect.Descriptor instead.
func (x *ListOrdersRequest) GetFilter() string
func (x *ListOrdersRequest) GetPageSize() int32
func (x *ListOrdersRequest) GetPageToken() string
func (x *ListOrdersRequest) GetParent() string
func (*ListOrdersRequest) ProtoMessage()
func (x *ListOrdersRequest) ProtoReflect() protoreflect.Message
func (x *ListOrdersRequest) Reset()
func (x *ListOrdersRequest) String() string
Response message for [ConsumerProcurementService.ListOrders][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.ListOrders].
type ListOrdersResponse struct { // The list of orders in this response. Orders []*Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` // The token for fetching the next page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListOrdersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListOrdersResponse.ProtoReflect.Descriptor instead.
func (x *ListOrdersResponse) GetNextPageToken() string
func (x *ListOrdersResponse) GetOrders() []*Order
func (*ListOrdersResponse) ProtoMessage()
func (x *ListOrdersResponse) ProtoReflect() protoreflect.Message
func (x *ListOrdersResponse) Reset()
func (x *ListOrdersResponse) String() string
Represents a purchase made by a customer on Cloud Marketplace. Creating an order makes sure that both the Google backend systems as well as external service provider's systems (if needed) allow use of purchased products and ensures the appropriate billing events occur.
An Order can be made against one Product with multiple add-ons (optional) or one Quote which might reference multiple products.
Customers typically choose a price plan for each Product purchased when they create an order and can change their plan later, if the product allows.
type Order struct { // Output only. The resource name of the order. // Has the form // `billingAccounts/{billing_account}/orders/{order}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. The user-specified name of the order. // Must be unique within a billing account. DisplayName string `protobuf:"bytes,10,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Output only. The items being purchased. LineItems []*LineItem `protobuf:"bytes,6,rep,name=line_items,json=lineItems,proto3" json:"line_items,omitempty"` // Output only. Line items that were cancelled. CancelledLineItems []*LineItem `protobuf:"bytes,7,rep,name=cancelled_line_items,json=cancelledLineItems,proto3" json:"cancelled_line_items,omitempty"` // Output only. The creation timestamp. CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last update timestamp. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The weak etag of the order. Etag string `protobuf:"bytes,11,opt,name=etag,proto3" json:"etag,omitempty"` // contains filtered or unexported fields }
func (*Order) Descriptor() ([]byte, []int)
Deprecated: Use Order.ProtoReflect.Descriptor instead.
func (x *Order) GetCancelledLineItems() []*LineItem
func (x *Order) GetCreateTime() *timestamppb.Timestamp
func (x *Order) GetDisplayName() string
func (x *Order) GetEtag() string
func (x *Order) GetLineItems() []*LineItem
func (x *Order) GetName() string
func (x *Order) GetUpdateTime() *timestamppb.Timestamp
func (*Order) ProtoMessage()
func (x *Order) ProtoReflect() protoreflect.Message
func (x *Order) Reset()
func (x *Order) String() string
User-provided Parameters.
type Parameter struct { // Name of the parameter. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Value of parameter. Value *Parameter_Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Parameter) Descriptor() ([]byte, []int)
Deprecated: Use Parameter.ProtoReflect.Descriptor instead.
func (x *Parameter) GetName() string
func (x *Parameter) GetValue() *Parameter_Value
func (*Parameter) ProtoMessage()
func (x *Parameter) ProtoReflect() protoreflect.Message
func (x *Parameter) Reset()
func (x *Parameter) String() string
type Parameter_Value struct { // The kind of value. // // Types that are assignable to Kind: // *Parameter_Value_Int64Value // *Parameter_Value_StringValue // *Parameter_Value_DoubleValue Kind isParameter_Value_Kind `protobuf_oneof:"kind"` // contains filtered or unexported fields }
func (*Parameter_Value) Descriptor() ([]byte, []int)
Deprecated: Use Parameter_Value.ProtoReflect.Descriptor instead.
func (x *Parameter_Value) GetDoubleValue() float64
func (x *Parameter_Value) GetInt64Value() int64
func (m *Parameter_Value) GetKind() isParameter_Value_Kind
func (x *Parameter_Value) GetStringValue() string
func (*Parameter_Value) ProtoMessage()
func (x *Parameter_Value) ProtoReflect() protoreflect.Message
func (x *Parameter_Value) Reset()
func (x *Parameter_Value) String() string
type Parameter_Value_DoubleValue struct { // Represents a double value. DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof"` }
type Parameter_Value_Int64Value struct { // Represents an int64 value. Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"` }
type Parameter_Value_StringValue struct { // Represents a string value. StringValue string `protobuf:"bytes,4,opt,name=string_value,json=stringValue,proto3,oneof"` }
Message stored in the metadata field of the Operation returned by [ConsumerProcurementService.PlaceOrder][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.PlaceOrder].
type PlaceOrderMetadata struct {
// contains filtered or unexported fields
}
func (*PlaceOrderMetadata) Descriptor() ([]byte, []int)
Deprecated: Use PlaceOrderMetadata.ProtoReflect.Descriptor instead.
func (*PlaceOrderMetadata) ProtoMessage()
func (x *PlaceOrderMetadata) ProtoReflect() protoreflect.Message
func (x *PlaceOrderMetadata) Reset()
func (x *PlaceOrderMetadata) String() string
Request message for [ConsumerProcurementService.PlaceOrder][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.PlaceOrder].
type PlaceOrderRequest struct { // Required. The resource name of the parent resource. // This field has the form `billingAccounts/{billing-account-id}`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The user-specified name of the order being placed. // Must be unique within a billing account. DisplayName string `protobuf:"bytes,6,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Optional. Places order for offer. Required when an offer-based order is being placed. LineItemInfo []*LineItemInfo `protobuf:"bytes,10,rep,name=line_item_info,json=lineItemInfo,proto3" json:"line_item_info,omitempty"` // Optional. A unique identifier for this request. // The server will ignore subsequent requests that provide a duplicate request // ID for at least 120 minutes after the first request. // // The request ID must be a valid // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). RequestId string `protobuf:"bytes,7,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // contains filtered or unexported fields }
func (*PlaceOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use PlaceOrderRequest.ProtoReflect.Descriptor instead.
func (x *PlaceOrderRequest) GetDisplayName() string
func (x *PlaceOrderRequest) GetLineItemInfo() []*LineItemInfo
func (x *PlaceOrderRequest) GetParent() string
func (x *PlaceOrderRequest) GetRequestId() string
func (*PlaceOrderRequest) ProtoMessage()
func (x *PlaceOrderRequest) ProtoReflect() protoreflect.Message
func (x *PlaceOrderRequest) Reset()
func (x *PlaceOrderRequest) String() string
Subscription information.
type Subscription struct { // The timestamp when the subscription begins, if applicable. StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The timestamp when the subscription ends, if applicable. EndTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Whether auto renewal is enabled by user choice on current subscription. // This field indicates order/subscription status after pending plan change is // cancelled or rejected. AutoRenewalEnabled bool `protobuf:"varint,2,opt,name=auto_renewal_enabled,json=autoRenewalEnabled,proto3" json:"auto_renewal_enabled,omitempty"` // contains filtered or unexported fields }
func (*Subscription) Descriptor() ([]byte, []int)
Deprecated: Use Subscription.ProtoReflect.Descriptor instead.
func (x *Subscription) GetAutoRenewalEnabled() bool
func (x *Subscription) GetEndTime() *timestamppb.Timestamp
func (x *Subscription) GetStartTime() *timestamppb.Timestamp
func (*Subscription) ProtoMessage()
func (x *Subscription) ProtoReflect() protoreflect.Message
func (x *Subscription) Reset()
func (x *Subscription) String() string
UnimplementedConsumerProcurementServiceServer can be embedded to have forward compatible implementations.
type UnimplementedConsumerProcurementServiceServer struct { }
func (*UnimplementedConsumerProcurementServiceServer) GetOrder(context.Context, *GetOrderRequest) (*Order, error)
func (*UnimplementedConsumerProcurementServiceServer) ListOrders(context.Context, *ListOrdersRequest) (*ListOrdersResponse, error)
func (*UnimplementedConsumerProcurementServiceServer) PlaceOrder(context.Context, *PlaceOrderRequest) (*longrunning.Operation, error)