public static final class Tenant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder> implements TenantOrBuilder
A Tenant resource represents a tenant in the service. A tenant is a group or entity that shares common access with specific privileges for resources like profiles. Customer may create multiple tenants to provide data isolation for different groups.Protobuf type
google.cloud.talent.v4beta1.Tenant| Modifier and Type | Method and Description |
|---|---|
Tenant.Builder |
addAllKeywordSearchableProfileCustomAttributes(Iterable<String> values)
Optional.
|
Tenant.Builder |
addKeywordSearchableProfileCustomAttributes(String value)
Optional.
|
Tenant.Builder |
addKeywordSearchableProfileCustomAttributesBytes(com.google.protobuf.ByteString value)
Optional.
|
Tenant.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Tenant |
build() |
Tenant |
buildPartial() |
Tenant.Builder |
clear() |
Tenant.Builder |
clearExternalId()
Required.
|
Tenant.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Tenant.Builder |
clearKeywordSearchableProfileCustomAttributes()
Optional.
|
Tenant.Builder |
clearName()
Required during tenant update.
|
Tenant.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Tenant.Builder |
clearUsageType()
Optional.
|
Tenant.Builder |
clone() |
Tenant |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getExternalId()
Required.
|
com.google.protobuf.ByteString |
getExternalIdBytes()
Required.
|
String |
getKeywordSearchableProfileCustomAttributes(int index)
Optional.
|
com.google.protobuf.ByteString |
getKeywordSearchableProfileCustomAttributesBytes(int index)
Optional.
|
int |
getKeywordSearchableProfileCustomAttributesCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getKeywordSearchableProfileCustomAttributesList()
Optional.
|
String |
getName()
Required during tenant update.
|
com.google.protobuf.ByteString |
getNameBytes()
Required during tenant update.
|
Tenant.DataUsageType |
getUsageType()
Optional.
|
int |
getUsageTypeValue()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Tenant.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Tenant.Builder |
mergeFrom(com.google.protobuf.Message other) |
Tenant.Builder |
mergeFrom(Tenant other) |
Tenant.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Tenant.Builder |
setExternalId(String value)
Required.
|
Tenant.Builder |
setExternalIdBytes(com.google.protobuf.ByteString value)
Required.
|
Tenant.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Tenant.Builder |
setKeywordSearchableProfileCustomAttributes(int index,
String value)
Optional.
|
Tenant.Builder |
setName(String value)
Required during tenant update.
|
Tenant.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required during tenant update.
|
Tenant.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Tenant.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Tenant.Builder |
setUsageType(Tenant.DataUsageType value)
Optional.
|
Tenant.Builder |
setUsageTypeValue(int value)
Optional.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>public Tenant.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>public Tenant getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Tenant build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Tenant buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Tenant.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>public Tenant.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>public Tenant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>public Tenant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>public Tenant.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>public Tenant.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>public Tenant.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Tenant.Builder>public Tenant.Builder mergeFrom(Tenant other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>public Tenant.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Tenant.Builder>IOExceptionpublic String getName()
Required during tenant update.
The resource name for a tenant. This is generated by the service when a
tenant is created.
The format is "projects/{project_id}/tenants/{tenant_id}", for example,
"projects/api-test-project/tenants/foo".
string name = 1;getName in interface TenantOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required during tenant update.
The resource name for a tenant. This is generated by the service when a
tenant is created.
The format is "projects/{project_id}/tenants/{tenant_id}", for example,
"projects/api-test-project/tenants/foo".
string name = 1;getNameBytes in interface TenantOrBuilderpublic Tenant.Builder setName(String value)
Required during tenant update.
The resource name for a tenant. This is generated by the service when a
tenant is created.
The format is "projects/{project_id}/tenants/{tenant_id}", for example,
"projects/api-test-project/tenants/foo".
string name = 1;public Tenant.Builder clearName()
Required during tenant update.
The resource name for a tenant. This is generated by the service when a
tenant is created.
The format is "projects/{project_id}/tenants/{tenant_id}", for example,
"projects/api-test-project/tenants/foo".
string name = 1;public Tenant.Builder setNameBytes(com.google.protobuf.ByteString value)
Required during tenant update.
The resource name for a tenant. This is generated by the service when a
tenant is created.
The format is "projects/{project_id}/tenants/{tenant_id}", for example,
"projects/api-test-project/tenants/foo".
string name = 1;public String getExternalId()
Required. Client side tenant identifier, used to uniquely identify the tenant. The maximum number of allowed characters is 255.
string external_id = 2;getExternalId in interface TenantOrBuilderpublic com.google.protobuf.ByteString getExternalIdBytes()
Required. Client side tenant identifier, used to uniquely identify the tenant. The maximum number of allowed characters is 255.
string external_id = 2;getExternalIdBytes in interface TenantOrBuilderpublic Tenant.Builder setExternalId(String value)
Required. Client side tenant identifier, used to uniquely identify the tenant. The maximum number of allowed characters is 255.
string external_id = 2;public Tenant.Builder clearExternalId()
Required. Client side tenant identifier, used to uniquely identify the tenant. The maximum number of allowed characters is 255.
string external_id = 2;public Tenant.Builder setExternalIdBytes(com.google.protobuf.ByteString value)
Required. Client side tenant identifier, used to uniquely identify the tenant. The maximum number of allowed characters is 255.
string external_id = 2;public int getUsageTypeValue()
Optional. Indicates whether data owned by this tenant may be used to provide product improvements across other tenants. Defaults behavior is [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED] if it's unset.
.google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3;getUsageTypeValue in interface TenantOrBuilderpublic Tenant.Builder setUsageTypeValue(int value)
Optional. Indicates whether data owned by this tenant may be used to provide product improvements across other tenants. Defaults behavior is [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED] if it's unset.
.google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3;public Tenant.DataUsageType getUsageType()
Optional. Indicates whether data owned by this tenant may be used to provide product improvements across other tenants. Defaults behavior is [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED] if it's unset.
.google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3;getUsageType in interface TenantOrBuilderpublic Tenant.Builder setUsageType(Tenant.DataUsageType value)
Optional. Indicates whether data owned by this tenant may be used to provide product improvements across other tenants. Defaults behavior is [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED] if it's unset.
.google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3;public Tenant.Builder clearUsageType()
Optional. Indicates whether data owned by this tenant may be used to provide product improvements across other tenants. Defaults behavior is [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED] if it's unset.
.google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3;public com.google.protobuf.ProtocolStringList getKeywordSearchableProfileCustomAttributesList()
Optional. A list of keys of filterable [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes], whose corresponding `string_values` are used in keyword searches. Profiles with `string_values` under these specified field keys are returned if any of the values match the search keyword. Custom field values with parenthesis, brackets and special symbols are not searchable as-is, and must be surrounded by quotes.
repeated string keyword_searchable_profile_custom_attributes = 4;getKeywordSearchableProfileCustomAttributesList in interface TenantOrBuilderpublic int getKeywordSearchableProfileCustomAttributesCount()
Optional. A list of keys of filterable [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes], whose corresponding `string_values` are used in keyword searches. Profiles with `string_values` under these specified field keys are returned if any of the values match the search keyword. Custom field values with parenthesis, brackets and special symbols are not searchable as-is, and must be surrounded by quotes.
repeated string keyword_searchable_profile_custom_attributes = 4;getKeywordSearchableProfileCustomAttributesCount in interface TenantOrBuilderpublic String getKeywordSearchableProfileCustomAttributes(int index)
Optional. A list of keys of filterable [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes], whose corresponding `string_values` are used in keyword searches. Profiles with `string_values` under these specified field keys are returned if any of the values match the search keyword. Custom field values with parenthesis, brackets and special symbols are not searchable as-is, and must be surrounded by quotes.
repeated string keyword_searchable_profile_custom_attributes = 4;getKeywordSearchableProfileCustomAttributes in interface TenantOrBuilderpublic com.google.protobuf.ByteString getKeywordSearchableProfileCustomAttributesBytes(int index)
Optional. A list of keys of filterable [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes], whose corresponding `string_values` are used in keyword searches. Profiles with `string_values` under these specified field keys are returned if any of the values match the search keyword. Custom field values with parenthesis, brackets and special symbols are not searchable as-is, and must be surrounded by quotes.
repeated string keyword_searchable_profile_custom_attributes = 4;getKeywordSearchableProfileCustomAttributesBytes in interface TenantOrBuilderpublic Tenant.Builder setKeywordSearchableProfileCustomAttributes(int index, String value)
Optional. A list of keys of filterable [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes], whose corresponding `string_values` are used in keyword searches. Profiles with `string_values` under these specified field keys are returned if any of the values match the search keyword. Custom field values with parenthesis, brackets and special symbols are not searchable as-is, and must be surrounded by quotes.
repeated string keyword_searchable_profile_custom_attributes = 4;public Tenant.Builder addKeywordSearchableProfileCustomAttributes(String value)
Optional. A list of keys of filterable [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes], whose corresponding `string_values` are used in keyword searches. Profiles with `string_values` under these specified field keys are returned if any of the values match the search keyword. Custom field values with parenthesis, brackets and special symbols are not searchable as-is, and must be surrounded by quotes.
repeated string keyword_searchable_profile_custom_attributes = 4;public Tenant.Builder addAllKeywordSearchableProfileCustomAttributes(Iterable<String> values)
Optional. A list of keys of filterable [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes], whose corresponding `string_values` are used in keyword searches. Profiles with `string_values` under these specified field keys are returned if any of the values match the search keyword. Custom field values with parenthesis, brackets and special symbols are not searchable as-is, and must be surrounded by quotes.
repeated string keyword_searchable_profile_custom_attributes = 4;public Tenant.Builder clearKeywordSearchableProfileCustomAttributes()
Optional. A list of keys of filterable [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes], whose corresponding `string_values` are used in keyword searches. Profiles with `string_values` under these specified field keys are returned if any of the values match the search keyword. Custom field values with parenthesis, brackets and special symbols are not searchable as-is, and must be surrounded by quotes.
repeated string keyword_searchable_profile_custom_attributes = 4;public Tenant.Builder addKeywordSearchableProfileCustomAttributesBytes(com.google.protobuf.ByteString value)
Optional. A list of keys of filterable [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes], whose corresponding `string_values` are used in keyword searches. Profiles with `string_values` under these specified field keys are returned if any of the values match the search keyword. Custom field values with parenthesis, brackets and special symbols are not searchable as-is, and must be surrounded by quotes.
repeated string keyword_searchable_profile_custom_attributes = 4;public final Tenant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>public final Tenant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>Copyright © 2019 Google LLC. All rights reserved.