| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/cloud/talent/v4beta1/tenant.proto |
| 20 |
|
| 21 |
package talentpb |
| 22 |
|
| 23 |
import ( |
| 24 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 25 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 26 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 27 |
reflect "reflect" |
| 28 |
sync "sync" |
| 29 |
) |
| 30 |
|
| 31 |
const ( |
| 32 |
// Verify that this generated code is sufficiently up-to-date. |
| 33 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 34 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 36 |
) |
| 37 |
|
| 38 |
// Enum that represents how user data owned by the tenant is used. |
| 39 |
type Tenant_DataUsageType int32 |
| 40 |
|
| 41 |
const ( |
| 42 |
// Default value. |
| 43 |
Tenant_DATA_USAGE_TYPE_UNSPECIFIED Tenant_DataUsageType = 0 |
| 44 |
// Data owned by this tenant is used to improve search/recommendation |
| 45 |
// quality across tenants. |
| 46 |
Tenant_AGGREGATED Tenant_DataUsageType = 1 |
| 47 |
// Data owned by this tenant is used to improve search/recommendation |
| 48 |
// quality for this tenant only. |
| 49 |
Tenant_ISOLATED Tenant_DataUsageType = 2 |
| 50 |
) |
| 51 |
|
| 52 |
// Enum value maps for Tenant_DataUsageType. |
| 53 |
var ( |
| 54 |
Tenant_DataUsageType_name = map[int32]string{ |
| 55 |
0: "DATA_USAGE_TYPE_UNSPECIFIED", |
| 56 |
1: "AGGREGATED", |
| 57 |
2: "ISOLATED", |
| 58 |
} |
| 59 |
Tenant_DataUsageType_value = map[string]int32{ |
| 60 |
"DATA_USAGE_TYPE_UNSPECIFIED": 0, |
| 61 |
"AGGREGATED": 1, |
| 62 |
"ISOLATED": 2, |
| 63 |
} |
| 64 |
) |
| 65 |
|
| 66 |
func (x Tenant_DataUsageType) Enum() *Tenant_DataUsageType { |
| 67 |
p := new(Tenant_DataUsageType) |
| 68 |
*p = x |
| 69 |
return p |
| 70 |
} |
| 71 |
|
| 72 |
func (x Tenant_DataUsageType) String() string { |
| 73 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 74 |
} |
| 75 |
|
| 76 |
func (Tenant_DataUsageType) Descriptor() protoreflect.EnumDescriptor { |
| 77 |
return file_google_cloud_talent_v4beta1_tenant_proto_enumTypes[0].Descriptor() |
| 78 |
} |
| 79 |
|
| 80 |
func (Tenant_DataUsageType) Type() protoreflect.EnumType { |
| 81 |
return &file_google_cloud_talent_v4beta1_tenant_proto_enumTypes[0] |
| 82 |
} |
| 83 |
|
| 84 |
func (x Tenant_DataUsageType) Number() protoreflect.EnumNumber { |
| 85 |
return protoreflect.EnumNumber(x) |
| 86 |
} |
| 87 |
|
| 88 |
// Deprecated: Use Tenant_DataUsageType.Descriptor instead. |
| 89 |
func (Tenant_DataUsageType) EnumDescriptor() ([]byte, []int) { |
| 90 |
return file_google_cloud_talent_v4beta1_tenant_proto_rawDescGZIP(), []int{0, 0} |
| 91 |
} |
| 92 |
|
| 93 |
// A Tenant resource represents a tenant in the service. A tenant is a group or |
| 94 |
// entity that shares common access with specific privileges for resources like |
| 95 |
// profiles. Customer may create multiple tenants to provide data isolation for |
| 96 |
// different groups. |
| 97 |
type Tenant struct { |
| 98 |
state protoimpl.MessageState |
| 99 |
sizeCache protoimpl.SizeCache |
| 100 |
unknownFields protoimpl.UnknownFields |
| 101 |
|
| 102 |
// Required during tenant update. |
| 103 |
// |
| 104 |
// The resource name for a tenant. This is generated by the service when a |
| 105 |
// tenant is created. |
| 106 |
// |
| 107 |
// The format is "projects/{project_id}/tenants/{tenant_id}", for example, |
| 108 |
// "projects/foo/tenants/bar". |
| 109 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 110 |
// Required. Client side tenant identifier, used to uniquely identify the |
| 111 |
// tenant. |
| 112 |
// |
| 113 |
// The maximum number of allowed characters is 255. |
| 114 |
ExternalId string `protobuf:"bytes,2,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` |
| 115 |
// Indicates whether data owned by this tenant may be used to provide product |
| 116 |
// improvements across other tenants. |
| 117 |
// |
| 118 |
// Defaults behavior is |
| 119 |
// [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED] |
| 120 |
// if it's unset. |
| 121 |
UsageType Tenant_DataUsageType `protobuf:"varint,3,opt,name=usage_type,json=usageType,proto3,enum=google.cloud.talent.v4beta1.Tenant_DataUsageType" json:"usage_type,omitempty"` |
| 122 |
// A list of keys of filterable |
| 123 |
// [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes], |
| 124 |
// whose corresponding `string_values` are used in keyword searches. Profiles |
| 125 |
// with `string_values` under these specified field keys are returned if any |
| 126 |
// of the values match the search keyword. Custom field values with |
| 127 |
// parenthesis, brackets and special symbols are not searchable as-is, |
| 128 |
// and must be surrounded by quotes. |
| 129 |
KeywordSearchableProfileCustomAttributes []string `protobuf:"bytes,4,rep,name=keyword_searchable_profile_custom_attributes,json=keywordSearchableProfileCustomAttributes,proto3" json:"keyword_searchable_profile_custom_attributes,omitempty"` |
| 130 |
} |
| 131 |
|
| 132 |
func (x *Tenant) Reset() { |
| 133 |
*x = Tenant{} |
| 134 |
mi := &file_google_cloud_talent_v4beta1_tenant_proto_msgTypes[0] |
| 135 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 136 |
ms.StoreMessageInfo(mi) |
| 137 |
} |
| 138 |
|
| 139 |
func (x *Tenant) String() string { |
| 140 |
return protoimpl.X.MessageStringOf(x) |
| 141 |
} |
| 142 |
|
| 143 |
func (*Tenant) ProtoMessage() {} |
| 144 |
|
| 145 |
func (x *Tenant) ProtoReflect() protoreflect.Message { |
| 146 |
mi := &file_google_cloud_talent_v4beta1_tenant_proto_msgTypes[0] |
| 147 |
if x != nil { |
| 148 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 149 |
if ms.LoadMessageInfo() == nil { |
| 150 |
ms.StoreMessageInfo(mi) |
| 151 |
} |
| 152 |
return ms |
| 153 |
} |
| 154 |
return mi.MessageOf(x) |
| 155 |
} |
| 156 |
|
| 157 |
// Deprecated: Use Tenant.ProtoReflect.Descriptor instead. |
| 158 |
func (*Tenant) Descriptor() ([]byte, []int) { |
| 159 |
return file_google_cloud_talent_v4beta1_tenant_proto_rawDescGZIP(), []int{0} |
| 160 |
} |
| 161 |
|
| 162 |
func (x *Tenant) GetName() string { |
| 163 |
if x != nil { |
| 164 |
return x.Name |
| 165 |
} |
| 166 |
return "" |
| 167 |
} |
| 168 |
|
| 169 |
func (x *Tenant) GetExternalId() string { |
| 170 |
if x != nil { |
| 171 |
return x.ExternalId |
| 172 |
} |
| 173 |
return "" |
| 174 |
} |
| 175 |
|
| 176 |
func (x *Tenant) GetUsageType() Tenant_DataUsageType { |
| 177 |
if x != nil { |
| 178 |
return x.UsageType |
| 179 |
} |
| 180 |
return Tenant_DATA_USAGE_TYPE_UNSPECIFIED |
| 181 |
} |
| 182 |
|
| 183 |
func (x *Tenant) GetKeywordSearchableProfileCustomAttributes() []string { |
| 184 |
if x != nil { |
| 185 |
return x.KeywordSearchableProfileCustomAttributes |
| 186 |
} |
| 187 |
return nil |
| 188 |
} |
| 189 |
|
| 190 |
var File_google_cloud_talent_v4beta1_tenant_proto protoreflect.FileDescriptor |
| 191 |
|
| 192 |
var file_google_cloud_talent_v4beta1_tenant_proto_rawDesc = []byte{ |
| 193 |
0x0a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74, |
| 194 |
0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x65, |
| 195 |
0x6e, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x67, 0x6f, 0x6f, 0x67, |
| 196 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, |
| 197 |
0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 198 |
0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, |
| 199 |
0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 200 |
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, |
| 201 |
0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x03, 0x0a, 0x06, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x12, |
| 202 |
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, |
| 203 |
0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, |
| 204 |
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x65, 0x78, |
| 205 |
0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x50, 0x0a, 0x0a, 0x75, 0x73, 0x61, 0x67, |
| 206 |
0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x67, |
| 207 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, |
| 208 |
0x6e, 0x74, 0x2e, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, |
| 209 |
0x74, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x55, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, |
| 210 |
0x09, 0x75, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x5e, 0x0a, 0x2c, 0x6b, 0x65, |
| 211 |
0x79, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, |
| 212 |
0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, |
| 213 |
0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, |
| 214 |
0x52, 0x28, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x61, |
| 215 |
0x62, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, |
| 216 |
0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0x4e, 0x0a, 0x0d, 0x44, 0x61, |
| 217 |
0x74, 0x61, 0x55, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x44, |
| 218 |
0x41, 0x54, 0x41, 0x5f, 0x55, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, |
| 219 |
0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, |
| 220 |
0x41, 0x47, 0x47, 0x52, 0x45, 0x47, 0x41, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, |
| 221 |
0x49, 0x53, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x02, 0x3a, 0x44, 0xea, 0x41, 0x41, 0x0a, |
| 222 |
0x1a, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, |
| 223 |
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x23, 0x70, 0x72, 0x6f, |
| 224 |
0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, |
| 225 |
0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x7d, |
| 226 |
0x42, 0x77, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 227 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x62, 0x65, |
| 228 |
0x74, 0x61, 0x31, 0x42, 0x13, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, |
| 229 |
0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x63, 0x6c, 0x6f, 0x75, |
| 230 |
0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, |
| 231 |
0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, |
| 232 |
0x31, 0x2f, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x3b, 0x74, 0x61, 0x6c, 0x65, 0x6e, |
| 233 |
0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x53, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 234 |
0x33, |
| 235 |
} |
| 236 |
|
| 237 |
var ( |
| 238 |
file_google_cloud_talent_v4beta1_tenant_proto_rawDescOnce sync.Once |
| 239 |
file_google_cloud_talent_v4beta1_tenant_proto_rawDescData = file_google_cloud_talent_v4beta1_tenant_proto_rawDesc |
| 240 |
) |
| 241 |
|
| 242 |
func file_google_cloud_talent_v4beta1_tenant_proto_rawDescGZIP() []byte { |
| 243 |
file_google_cloud_talent_v4beta1_tenant_proto_rawDescOnce.Do(func() { |
| 244 |
file_google_cloud_talent_v4beta1_tenant_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_talent_v4beta1_tenant_proto_rawDescData) |
| 245 |
}) |
| 246 |
return file_google_cloud_talent_v4beta1_tenant_proto_rawDescData |
| 247 |
} |
| 248 |
|
| 249 |
var file_google_cloud_talent_v4beta1_tenant_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 250 |
var file_google_cloud_talent_v4beta1_tenant_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 251 |
var file_google_cloud_talent_v4beta1_tenant_proto_goTypes = []any{ |
| 252 |
(Tenant_DataUsageType)(0), // 0: google.cloud.talent.v4beta1.Tenant.DataUsageType |
| 253 |
(*Tenant)(nil), // 1: google.cloud.talent.v4beta1.Tenant |
| 254 |
} |
| 255 |
var file_google_cloud_talent_v4beta1_tenant_proto_depIdxs = []int32{ |
| 256 |
0, // 0: google.cloud.talent.v4beta1.Tenant.usage_type:type_name -> google.cloud.talent.v4beta1.Tenant.DataUsageType |
| 257 |
1, // [1:1] is the sub-list for method output_type |
| 258 |
1, // [1:1] is the sub-list for method input_type |
| 259 |
1, // [1:1] is the sub-list for extension type_name |
| 260 |
1, // [1:1] is the sub-list for extension extendee |
| 261 |
0, // [0:1] is the sub-list for field type_name |
| 262 |
} |
| 263 |
|
| 264 |
func init() { file_google_cloud_talent_v4beta1_tenant_proto_init() } |
| 265 |
func file_google_cloud_talent_v4beta1_tenant_proto_init() { |
| 266 |
if File_google_cloud_talent_v4beta1_tenant_proto != nil { |
| 267 |
return |
| 268 |
} |
| 269 |
type x struct{} |
| 270 |
out := protoimpl.TypeBuilder{ |
| 271 |
File: protoimpl.DescBuilder{ |
| 272 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 273 |
RawDescriptor: file_google_cloud_talent_v4beta1_tenant_proto_rawDesc, |
| 274 |
NumEnums: 1, |
| 275 |
NumMessages: 1, |
| 276 |
NumExtensions: 0, |
| 277 |
NumServices: 0, |
| 278 |
}, |
| 279 |
GoTypes: file_google_cloud_talent_v4beta1_tenant_proto_goTypes, |
| 280 |
DependencyIndexes: file_google_cloud_talent_v4beta1_tenant_proto_depIdxs, |
| 281 |
EnumInfos: file_google_cloud_talent_v4beta1_tenant_proto_enumTypes, |
| 282 |
MessageInfos: file_google_cloud_talent_v4beta1_tenant_proto_msgTypes, |
| 283 |
}.Build() |
| 284 |
File_google_cloud_talent_v4beta1_tenant_proto = out.File |
| 285 |
file_google_cloud_talent_v4beta1_tenant_proto_rawDesc = nil |
| 286 |
file_google_cloud_talent_v4beta1_tenant_proto_goTypes = nil |
| 287 |
file_google_cloud_talent_v4beta1_tenant_proto_depIdxs = nil |
| 288 |
} |