| // Copyright 2022 Google LLC |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.33.0 |
| // protoc v4.25.3 |
| // source: google/cloud/discoveryengine/v1alpha/project_service.proto |
| |
| package discoveryenginepb |
| |
| import ( |
| context "context" |
| reflect "reflect" |
| sync "sync" |
| |
| longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| grpc "google.golang.org/grpc" |
| codes "google.golang.org/grpc/codes" |
| status "google.golang.org/grpc/status" |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| ) |
| |
| const ( |
| // Verify that this generated code is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| // Verify that runtime/protoimpl is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| ) |
| |
| // Type of consent acknowledgement (accept / reject). |
| // |
| // At this moment, only `ACCEPT` action is supported. |
| type ReportConsentChangeRequest_ConsentChangeAction int32 |
| |
| const ( |
| // Invalid action, user must specify accept/decline |
| ReportConsentChangeRequest_CONSENT_CHANGE_ACTION_UNSPECIFIED ReportConsentChangeRequest_ConsentChangeAction = 0 |
| // User accepts service terms. |
| ReportConsentChangeRequest_ACCEPT ReportConsentChangeRequest_ConsentChangeAction = 1 |
| ) |
| |
| // Enum value maps for ReportConsentChangeRequest_ConsentChangeAction. |
| var ( |
| ReportConsentChangeRequest_ConsentChangeAction_name = map[int32]string{ |
| 0: "CONSENT_CHANGE_ACTION_UNSPECIFIED", |
| 1: "ACCEPT", |
| } |
| ReportConsentChangeRequest_ConsentChangeAction_value = map[string]int32{ |
| "CONSENT_CHANGE_ACTION_UNSPECIFIED": 0, |
| "ACCEPT": 1, |
| } |
| ) |
| |
| func (x ReportConsentChangeRequest_ConsentChangeAction) Enum() *ReportConsentChangeRequest_ConsentChangeAction { |
| p := new(ReportConsentChangeRequest_ConsentChangeAction) |
| *p = x |
| return p |
| } |
| |
| func (x ReportConsentChangeRequest_ConsentChangeAction) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (ReportConsentChangeRequest_ConsentChangeAction) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_discoveryengine_v1alpha_project_service_proto_enumTypes[0].Descriptor() |
| } |
| |
| func (ReportConsentChangeRequest_ConsentChangeAction) Type() protoreflect.EnumType { |
| return &file_google_cloud_discoveryengine_v1alpha_project_service_proto_enumTypes[0] |
| } |
| |
| func (x ReportConsentChangeRequest_ConsentChangeAction) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use ReportConsentChangeRequest_ConsentChangeAction.Descriptor instead. |
| func (ReportConsentChangeRequest_ConsentChangeAction) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDescGZIP(), []int{3, 0} |
| } |
| |
| // Request message for |
| // [ProjectService.GetProject][google.cloud.discoveryengine.v1alpha.ProjectService.GetProject] |
| // method. |
| type GetProjectRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Required. Full resource name of a |
| // [Project][google.cloud.discoveryengine.v1alpha.Project], such as |
| // `projects/{project_id_or_number}`. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| } |
| |
| func (x *GetProjectRequest) Reset() { |
| *x = GetProjectRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_discoveryengine_v1alpha_project_service_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *GetProjectRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*GetProjectRequest) ProtoMessage() {} |
| |
| func (x *GetProjectRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1alpha_project_service_proto_msgTypes[0] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use GetProjectRequest.ProtoReflect.Descriptor instead. |
| func (*GetProjectRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *GetProjectRequest) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| // Request for |
| // [ProjectService.ProvisionProject][google.cloud.discoveryengine.v1alpha.ProjectService.ProvisionProject] |
| // method. |
| type ProvisionProjectRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Required. Full resource name of a |
| // [Project][google.cloud.discoveryengine.v1alpha.Project], such as |
| // `projects/{project_id_or_number}`. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Required. Set to `true` to specify that caller has read and would like to |
| // give consent to the [Terms for data |
| // use](https://cloud.google.com/retail/data-use-terms). |
| AcceptDataUseTerms bool `protobuf:"varint,2,opt,name=accept_data_use_terms,json=acceptDataUseTerms,proto3" json:"accept_data_use_terms,omitempty"` |
| // Required. The version of the [Terms for data |
| // use](https://cloud.google.com/retail/data-use-terms) that caller has read |
| // and would like to give consent to. |
| // |
| // Acceptable version is `2022-11-23`, and this may change over time. |
| DataUseTermsVersion string `protobuf:"bytes,3,opt,name=data_use_terms_version,json=dataUseTermsVersion,proto3" json:"data_use_terms_version,omitempty"` |
| } |
| |
| func (x *ProvisionProjectRequest) Reset() { |
| *x = ProvisionProjectRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_discoveryengine_v1alpha_project_service_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ProvisionProjectRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ProvisionProjectRequest) ProtoMessage() {} |
| |
| func (x *ProvisionProjectRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1alpha_project_service_proto_msgTypes[1] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ProvisionProjectRequest.ProtoReflect.Descriptor instead. |
| func (*ProvisionProjectRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *ProvisionProjectRequest) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| func (x *ProvisionProjectRequest) GetAcceptDataUseTerms() bool { |
| if x != nil { |
| return x.AcceptDataUseTerms |
| } |
| return false |
| } |
| |
| func (x *ProvisionProjectRequest) GetDataUseTermsVersion() string { |
| if x != nil { |
| return x.DataUseTermsVersion |
| } |
| return "" |
| } |
| |
| // Metadata associated with a project provision operation. |
| type ProvisionProjectMetadata struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| } |
| |
| func (x *ProvisionProjectMetadata) Reset() { |
| *x = ProvisionProjectMetadata{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_discoveryengine_v1alpha_project_service_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ProvisionProjectMetadata) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ProvisionProjectMetadata) ProtoMessage() {} |
| |
| func (x *ProvisionProjectMetadata) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1alpha_project_service_proto_msgTypes[2] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ProvisionProjectMetadata.ProtoReflect.Descriptor instead. |
| func (*ProvisionProjectMetadata) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDescGZIP(), []int{2} |
| } |
| |
| // Request for ReportConsentChange method. |
| type ReportConsentChangeRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Required. Whether customer decides to accept or decline service term. |
| // |
| // At this moment, only accept action is supported. |
| ConsentChangeAction ReportConsentChangeRequest_ConsentChangeAction `protobuf:"varint,1,opt,name=consent_change_action,json=consentChangeAction,proto3,enum=google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest_ConsentChangeAction" json:"consent_change_action,omitempty"` |
| // Required. Full resource name of a |
| // [Project][google.cloud.discoveryengine.v1alpha.Project], such as |
| // `projects/{project_id_or_number}`. |
| Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` |
| // Required. The unique identifier of the terms of service to update. |
| // Available term ids: |
| // * `GA_DATA_USE_TERMS`: [Terms for data |
| // use](https://cloud.google.com/retail/data-use-terms). When using this |
| // service term id, the acceptable |
| // [service_term_version][google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest.service_term_version] |
| // to provide is `2022-11-23`. |
| ServiceTermId string `protobuf:"bytes,3,opt,name=service_term_id,json=serviceTermId,proto3" json:"service_term_id,omitempty"` |
| // Required. The version string of the terms of service to update. |
| ServiceTermVersion string `protobuf:"bytes,4,opt,name=service_term_version,json=serviceTermVersion,proto3" json:"service_term_version,omitempty"` |
| } |
| |
| func (x *ReportConsentChangeRequest) Reset() { |
| *x = ReportConsentChangeRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_discoveryengine_v1alpha_project_service_proto_msgTypes[3] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ReportConsentChangeRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ReportConsentChangeRequest) ProtoMessage() {} |
| |
| func (x *ReportConsentChangeRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1alpha_project_service_proto_msgTypes[3] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ReportConsentChangeRequest.ProtoReflect.Descriptor instead. |
| func (*ReportConsentChangeRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDescGZIP(), []int{3} |
| } |
| |
| func (x *ReportConsentChangeRequest) GetConsentChangeAction() ReportConsentChangeRequest_ConsentChangeAction { |
| if x != nil { |
| return x.ConsentChangeAction |
| } |
| return ReportConsentChangeRequest_CONSENT_CHANGE_ACTION_UNSPECIFIED |
| } |
| |
| func (x *ReportConsentChangeRequest) GetProject() string { |
| if x != nil { |
| return x.Project |
| } |
| return "" |
| } |
| |
| func (x *ReportConsentChangeRequest) GetServiceTermId() string { |
| if x != nil { |
| return x.ServiceTermId |
| } |
| return "" |
| } |
| |
| func (x *ReportConsentChangeRequest) GetServiceTermVersion() string { |
| if x != nil { |
| return x.ServiceTermVersion |
| } |
| return "" |
| } |
| |
| var File_google_cloud_discoveryengine_v1alpha_project_service_proto protoreflect.FileDescriptor |
| |
| var file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDesc = []byte{ |
| 0x0a, 0x3a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, |
| 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x76, |
| 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, |
| 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x24, 0x67, 0x6f, |
| 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, |
| 0x76, 0x65, 0x72, 0x79, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, |
| 0x68, 0x61, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, |
| 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, |
| 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, |
| 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, |
| 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, |
| 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, |
| 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x65, 0x6e, 0x67, |
| 0x69, 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x6a, |
| 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, |
| 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x57, |
| 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, |
| 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x64, 0x69, 0x73, 0x63, 0x6f, |
| 0x76, 0x65, 0x72, 0x79, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, |
| 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xcf, 0x01, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x76, |
| 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, |
| 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x64, 0x69, 0x73, 0x63, 0x6f, |
| 0x76, 0x65, 0x72, 0x79, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, |
| 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, |
| 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x75, 0x73, 0x65, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x73, |
| 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x12, 0x61, 0x63, 0x63, |
| 0x65, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x55, 0x73, 0x65, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x12, |
| 0x38, 0x0a, 0x16, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x75, 0x73, 0x65, 0x5f, 0x74, 0x65, 0x72, 0x6d, |
| 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, |
| 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x55, 0x73, 0x65, 0x54, 0x65, 0x72, |
| 0x6d, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x1a, 0x0a, 0x18, 0x50, 0x72, 0x6f, |
| 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, |
| 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xa4, 0x03, 0x0a, 0x1a, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, |
| 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, |
| 0x75, 0x65, 0x73, 0x74, 0x12, 0x8d, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, |
| 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, |
| 0x20, 0x01, 0x28, 0x0e, 0x32, 0x54, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x65, 0x6e, 0x67, |
| 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x70, 0x6f, |
| 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, |
| 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x43, 0x68, |
| 0x61, 0x6e, 0x67, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, |
| 0x13, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x41, 0x63, |
| 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, |
| 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x64, |
| 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x67, |
| 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, |
| 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x2b, |
| 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x5f, 0x69, |
| 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x73, 0x65, |
| 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x65, 0x72, 0x6d, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x14, 0x73, |
| 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, |
| 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x12, |
| 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x65, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, |
| 0x6f, 0x6e, 0x22, 0x48, 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, |
| 0x6e, 0x67, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x21, 0x43, 0x4f, 0x4e, |
| 0x53, 0x45, 0x4e, 0x54, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, |
| 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, |
| 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x10, 0x01, 0x32, 0xaf, 0x06, 0x0a, |
| 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, |
| 0x9f, 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x37, |
| 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, |
| 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, |
| 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, |
| 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, |
| 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x50, |
| 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x29, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, |
| 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, |
| 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, |
| 0x7d, 0x12, 0x99, 0x02, 0x0a, 0x10, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, |
| 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x65, |
| 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x50, 0x72, |
| 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, |
| 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, |
| 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, |
| 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa6, 0x01, 0xca, 0x41, 0x6d, 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, |
| 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, |
| 0x72, 0x79, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, |
| 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x3d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, |
| 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x50, |
| 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, |
| 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, |
| 0xe4, 0x93, 0x02, 0x29, 0x3a, 0x01, 0x2a, 0x22, 0x24, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, |
| 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, |
| 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x8a, 0x02, |
| 0x0a, 0x13, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x43, |
| 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x65, 0x6e, |
| 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x70, |
| 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, |
| 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, |
| 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x50, |
| 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x81, 0x01, 0xda, 0x41, 0x42, 0x63, 0x6f, 0x6e, 0x73, |
| 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, |
| 0x6e, 0x2c, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, |
| 0x65, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x2c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, |
| 0x65, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x82, 0xd3, |
| 0xe4, 0x93, 0x02, 0x36, 0x3a, 0x01, 0x2a, 0x22, 0x31, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, |
| 0x61, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, |
| 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, |
| 0x73, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0x52, 0xca, 0x41, 0x1e, 0x64, |
| 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x67, |
| 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, |
| 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, |
| 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x9f, |
| 0x02, 0x0a, 0x28, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x65, 0x6e, 0x67, |
| 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x13, 0x50, 0x72, 0x6f, |
| 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, |
| 0x50, 0x01, 0x5a, 0x52, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, |
| 0x79, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x61, 0x6c, 0x70, |
| 0x68, 0x61, 0x2f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x65, 0x6e, 0x67, 0x69, |
| 0x6e, 0x65, 0x70, 0x62, 0x3b, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x65, 0x6e, |
| 0x67, 0x69, 0x6e, 0x65, 0x70, 0x62, 0xa2, 0x02, 0x0f, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, |
| 0x52, 0x59, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0xaa, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, |
| 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, |
| 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x56, 0x31, 0x41, 0x6c, 0x70, 0x68, 0x61, 0xca, |
| 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x44, |
| 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5c, 0x56, |
| 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xea, 0x02, 0x27, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, |
| 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, |
| 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, |
| 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| } |
| |
| var ( |
| file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDescOnce sync.Once |
| file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDescData = file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDesc |
| ) |
| |
| func file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDescGZIP() []byte { |
| file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDescOnce.Do(func() { |
| file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDescData) |
| }) |
| return file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDescData |
| } |
| |
| var file_google_cloud_discoveryengine_v1alpha_project_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| var file_google_cloud_discoveryengine_v1alpha_project_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4) |
| var file_google_cloud_discoveryengine_v1alpha_project_service_proto_goTypes = []interface{}{ |
| (ReportConsentChangeRequest_ConsentChangeAction)(0), // 0: google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest.ConsentChangeAction |
| (*GetProjectRequest)(nil), // 1: google.cloud.discoveryengine.v1alpha.GetProjectRequest |
| (*ProvisionProjectRequest)(nil), // 2: google.cloud.discoveryengine.v1alpha.ProvisionProjectRequest |
| (*ProvisionProjectMetadata)(nil), // 3: google.cloud.discoveryengine.v1alpha.ProvisionProjectMetadata |
| (*ReportConsentChangeRequest)(nil), // 4: google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest |
| (*Project)(nil), // 5: google.cloud.discoveryengine.v1alpha.Project |
| (*longrunningpb.Operation)(nil), // 6: google.longrunning.Operation |
| } |
| var file_google_cloud_discoveryengine_v1alpha_project_service_proto_depIdxs = []int32{ |
| 0, // 0: google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest.consent_change_action:type_name -> google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest.ConsentChangeAction |
| 1, // 1: google.cloud.discoveryengine.v1alpha.ProjectService.GetProject:input_type -> google.cloud.discoveryengine.v1alpha.GetProjectRequest |
| 2, // 2: google.cloud.discoveryengine.v1alpha.ProjectService.ProvisionProject:input_type -> google.cloud.discoveryengine.v1alpha.ProvisionProjectRequest |
| 4, // 3: google.cloud.discoveryengine.v1alpha.ProjectService.ReportConsentChange:input_type -> google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest |
| 5, // 4: google.cloud.discoveryengine.v1alpha.ProjectService.GetProject:output_type -> google.cloud.discoveryengine.v1alpha.Project |
| 6, // 5: google.cloud.discoveryengine.v1alpha.ProjectService.ProvisionProject:output_type -> google.longrunning.Operation |
| 5, // 6: google.cloud.discoveryengine.v1alpha.ProjectService.ReportConsentChange:output_type -> google.cloud.discoveryengine.v1alpha.Project |
| 4, // [4:7] is the sub-list for method output_type |
| 1, // [1:4] is the sub-list for method input_type |
| 1, // [1:1] is the sub-list for extension type_name |
| 1, // [1:1] is the sub-list for extension extendee |
| 0, // [0:1] is the sub-list for field type_name |
| } |
| |
| func init() { file_google_cloud_discoveryengine_v1alpha_project_service_proto_init() } |
| func file_google_cloud_discoveryengine_v1alpha_project_service_proto_init() { |
| if File_google_cloud_discoveryengine_v1alpha_project_service_proto != nil { |
| return |
| } |
| file_google_cloud_discoveryengine_v1alpha_project_proto_init() |
| if !protoimpl.UnsafeEnabled { |
| file_google_cloud_discoveryengine_v1alpha_project_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*GetProjectRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_discoveryengine_v1alpha_project_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ProvisionProjectRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_discoveryengine_v1alpha_project_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ProvisionProjectMetadata); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_discoveryengine_v1alpha_project_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ReportConsentChangeRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDesc, |
| NumEnums: 1, |
| NumMessages: 4, |
| NumExtensions: 0, |
| NumServices: 1, |
| }, |
| GoTypes: file_google_cloud_discoveryengine_v1alpha_project_service_proto_goTypes, |
| DependencyIndexes: file_google_cloud_discoveryengine_v1alpha_project_service_proto_depIdxs, |
| EnumInfos: file_google_cloud_discoveryengine_v1alpha_project_service_proto_enumTypes, |
| MessageInfos: file_google_cloud_discoveryengine_v1alpha_project_service_proto_msgTypes, |
| }.Build() |
| File_google_cloud_discoveryengine_v1alpha_project_service_proto = out.File |
| file_google_cloud_discoveryengine_v1alpha_project_service_proto_rawDesc = nil |
| file_google_cloud_discoveryengine_v1alpha_project_service_proto_goTypes = nil |
| file_google_cloud_discoveryengine_v1alpha_project_service_proto_depIdxs = nil |
| } |
| |
| // 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 |
| |
| // ProjectServiceClient is the client API for ProjectService service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type ProjectServiceClient interface { |
| // Gets a [Project][google.cloud.discoveryengine.v1alpha.Project]. |
| // Returns NOT_FOUND when the project is not yet created. |
| GetProject(ctx context.Context, in *GetProjectRequest, opts ...grpc.CallOption) (*Project, error) |
| // Provisions the project resource. During the |
| // process, related systems will get prepared and initialized. |
| // |
| // Caller must read the [Terms for data |
| // use](https://cloud.google.com/retail/data-use-terms), and optionally |
| // specify in request to provide consent to that service terms. |
| ProvisionProject(ctx context.Context, in *ProvisionProjectRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| // Updates service terms for this project. |
| // |
| // This method can be used to retroactively accept the latest terms. |
| // |
| // Terms available for update: |
| // * [Terms for data use](https://cloud.google.com/retail/data-use-terms) |
| ReportConsentChange(ctx context.Context, in *ReportConsentChangeRequest, opts ...grpc.CallOption) (*Project, error) |
| } |
| |
| type projectServiceClient struct { |
| cc grpc.ClientConnInterface |
| } |
| |
| func NewProjectServiceClient(cc grpc.ClientConnInterface) ProjectServiceClient { |
| return &projectServiceClient{cc} |
| } |
| |
| func (c *projectServiceClient) GetProject(ctx context.Context, in *GetProjectRequest, opts ...grpc.CallOption) (*Project, error) { |
| out := new(Project) |
| err := c.cc.Invoke(ctx, "/google.cloud.discoveryengine.v1alpha.ProjectService/GetProject", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *projectServiceClient) ProvisionProject(ctx context.Context, in *ProvisionProjectRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| out := new(longrunningpb.Operation) |
| err := c.cc.Invoke(ctx, "/google.cloud.discoveryengine.v1alpha.ProjectService/ProvisionProject", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *projectServiceClient) ReportConsentChange(ctx context.Context, in *ReportConsentChangeRequest, opts ...grpc.CallOption) (*Project, error) { |
| out := new(Project) |
| err := c.cc.Invoke(ctx, "/google.cloud.discoveryengine.v1alpha.ProjectService/ReportConsentChange", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // ProjectServiceServer is the server API for ProjectService service. |
| type ProjectServiceServer interface { |
| // Gets a [Project][google.cloud.discoveryengine.v1alpha.Project]. |
| // Returns NOT_FOUND when the project is not yet created. |
| GetProject(context.Context, *GetProjectRequest) (*Project, error) |
| // Provisions the project resource. During the |
| // process, related systems will get prepared and initialized. |
| // |
| // Caller must read the [Terms for data |
| // use](https://cloud.google.com/retail/data-use-terms), and optionally |
| // specify in request to provide consent to that service terms. |
| ProvisionProject(context.Context, *ProvisionProjectRequest) (*longrunningpb.Operation, error) |
| // Updates service terms for this project. |
| // |
| // This method can be used to retroactively accept the latest terms. |
| // |
| // Terms available for update: |
| // * [Terms for data use](https://cloud.google.com/retail/data-use-terms) |
| ReportConsentChange(context.Context, *ReportConsentChangeRequest) (*Project, error) |
| } |
| |
| // UnimplementedProjectServiceServer can be embedded to have forward compatible implementations. |
| type UnimplementedProjectServiceServer struct { |
| } |
| |
| func (*UnimplementedProjectServiceServer) GetProject(context.Context, *GetProjectRequest) (*Project, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetProject not implemented") |
| } |
| func (*UnimplementedProjectServiceServer) ProvisionProject(context.Context, *ProvisionProjectRequest) (*longrunningpb.Operation, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ProvisionProject not implemented") |
| } |
| func (*UnimplementedProjectServiceServer) ReportConsentChange(context.Context, *ReportConsentChangeRequest) (*Project, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ReportConsentChange not implemented") |
| } |
| |
| func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer) { |
| s.RegisterService(&_ProjectService_serviceDesc, srv) |
| } |
| |
| func _ProjectService_GetProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetProjectRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(ProjectServiceServer).GetProject(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.discoveryengine.v1alpha.ProjectService/GetProject", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(ProjectServiceServer).GetProject(ctx, req.(*GetProjectRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _ProjectService_ProvisionProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(ProvisionProjectRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(ProjectServiceServer).ProvisionProject(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.discoveryengine.v1alpha.ProjectService/ProvisionProject", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(ProjectServiceServer).ProvisionProject(ctx, req.(*ProvisionProjectRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _ProjectService_ReportConsentChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(ReportConsentChangeRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(ProjectServiceServer).ReportConsentChange(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.discoveryengine.v1alpha.ProjectService/ReportConsentChange", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(ProjectServiceServer).ReportConsentChange(ctx, req.(*ReportConsentChangeRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _ProjectService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "google.cloud.discoveryengine.v1alpha.ProjectService", |
| HandlerType: (*ProjectServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "GetProject", |
| Handler: _ProjectService_GetProject_Handler, |
| }, |
| { |
| MethodName: "ProvisionProject", |
| Handler: _ProjectService_ProvisionProject_Handler, |
| }, |
| { |
| MethodName: "ReportConsentChange", |
| Handler: _ProjectService_ReportConsentChange_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "google/cloud/discoveryengine/v1alpha/project_service.proto", |
| } |