| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/cloud/recommender/v1beta1/recommender_service.proto |
| |
| package recommender |
| |
| import ( |
| context "context" |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| grpc "google.golang.org/grpc" |
| codes "google.golang.org/grpc/codes" |
| status "google.golang.org/grpc/status" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // Request for the `ListInsights` method. |
| type ListInsightsRequest struct { |
| // Required. The container resource on which to execute the request. |
| // Acceptable formats: |
| // |
| // 1. |
| // "projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]", |
| // |
| // LOCATION here refers to GCP Locations: |
| // https://cloud.google.com/about/locations/ |
| Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| // Optional. The maximum number of results to return from this request. Non-positive |
| // values are ignored. If not specified, the server will determine the number |
| // of results to return. |
| PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| // Optional. If present, retrieves the next batch of results from the preceding call to |
| // this method. `page_token` must be the value of `next_page_token` from the |
| // previous response. The values of other method parameters must be identical |
| // to those in the previous call. |
| PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` |
| // Optional. Filter expression to restrict the insights returned. Supported |
| // filter fields: state |
| // Eg: `state:"DISMISSED" or state:"ACTIVE" |
| Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ListInsightsRequest) Reset() { *m = ListInsightsRequest{} } |
| func (m *ListInsightsRequest) String() string { return proto.CompactTextString(m) } |
| func (*ListInsightsRequest) ProtoMessage() {} |
| func (*ListInsightsRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_0ca265e4ecfbc6d8, []int{0} |
| } |
| |
| func (m *ListInsightsRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ListInsightsRequest.Unmarshal(m, b) |
| } |
| func (m *ListInsightsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ListInsightsRequest.Marshal(b, m, deterministic) |
| } |
| func (m *ListInsightsRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListInsightsRequest.Merge(m, src) |
| } |
| func (m *ListInsightsRequest) XXX_Size() int { |
| return xxx_messageInfo_ListInsightsRequest.Size(m) |
| } |
| func (m *ListInsightsRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListInsightsRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListInsightsRequest proto.InternalMessageInfo |
| |
| func (m *ListInsightsRequest) GetParent() string { |
| if m != nil { |
| return m.Parent |
| } |
| return "" |
| } |
| |
| func (m *ListInsightsRequest) GetPageSize() int32 { |
| if m != nil { |
| return m.PageSize |
| } |
| return 0 |
| } |
| |
| func (m *ListInsightsRequest) GetPageToken() string { |
| if m != nil { |
| return m.PageToken |
| } |
| return "" |
| } |
| |
| func (m *ListInsightsRequest) GetFilter() string { |
| if m != nil { |
| return m.Filter |
| } |
| return "" |
| } |
| |
| // Response to the `ListInsights` method. |
| type ListInsightsResponse struct { |
| // The set of insights for the `parent` resource. |
| Insights []*Insight `protobuf:"bytes,1,rep,name=insights,proto3" json:"insights,omitempty"` |
| // A token that can be used to request the next page of results. This field is |
| // empty if there are no additional results. |
| NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ListInsightsResponse) Reset() { *m = ListInsightsResponse{} } |
| func (m *ListInsightsResponse) String() string { return proto.CompactTextString(m) } |
| func (*ListInsightsResponse) ProtoMessage() {} |
| func (*ListInsightsResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_0ca265e4ecfbc6d8, []int{1} |
| } |
| |
| func (m *ListInsightsResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ListInsightsResponse.Unmarshal(m, b) |
| } |
| func (m *ListInsightsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ListInsightsResponse.Marshal(b, m, deterministic) |
| } |
| func (m *ListInsightsResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListInsightsResponse.Merge(m, src) |
| } |
| func (m *ListInsightsResponse) XXX_Size() int { |
| return xxx_messageInfo_ListInsightsResponse.Size(m) |
| } |
| func (m *ListInsightsResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListInsightsResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListInsightsResponse proto.InternalMessageInfo |
| |
| func (m *ListInsightsResponse) GetInsights() []*Insight { |
| if m != nil { |
| return m.Insights |
| } |
| return nil |
| } |
| |
| func (m *ListInsightsResponse) GetNextPageToken() string { |
| if m != nil { |
| return m.NextPageToken |
| } |
| return "" |
| } |
| |
| // Request to the `GetInsight` method. |
| type GetInsightRequest struct { |
| // Required. Name of the insight. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *GetInsightRequest) Reset() { *m = GetInsightRequest{} } |
| func (m *GetInsightRequest) String() string { return proto.CompactTextString(m) } |
| func (*GetInsightRequest) ProtoMessage() {} |
| func (*GetInsightRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_0ca265e4ecfbc6d8, []int{2} |
| } |
| |
| func (m *GetInsightRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_GetInsightRequest.Unmarshal(m, b) |
| } |
| func (m *GetInsightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_GetInsightRequest.Marshal(b, m, deterministic) |
| } |
| func (m *GetInsightRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetInsightRequest.Merge(m, src) |
| } |
| func (m *GetInsightRequest) XXX_Size() int { |
| return xxx_messageInfo_GetInsightRequest.Size(m) |
| } |
| func (m *GetInsightRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_GetInsightRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_GetInsightRequest proto.InternalMessageInfo |
| |
| func (m *GetInsightRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| // Request for the `MarkInsightAccepted` method. |
| type MarkInsightAcceptedRequest struct { |
| // Required. Name of the insight. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Optional. State properties user wish to include with this state. Full replace of the |
| // current state_metadata. |
| StateMetadata map[string]string `protobuf:"bytes,2,rep,name=state_metadata,json=stateMetadata,proto3" json:"state_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| // Required. Fingerprint of the Insight. Provides optimistic locking. |
| Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *MarkInsightAcceptedRequest) Reset() { *m = MarkInsightAcceptedRequest{} } |
| func (m *MarkInsightAcceptedRequest) String() string { return proto.CompactTextString(m) } |
| func (*MarkInsightAcceptedRequest) ProtoMessage() {} |
| func (*MarkInsightAcceptedRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_0ca265e4ecfbc6d8, []int{3} |
| } |
| |
| func (m *MarkInsightAcceptedRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_MarkInsightAcceptedRequest.Unmarshal(m, b) |
| } |
| func (m *MarkInsightAcceptedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_MarkInsightAcceptedRequest.Marshal(b, m, deterministic) |
| } |
| func (m *MarkInsightAcceptedRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_MarkInsightAcceptedRequest.Merge(m, src) |
| } |
| func (m *MarkInsightAcceptedRequest) XXX_Size() int { |
| return xxx_messageInfo_MarkInsightAcceptedRequest.Size(m) |
| } |
| func (m *MarkInsightAcceptedRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_MarkInsightAcceptedRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_MarkInsightAcceptedRequest proto.InternalMessageInfo |
| |
| func (m *MarkInsightAcceptedRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *MarkInsightAcceptedRequest) GetStateMetadata() map[string]string { |
| if m != nil { |
| return m.StateMetadata |
| } |
| return nil |
| } |
| |
| func (m *MarkInsightAcceptedRequest) GetEtag() string { |
| if m != nil { |
| return m.Etag |
| } |
| return "" |
| } |
| |
| // Request for the `ListRecommendations` method. |
| type ListRecommendationsRequest struct { |
| // Required. The container resource on which to execute the request. |
| // Acceptable formats: |
| // |
| // 1. |
| // "projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]", |
| // |
| // LOCATION here refers to GCP Locations: |
| // https://cloud.google.com/about/locations/ |
| Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| // Optional. The maximum number of results to return from this request. Non-positive |
| // values are ignored. If not specified, the server will determine the number |
| // of results to return. |
| PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| // Optional. If present, retrieves the next batch of results from the preceding call to |
| // this method. `page_token` must be the value of `next_page_token` from the |
| // previous response. The values of other method parameters must be identical |
| // to those in the previous call. |
| PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` |
| // Filter expression to restrict the recommendations returned. Supported |
| // filter fields: state_info.state |
| // Eg: `state_info.state:"DISMISSED" or state_info.state:"FAILED" |
| Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ListRecommendationsRequest) Reset() { *m = ListRecommendationsRequest{} } |
| func (m *ListRecommendationsRequest) String() string { return proto.CompactTextString(m) } |
| func (*ListRecommendationsRequest) ProtoMessage() {} |
| func (*ListRecommendationsRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_0ca265e4ecfbc6d8, []int{4} |
| } |
| |
| func (m *ListRecommendationsRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ListRecommendationsRequest.Unmarshal(m, b) |
| } |
| func (m *ListRecommendationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ListRecommendationsRequest.Marshal(b, m, deterministic) |
| } |
| func (m *ListRecommendationsRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListRecommendationsRequest.Merge(m, src) |
| } |
| func (m *ListRecommendationsRequest) XXX_Size() int { |
| return xxx_messageInfo_ListRecommendationsRequest.Size(m) |
| } |
| func (m *ListRecommendationsRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListRecommendationsRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListRecommendationsRequest proto.InternalMessageInfo |
| |
| func (m *ListRecommendationsRequest) GetParent() string { |
| if m != nil { |
| return m.Parent |
| } |
| return "" |
| } |
| |
| func (m *ListRecommendationsRequest) GetPageSize() int32 { |
| if m != nil { |
| return m.PageSize |
| } |
| return 0 |
| } |
| |
| func (m *ListRecommendationsRequest) GetPageToken() string { |
| if m != nil { |
| return m.PageToken |
| } |
| return "" |
| } |
| |
| func (m *ListRecommendationsRequest) GetFilter() string { |
| if m != nil { |
| return m.Filter |
| } |
| return "" |
| } |
| |
| // Response to the `ListRecommendations` method. |
| type ListRecommendationsResponse struct { |
| // The set of recommendations for the `parent` resource. |
| Recommendations []*Recommendation `protobuf:"bytes,1,rep,name=recommendations,proto3" json:"recommendations,omitempty"` |
| // A token that can be used to request the next page of results. This field is |
| // empty if there are no additional results. |
| NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ListRecommendationsResponse) Reset() { *m = ListRecommendationsResponse{} } |
| func (m *ListRecommendationsResponse) String() string { return proto.CompactTextString(m) } |
| func (*ListRecommendationsResponse) ProtoMessage() {} |
| func (*ListRecommendationsResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_0ca265e4ecfbc6d8, []int{5} |
| } |
| |
| func (m *ListRecommendationsResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ListRecommendationsResponse.Unmarshal(m, b) |
| } |
| func (m *ListRecommendationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ListRecommendationsResponse.Marshal(b, m, deterministic) |
| } |
| func (m *ListRecommendationsResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListRecommendationsResponse.Merge(m, src) |
| } |
| func (m *ListRecommendationsResponse) XXX_Size() int { |
| return xxx_messageInfo_ListRecommendationsResponse.Size(m) |
| } |
| func (m *ListRecommendationsResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListRecommendationsResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListRecommendationsResponse proto.InternalMessageInfo |
| |
| func (m *ListRecommendationsResponse) GetRecommendations() []*Recommendation { |
| if m != nil { |
| return m.Recommendations |
| } |
| return nil |
| } |
| |
| func (m *ListRecommendationsResponse) GetNextPageToken() string { |
| if m != nil { |
| return m.NextPageToken |
| } |
| return "" |
| } |
| |
| // Request to the `GetRecommendation` method. |
| type GetRecommendationRequest struct { |
| // Required. Name of the recommendation. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *GetRecommendationRequest) Reset() { *m = GetRecommendationRequest{} } |
| func (m *GetRecommendationRequest) String() string { return proto.CompactTextString(m) } |
| func (*GetRecommendationRequest) ProtoMessage() {} |
| func (*GetRecommendationRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_0ca265e4ecfbc6d8, []int{6} |
| } |
| |
| func (m *GetRecommendationRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_GetRecommendationRequest.Unmarshal(m, b) |
| } |
| func (m *GetRecommendationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_GetRecommendationRequest.Marshal(b, m, deterministic) |
| } |
| func (m *GetRecommendationRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetRecommendationRequest.Merge(m, src) |
| } |
| func (m *GetRecommendationRequest) XXX_Size() int { |
| return xxx_messageInfo_GetRecommendationRequest.Size(m) |
| } |
| func (m *GetRecommendationRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_GetRecommendationRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_GetRecommendationRequest proto.InternalMessageInfo |
| |
| func (m *GetRecommendationRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| // Request for the `MarkRecommendationClaimed` Method. |
| type MarkRecommendationClaimedRequest struct { |
| // Required. Name of the recommendation. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // State properties to include with this state. Overwrites any existing |
| // `state_metadata`. |
| // Keys must match the regex /^[a-z0-9][a-z0-9_.-]{0,62}$/. |
| // Values must match the regex /^[a-zA-Z0-9_./-]{0,255}$/. |
| StateMetadata map[string]string `protobuf:"bytes,2,rep,name=state_metadata,json=stateMetadata,proto3" json:"state_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| // Required. Fingerprint of the Recommendation. Provides optimistic locking. |
| Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *MarkRecommendationClaimedRequest) Reset() { *m = MarkRecommendationClaimedRequest{} } |
| func (m *MarkRecommendationClaimedRequest) String() string { return proto.CompactTextString(m) } |
| func (*MarkRecommendationClaimedRequest) ProtoMessage() {} |
| func (*MarkRecommendationClaimedRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_0ca265e4ecfbc6d8, []int{7} |
| } |
| |
| func (m *MarkRecommendationClaimedRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_MarkRecommendationClaimedRequest.Unmarshal(m, b) |
| } |
| func (m *MarkRecommendationClaimedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_MarkRecommendationClaimedRequest.Marshal(b, m, deterministic) |
| } |
| func (m *MarkRecommendationClaimedRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_MarkRecommendationClaimedRequest.Merge(m, src) |
| } |
| func (m *MarkRecommendationClaimedRequest) XXX_Size() int { |
| return xxx_messageInfo_MarkRecommendationClaimedRequest.Size(m) |
| } |
| func (m *MarkRecommendationClaimedRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_MarkRecommendationClaimedRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_MarkRecommendationClaimedRequest proto.InternalMessageInfo |
| |
| func (m *MarkRecommendationClaimedRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *MarkRecommendationClaimedRequest) GetStateMetadata() map[string]string { |
| if m != nil { |
| return m.StateMetadata |
| } |
| return nil |
| } |
| |
| func (m *MarkRecommendationClaimedRequest) GetEtag() string { |
| if m != nil { |
| return m.Etag |
| } |
| return "" |
| } |
| |
| // Request for the `MarkRecommendationSucceeded` Method. |
| type MarkRecommendationSucceededRequest struct { |
| // Required. Name of the recommendation. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // State properties to include with this state. Overwrites any existing |
| // `state_metadata`. |
| // Keys must match the regex /^[a-z0-9][a-z0-9_.-]{0,62}$/. |
| // Values must match the regex /^[a-zA-Z0-9_./-]{0,255}$/. |
| StateMetadata map[string]string `protobuf:"bytes,2,rep,name=state_metadata,json=stateMetadata,proto3" json:"state_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| // Required. Fingerprint of the Recommendation. Provides optimistic locking. |
| Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *MarkRecommendationSucceededRequest) Reset() { *m = MarkRecommendationSucceededRequest{} } |
| func (m *MarkRecommendationSucceededRequest) String() string { return proto.CompactTextString(m) } |
| func (*MarkRecommendationSucceededRequest) ProtoMessage() {} |
| func (*MarkRecommendationSucceededRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_0ca265e4ecfbc6d8, []int{8} |
| } |
| |
| func (m *MarkRecommendationSucceededRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_MarkRecommendationSucceededRequest.Unmarshal(m, b) |
| } |
| func (m *MarkRecommendationSucceededRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_MarkRecommendationSucceededRequest.Marshal(b, m, deterministic) |
| } |
| func (m *MarkRecommendationSucceededRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_MarkRecommendationSucceededRequest.Merge(m, src) |
| } |
| func (m *MarkRecommendationSucceededRequest) XXX_Size() int { |
| return xxx_messageInfo_MarkRecommendationSucceededRequest.Size(m) |
| } |
| func (m *MarkRecommendationSucceededRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_MarkRecommendationSucceededRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_MarkRecommendationSucceededRequest proto.InternalMessageInfo |
| |
| func (m *MarkRecommendationSucceededRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *MarkRecommendationSucceededRequest) GetStateMetadata() map[string]string { |
| if m != nil { |
| return m.StateMetadata |
| } |
| return nil |
| } |
| |
| func (m *MarkRecommendationSucceededRequest) GetEtag() string { |
| if m != nil { |
| return m.Etag |
| } |
| return "" |
| } |
| |
| // Request for the `MarkRecommendationFailed` Method. |
| type MarkRecommendationFailedRequest struct { |
| // Required. Name of the recommendation. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // State properties to include with this state. Overwrites any existing |
| // `state_metadata`. |
| // Keys must match the regex /^[a-z0-9][a-z0-9_.-]{0,62}$/. |
| // Values must match the regex /^[a-zA-Z0-9_./-]{0,255}$/. |
| StateMetadata map[string]string `protobuf:"bytes,2,rep,name=state_metadata,json=stateMetadata,proto3" json:"state_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| // Required. Fingerprint of the Recommendation. Provides optimistic locking. |
| Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *MarkRecommendationFailedRequest) Reset() { *m = MarkRecommendationFailedRequest{} } |
| func (m *MarkRecommendationFailedRequest) String() string { return proto.CompactTextString(m) } |
| func (*MarkRecommendationFailedRequest) ProtoMessage() {} |
| func (*MarkRecommendationFailedRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_0ca265e4ecfbc6d8, []int{9} |
| } |
| |
| func (m *MarkRecommendationFailedRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_MarkRecommendationFailedRequest.Unmarshal(m, b) |
| } |
| func (m *MarkRecommendationFailedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_MarkRecommendationFailedRequest.Marshal(b, m, deterministic) |
| } |
| func (m *MarkRecommendationFailedRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_MarkRecommendationFailedRequest.Merge(m, src) |
| } |
| func (m *MarkRecommendationFailedRequest) XXX_Size() int { |
| return xxx_messageInfo_MarkRecommendationFailedRequest.Size(m) |
| } |
| func (m *MarkRecommendationFailedRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_MarkRecommendationFailedRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_MarkRecommendationFailedRequest proto.InternalMessageInfo |
| |
| func (m *MarkRecommendationFailedRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *MarkRecommendationFailedRequest) GetStateMetadata() map[string]string { |
| if m != nil { |
| return m.StateMetadata |
| } |
| return nil |
| } |
| |
| func (m *MarkRecommendationFailedRequest) GetEtag() string { |
| if m != nil { |
| return m.Etag |
| } |
| return "" |
| } |
| |
| func init() { |
| proto.RegisterType((*ListInsightsRequest)(nil), "google.cloud.recommender.v1beta1.ListInsightsRequest") |
| proto.RegisterType((*ListInsightsResponse)(nil), "google.cloud.recommender.v1beta1.ListInsightsResponse") |
| proto.RegisterType((*GetInsightRequest)(nil), "google.cloud.recommender.v1beta1.GetInsightRequest") |
| proto.RegisterType((*MarkInsightAcceptedRequest)(nil), "google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest") |
| proto.RegisterMapType((map[string]string)(nil), "google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest.StateMetadataEntry") |
| proto.RegisterType((*ListRecommendationsRequest)(nil), "google.cloud.recommender.v1beta1.ListRecommendationsRequest") |
| proto.RegisterType((*ListRecommendationsResponse)(nil), "google.cloud.recommender.v1beta1.ListRecommendationsResponse") |
| proto.RegisterType((*GetRecommendationRequest)(nil), "google.cloud.recommender.v1beta1.GetRecommendationRequest") |
| proto.RegisterType((*MarkRecommendationClaimedRequest)(nil), "google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest") |
| proto.RegisterMapType((map[string]string)(nil), "google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest.StateMetadataEntry") |
| proto.RegisterType((*MarkRecommendationSucceededRequest)(nil), "google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest") |
| proto.RegisterMapType((map[string]string)(nil), "google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest.StateMetadataEntry") |
| proto.RegisterType((*MarkRecommendationFailedRequest)(nil), "google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest") |
| proto.RegisterMapType((map[string]string)(nil), "google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest.StateMetadataEntry") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/cloud/recommender/v1beta1/recommender_service.proto", fileDescriptor_0ca265e4ecfbc6d8) |
| } |
| |
| var fileDescriptor_0ca265e4ecfbc6d8 = []byte{ |
| // 1098 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcf, 0x6f, 0xdc, 0x44, |
| 0x14, 0x96, 0x9d, 0x1f, 0x6a, 0x5e, 0x09, 0x29, 0xd3, 0x8a, 0x6e, 0x1d, 0xa4, 0xae, 0xac, 0xaa, |
| 0x4a, 0x97, 0x60, 0x93, 0x56, 0x45, 0x68, 0xa1, 0xa8, 0xde, 0x90, 0x46, 0x15, 0x84, 0x06, 0x6f, |
| 0xda, 0xa2, 0x5c, 0x56, 0x13, 0xef, 0x64, 0x63, 0xe2, 0xf5, 0x18, 0x7b, 0x36, 0x69, 0x1a, 0xca, |
| 0x01, 0x89, 0x03, 0x12, 0x27, 0xf8, 0x0b, 0xe0, 0xc8, 0x0d, 0x89, 0x2b, 0x52, 0xd5, 0x03, 0x07, |
| 0x4e, 0x08, 0x4e, 0xe4, 0xd4, 0x03, 0x07, 0xee, 0xdc, 0x38, 0x21, 0x8f, 0xc7, 0xbb, 0xf6, 0xfe, |
| 0x88, 0x37, 0xbb, 0x56, 0x73, 0xdb, 0x7d, 0x33, 0xef, 0xbd, 0xef, 0x7d, 0xf3, 0xcd, 0xbc, 0x27, |
| 0x43, 0xb9, 0x41, 0x69, 0xc3, 0x21, 0xba, 0xe5, 0xd0, 0x56, 0x5d, 0xf7, 0x89, 0x45, 0x9b, 0x4d, |
| 0xe2, 0xd6, 0x89, 0xaf, 0xef, 0x2d, 0x6d, 0x11, 0x86, 0x97, 0x92, 0xb6, 0x5a, 0x40, 0xfc, 0x3d, |
| 0xdb, 0x22, 0x9a, 0xe7, 0x53, 0x46, 0x51, 0x31, 0xf2, 0xd5, 0xb8, 0xaf, 0x96, 0xd8, 0xa7, 0x09, |
| 0x5f, 0xe5, 0x35, 0x11, 0x1d, 0x7b, 0xb6, 0x8e, 0x5d, 0x97, 0x32, 0xcc, 0x6c, 0xea, 0x06, 0x91, |
| 0xbf, 0x72, 0x31, 0xb1, 0x6a, 0x39, 0x36, 0x71, 0x99, 0x58, 0xb8, 0x9c, 0x58, 0xd8, 0xb6, 0x89, |
| 0x53, 0xaf, 0x6d, 0x91, 0x1d, 0xbc, 0x67, 0x53, 0x5f, 0x6c, 0xb8, 0x94, 0xd8, 0xe0, 0x93, 0x80, |
| 0xb6, 0xfc, 0x18, 0x94, 0xa2, 0x65, 0x16, 0x64, 0xbb, 0x81, 0xdd, 0xd8, 0x89, 0x73, 0xdd, 0x1c, |
| 0x9e, 0x00, 0x0e, 0x3e, 0x72, 0x53, 0x9f, 0x4a, 0x70, 0xfe, 0x43, 0x3b, 0x60, 0x77, 0xa3, 0x60, |
| 0x81, 0x49, 0x3e, 0x6b, 0x91, 0x80, 0xa1, 0x3b, 0x30, 0xed, 0x61, 0x9f, 0xb8, 0xac, 0x20, 0x15, |
| 0xa5, 0x85, 0x99, 0x8a, 0xf6, 0xdc, 0x90, 0xff, 0x33, 0x16, 0xe0, 0x6a, 0x92, 0x9e, 0x28, 0x25, |
| 0xf6, 0xec, 0x40, 0xb3, 0x68, 0x53, 0x17, 0x31, 0x36, 0x0e, 0x3c, 0x62, 0x0a, 0x6f, 0x54, 0x84, |
| 0x19, 0x0f, 0x37, 0x48, 0x2d, 0xb0, 0x1f, 0x93, 0x82, 0x5c, 0x94, 0x16, 0xa6, 0x2a, 0x13, 0xcf, |
| 0x0d, 0xc9, 0x3c, 0x13, 0x5a, 0xab, 0xf6, 0x63, 0x82, 0x54, 0x00, 0xbe, 0x83, 0xd1, 0x5d, 0xe2, |
| 0x16, 0x26, 0x78, 0x36, 0xbe, 0x85, 0x3b, 0x6e, 0x84, 0x56, 0x34, 0x0f, 0xd3, 0xdb, 0xb6, 0xc3, |
| 0x88, 0x5f, 0x98, 0xec, 0xac, 0x0b, 0x93, 0xfa, 0x95, 0x04, 0x17, 0xd2, 0x25, 0x04, 0x1e, 0x75, |
| 0x03, 0x82, 0x56, 0xe0, 0x8c, 0xe0, 0x28, 0x28, 0x48, 0xc5, 0x89, 0x85, 0xb3, 0xd7, 0xaf, 0x69, |
| 0x59, 0x47, 0xad, 0x89, 0x28, 0x66, 0xdb, 0x15, 0x5d, 0x85, 0x39, 0x97, 0x3c, 0x62, 0xb5, 0x04, |
| 0xca, 0xb0, 0x90, 0x19, 0x73, 0x36, 0x34, 0xaf, 0xc7, 0x20, 0xd5, 0x2a, 0xbc, 0xb2, 0x4a, 0x62, |
| 0x14, 0x31, 0x8f, 0xef, 0xc1, 0xa4, 0x8b, 0x9b, 0x44, 0xb0, 0x58, 0xe2, 0x2c, 0x5e, 0x01, 0x35, |
| 0x9b, 0x45, 0x93, 0xfb, 0xa9, 0x3f, 0xcb, 0xa0, 0xac, 0x61, 0x7f, 0x57, 0x58, 0x0d, 0xcb, 0x22, |
| 0x1e, 0x23, 0xf5, 0x9c, 0xc2, 0xa3, 0x43, 0x78, 0x39, 0x60, 0x98, 0x91, 0x5a, 0x93, 0x30, 0x5c, |
| 0xc7, 0x0c, 0x17, 0x64, 0x4e, 0xd4, 0xbd, 0x6c, 0xa2, 0x06, 0xa3, 0xd2, 0xaa, 0x61, 0xc8, 0x35, |
| 0x11, 0x71, 0xc5, 0x65, 0xfe, 0x41, 0x74, 0x62, 0xb3, 0x41, 0x72, 0x01, 0x5d, 0x84, 0x49, 0xc2, |
| 0x70, 0xa3, 0x73, 0xe6, 0xb2, 0xc9, 0x0d, 0xca, 0x6d, 0x40, 0xbd, 0x21, 0xd0, 0x39, 0x98, 0xd8, |
| 0x25, 0x07, 0x51, 0xa9, 0x66, 0xf8, 0x13, 0x5d, 0x80, 0xa9, 0x3d, 0xec, 0xb4, 0x88, 0x38, 0x8f, |
| 0xe8, 0x4f, 0x59, 0x7e, 0x5b, 0x52, 0x9f, 0x49, 0xa0, 0x84, 0x9a, 0x30, 0x53, 0x9a, 0x1f, 0x4b, |
| 0xdd, 0x66, 0x67, 0x29, 0x67, 0x75, 0xbf, 0xda, 0x56, 0xf7, 0x14, 0xaf, 0x23, 0x16, 0xf6, 0xf7, |
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0x95, 0xd0, 0x6b, 0x6b, 0x9a, 0x67, 0xb8, 0xf1, 0x7f, 0x00, 0x00, 0x00, |
| 0xff, 0xff, 0x5b, 0x19, 0x55, 0x86, 0x53, 0x12, 0x00, 0x00, |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConnInterface |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the grpc package it is being compiled against. |
| const _ = grpc.SupportPackageIsVersion6 |
| |
| // RecommenderClient is the client API for Recommender service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type RecommenderClient interface { |
| // Lists insights for a Cloud project. Requires the recommender.*.list IAM |
| // permission for the specified insight type. |
| ListInsights(ctx context.Context, in *ListInsightsRequest, opts ...grpc.CallOption) (*ListInsightsResponse, error) |
| // Gets the requested insight. Requires the recommender.*.get IAM permission |
| // for the specified insight type. |
| GetInsight(ctx context.Context, in *GetInsightRequest, opts ...grpc.CallOption) (*Insight, error) |
| // Marks the Insight State as Accepted. Users can use this method to |
| // indicate to the Recommender API that they have applied some action based |
| // on the insight. This stops the insight content from being updated. |
| // |
| // MarkInsightAccepted can be applied to insights in ACTIVE state. Requires |
| // the recommender.*.update IAM permission for the specified insight. |
| MarkInsightAccepted(ctx context.Context, in *MarkInsightAcceptedRequest, opts ...grpc.CallOption) (*Insight, error) |
| // Lists recommendations for a Cloud project. Requires the recommender.*.list |
| // IAM permission for the specified recommender. |
| ListRecommendations(ctx context.Context, in *ListRecommendationsRequest, opts ...grpc.CallOption) (*ListRecommendationsResponse, error) |
| // Gets the requested recommendation. Requires the recommender.*.get |
| // IAM permission for the specified recommender. |
| GetRecommendation(ctx context.Context, in *GetRecommendationRequest, opts ...grpc.CallOption) (*Recommendation, error) |
| // Marks the Recommendation State as Claimed. Users can use this method to |
| // indicate to the Recommender API that they are starting to apply the |
| // recommendation themselves. This stops the recommendation content from being |
| // updated. Associated insights are frozen and placed in the ACCEPTED state. |
| // |
| // MarkRecommendationClaimed can be applied to recommendations in CLAIMED or |
| // ACTIVE state. |
| // |
| // Requires the recommender.*.update IAM permission for the specified |
| // recommender. |
| MarkRecommendationClaimed(ctx context.Context, in *MarkRecommendationClaimedRequest, opts ...grpc.CallOption) (*Recommendation, error) |
| // Marks the Recommendation State as Succeeded. Users can use this method to |
| // indicate to the Recommender API that they have applied the recommendation |
| // themselves, and the operation was successful. This stops the recommendation |
| // content from being updated. Associated insights are frozen and placed in |
| // the ACCEPTED state. |
| // |
| // MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, |
| // CLAIMED, SUCCEEDED, or FAILED state. |
| // |
| // Requires the recommender.*.update IAM permission for the specified |
| // recommender. |
| MarkRecommendationSucceeded(ctx context.Context, in *MarkRecommendationSucceededRequest, opts ...grpc.CallOption) (*Recommendation, error) |
| // Marks the Recommendation State as Failed. Users can use this method to |
| // indicate to the Recommender API that they have applied the recommendation |
| // themselves, and the operation failed. This stops the recommendation content |
| // from being updated. Associated insights are frozen and placed in the |
| // ACCEPTED state. |
| // |
| // MarkRecommendationFailed can be applied to recommendations in ACTIVE, |
| // CLAIMED, SUCCEEDED, or FAILED state. |
| // |
| // Requires the recommender.*.update IAM permission for the specified |
| // recommender. |
| MarkRecommendationFailed(ctx context.Context, in *MarkRecommendationFailedRequest, opts ...grpc.CallOption) (*Recommendation, error) |
| } |
| |
| type recommenderClient struct { |
| cc grpc.ClientConnInterface |
| } |
| |
| func NewRecommenderClient(cc grpc.ClientConnInterface) RecommenderClient { |
| return &recommenderClient{cc} |
| } |
| |
| func (c *recommenderClient) ListInsights(ctx context.Context, in *ListInsightsRequest, opts ...grpc.CallOption) (*ListInsightsResponse, error) { |
| out := new(ListInsightsResponse) |
| err := c.cc.Invoke(ctx, "/google.cloud.recommender.v1beta1.Recommender/ListInsights", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *recommenderClient) GetInsight(ctx context.Context, in *GetInsightRequest, opts ...grpc.CallOption) (*Insight, error) { |
| out := new(Insight) |
| err := c.cc.Invoke(ctx, "/google.cloud.recommender.v1beta1.Recommender/GetInsight", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *recommenderClient) MarkInsightAccepted(ctx context.Context, in *MarkInsightAcceptedRequest, opts ...grpc.CallOption) (*Insight, error) { |
| out := new(Insight) |
| err := c.cc.Invoke(ctx, "/google.cloud.recommender.v1beta1.Recommender/MarkInsightAccepted", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *recommenderClient) ListRecommendations(ctx context.Context, in *ListRecommendationsRequest, opts ...grpc.CallOption) (*ListRecommendationsResponse, error) { |
| out := new(ListRecommendationsResponse) |
| err := c.cc.Invoke(ctx, "/google.cloud.recommender.v1beta1.Recommender/ListRecommendations", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *recommenderClient) GetRecommendation(ctx context.Context, in *GetRecommendationRequest, opts ...grpc.CallOption) (*Recommendation, error) { |
| out := new(Recommendation) |
| err := c.cc.Invoke(ctx, "/google.cloud.recommender.v1beta1.Recommender/GetRecommendation", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *recommenderClient) MarkRecommendationClaimed(ctx context.Context, in *MarkRecommendationClaimedRequest, opts ...grpc.CallOption) (*Recommendation, error) { |
| out := new(Recommendation) |
| err := c.cc.Invoke(ctx, "/google.cloud.recommender.v1beta1.Recommender/MarkRecommendationClaimed", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *recommenderClient) MarkRecommendationSucceeded(ctx context.Context, in *MarkRecommendationSucceededRequest, opts ...grpc.CallOption) (*Recommendation, error) { |
| out := new(Recommendation) |
| err := c.cc.Invoke(ctx, "/google.cloud.recommender.v1beta1.Recommender/MarkRecommendationSucceeded", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *recommenderClient) MarkRecommendationFailed(ctx context.Context, in *MarkRecommendationFailedRequest, opts ...grpc.CallOption) (*Recommendation, error) { |
| out := new(Recommendation) |
| err := c.cc.Invoke(ctx, "/google.cloud.recommender.v1beta1.Recommender/MarkRecommendationFailed", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // RecommenderServer is the server API for Recommender service. |
| type RecommenderServer interface { |
| // Lists insights for a Cloud project. Requires the recommender.*.list IAM |
| // permission for the specified insight type. |
| ListInsights(context.Context, *ListInsightsRequest) (*ListInsightsResponse, error) |
| // Gets the requested insight. Requires the recommender.*.get IAM permission |
| // for the specified insight type. |
| GetInsight(context.Context, *GetInsightRequest) (*Insight, error) |
| // Marks the Insight State as Accepted. Users can use this method to |
| // indicate to the Recommender API that they have applied some action based |
| // on the insight. This stops the insight content from being updated. |
| // |
| // MarkInsightAccepted can be applied to insights in ACTIVE state. Requires |
| // the recommender.*.update IAM permission for the specified insight. |
| MarkInsightAccepted(context.Context, *MarkInsightAcceptedRequest) (*Insight, error) |
| // Lists recommendations for a Cloud project. Requires the recommender.*.list |
| // IAM permission for the specified recommender. |
| ListRecommendations(context.Context, *ListRecommendationsRequest) (*ListRecommendationsResponse, error) |
| // Gets the requested recommendation. Requires the recommender.*.get |
| // IAM permission for the specified recommender. |
| GetRecommendation(context.Context, *GetRecommendationRequest) (*Recommendation, error) |
| // Marks the Recommendation State as Claimed. Users can use this method to |
| // indicate to the Recommender API that they are starting to apply the |
| // recommendation themselves. This stops the recommendation content from being |
| // updated. Associated insights are frozen and placed in the ACCEPTED state. |
| // |
| // MarkRecommendationClaimed can be applied to recommendations in CLAIMED or |
| // ACTIVE state. |
| // |
| // Requires the recommender.*.update IAM permission for the specified |
| // recommender. |
| MarkRecommendationClaimed(context.Context, *MarkRecommendationClaimedRequest) (*Recommendation, error) |
| // Marks the Recommendation State as Succeeded. Users can use this method to |
| // indicate to the Recommender API that they have applied the recommendation |
| // themselves, and the operation was successful. This stops the recommendation |
| // content from being updated. Associated insights are frozen and placed in |
| // the ACCEPTED state. |
| // |
| // MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, |
| // CLAIMED, SUCCEEDED, or FAILED state. |
| // |
| // Requires the recommender.*.update IAM permission for the specified |
| // recommender. |
| MarkRecommendationSucceeded(context.Context, *MarkRecommendationSucceededRequest) (*Recommendation, error) |
| // Marks the Recommendation State as Failed. Users can use this method to |
| // indicate to the Recommender API that they have applied the recommendation |
| // themselves, and the operation failed. This stops the recommendation content |
| // from being updated. Associated insights are frozen and placed in the |
| // ACCEPTED state. |
| // |
| // MarkRecommendationFailed can be applied to recommendations in ACTIVE, |
| // CLAIMED, SUCCEEDED, or FAILED state. |
| // |
| // Requires the recommender.*.update IAM permission for the specified |
| // recommender. |
| MarkRecommendationFailed(context.Context, *MarkRecommendationFailedRequest) (*Recommendation, error) |
| } |
| |
| // UnimplementedRecommenderServer can be embedded to have forward compatible implementations. |
| type UnimplementedRecommenderServer struct { |
| } |
| |
| func (*UnimplementedRecommenderServer) ListInsights(ctx context.Context, req *ListInsightsRequest) (*ListInsightsResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ListInsights not implemented") |
| } |
| func (*UnimplementedRecommenderServer) GetInsight(ctx context.Context, req *GetInsightRequest) (*Insight, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetInsight not implemented") |
| } |
| func (*UnimplementedRecommenderServer) MarkInsightAccepted(ctx context.Context, req *MarkInsightAcceptedRequest) (*Insight, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method MarkInsightAccepted not implemented") |
| } |
| func (*UnimplementedRecommenderServer) ListRecommendations(ctx context.Context, req *ListRecommendationsRequest) (*ListRecommendationsResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ListRecommendations not implemented") |
| } |
| func (*UnimplementedRecommenderServer) GetRecommendation(ctx context.Context, req *GetRecommendationRequest) (*Recommendation, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetRecommendation not implemented") |
| } |
| func (*UnimplementedRecommenderServer) MarkRecommendationClaimed(ctx context.Context, req *MarkRecommendationClaimedRequest) (*Recommendation, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method MarkRecommendationClaimed not implemented") |
| } |
| func (*UnimplementedRecommenderServer) MarkRecommendationSucceeded(ctx context.Context, req *MarkRecommendationSucceededRequest) (*Recommendation, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method MarkRecommendationSucceeded not implemented") |
| } |
| func (*UnimplementedRecommenderServer) MarkRecommendationFailed(ctx context.Context, req *MarkRecommendationFailedRequest) (*Recommendation, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method MarkRecommendationFailed not implemented") |
| } |
| |
| func RegisterRecommenderServer(s *grpc.Server, srv RecommenderServer) { |
| s.RegisterService(&_Recommender_serviceDesc, srv) |
| } |
| |
| func _Recommender_ListInsights_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(ListInsightsRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(RecommenderServer).ListInsights(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.recommender.v1beta1.Recommender/ListInsights", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(RecommenderServer).ListInsights(ctx, req.(*ListInsightsRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Recommender_GetInsight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetInsightRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(RecommenderServer).GetInsight(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.recommender.v1beta1.Recommender/GetInsight", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(RecommenderServer).GetInsight(ctx, req.(*GetInsightRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Recommender_MarkInsightAccepted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(MarkInsightAcceptedRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(RecommenderServer).MarkInsightAccepted(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.recommender.v1beta1.Recommender/MarkInsightAccepted", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(RecommenderServer).MarkInsightAccepted(ctx, req.(*MarkInsightAcceptedRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Recommender_ListRecommendations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(ListRecommendationsRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(RecommenderServer).ListRecommendations(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.recommender.v1beta1.Recommender/ListRecommendations", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(RecommenderServer).ListRecommendations(ctx, req.(*ListRecommendationsRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Recommender_GetRecommendation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetRecommendationRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(RecommenderServer).GetRecommendation(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.recommender.v1beta1.Recommender/GetRecommendation", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(RecommenderServer).GetRecommendation(ctx, req.(*GetRecommendationRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Recommender_MarkRecommendationClaimed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(MarkRecommendationClaimedRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(RecommenderServer).MarkRecommendationClaimed(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.recommender.v1beta1.Recommender/MarkRecommendationClaimed", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(RecommenderServer).MarkRecommendationClaimed(ctx, req.(*MarkRecommendationClaimedRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Recommender_MarkRecommendationSucceeded_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(MarkRecommendationSucceededRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(RecommenderServer).MarkRecommendationSucceeded(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.recommender.v1beta1.Recommender/MarkRecommendationSucceeded", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(RecommenderServer).MarkRecommendationSucceeded(ctx, req.(*MarkRecommendationSucceededRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Recommender_MarkRecommendationFailed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(MarkRecommendationFailedRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(RecommenderServer).MarkRecommendationFailed(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.recommender.v1beta1.Recommender/MarkRecommendationFailed", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(RecommenderServer).MarkRecommendationFailed(ctx, req.(*MarkRecommendationFailedRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _Recommender_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "google.cloud.recommender.v1beta1.Recommender", |
| HandlerType: (*RecommenderServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "ListInsights", |
| Handler: _Recommender_ListInsights_Handler, |
| }, |
| { |
| MethodName: "GetInsight", |
| Handler: _Recommender_GetInsight_Handler, |
| }, |
| { |
| MethodName: "MarkInsightAccepted", |
| Handler: _Recommender_MarkInsightAccepted_Handler, |
| }, |
| { |
| MethodName: "ListRecommendations", |
| Handler: _Recommender_ListRecommendations_Handler, |
| }, |
| { |
| MethodName: "GetRecommendation", |
| Handler: _Recommender_GetRecommendation_Handler, |
| }, |
| { |
| MethodName: "MarkRecommendationClaimed", |
| Handler: _Recommender_MarkRecommendationClaimed_Handler, |
| }, |
| { |
| MethodName: "MarkRecommendationSucceeded", |
| Handler: _Recommender_MarkRecommendationSucceeded_Handler, |
| }, |
| { |
| MethodName: "MarkRecommendationFailed", |
| Handler: _Recommender_MarkRecommendationFailed_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "google/cloud/recommender/v1beta1/recommender_service.proto", |
| } |