Package com.google.cloud.talent.v4beta1
Class Tenant.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Tenant.Builder>
com.google.cloud.talent.v4beta1.Tenant.Builder
- All Implemented Interfaces:
TenantOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Tenant
public static final class Tenant.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionA list of keys of filterable [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes], whose corresponding `string_values` are used in keyword searches.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.addKeywordSearchableProfileCustomAttributesBytes(com.google.protobuf.ByteString value) 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.build()clear()Required.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.Required during tenant update.Indicates whether data owned by this tenant may be used to provide product improvements across other tenants.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getKeywordSearchableProfileCustomAttributes(int index) 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.com.google.protobuf.ByteStringA list of keys of filterable [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes], whose corresponding `string_values` are used in keyword searches.intA list of keys of filterable [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes], whose corresponding `string_values` are used in keyword searches.com.google.protobuf.ProtocolStringListA list of keys of filterable [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes], whose corresponding `string_values` are used in keyword searches.getName()Required during tenant update.com.google.protobuf.ByteStringRequired during tenant update.Indicates whether data owned by this tenant may be used to provide product improvements across other tenants.intIndicates whether data owned by this tenant may be used to provide product improvements across other tenants.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setExternalId(String value) Required.setExternalIdBytes(com.google.protobuf.ByteString value) Required.setKeywordSearchableProfileCustomAttributes(int index, String value) 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.Required during tenant update.setNameBytes(com.google.protobuf.ByteString value) Required during tenant update.setUsageType(Tenant.DataUsageType value) Indicates whether data owned by this tenant may be used to provide product improvements across other tenants.setUsageTypeValue(int value) Indicates whether data owned by this tenant may be used to provide product improvements across other tenants.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Tenant.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Tenant.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Tenant.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Tenant.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Tenant.Builder>
-
mergeFrom
public Tenant.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Tenant.Builder>- Throws:
IOException
-
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/foo/tenants/bar".string name = 1;- Specified by:
getNamein interfaceTenantOrBuilder- Returns:
- The name.
-
getNameBytes
public 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/foo/tenants/bar".string name = 1;- Specified by:
getNameBytesin interfaceTenantOrBuilder- Returns:
- The bytes for name.
-
setName
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/foo/tenants/bar".string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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/foo/tenants/bar".string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
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/foo/tenants/bar".string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getExternalId
Required. Client side tenant identifier, used to uniquely identify the tenant. The maximum number of allowed characters is 255.
string external_id = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getExternalIdin interfaceTenantOrBuilder- Returns:
- The externalId.
-
getExternalIdBytes
public 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 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getExternalIdBytesin interfaceTenantOrBuilder- Returns:
- The bytes for externalId.
-
setExternalId
Required. Client side tenant identifier, used to uniquely identify the tenant. The maximum number of allowed characters is 255.
string external_id = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The externalId to set.- Returns:
- This builder for chaining.
-
clearExternalId
Required. Client side tenant identifier, used to uniquely identify the tenant. The maximum number of allowed characters is 255.
string external_id = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setExternalIdBytes
Required. Client side tenant identifier, used to uniquely identify the tenant. The maximum number of allowed characters is 255.
string external_id = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for externalId to set.- Returns:
- This builder for chaining.
-
getUsageTypeValue
public int getUsageTypeValue()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;- Specified by:
getUsageTypeValuein interfaceTenantOrBuilder- Returns:
- The enum numeric value on the wire for usageType.
-
setUsageTypeValue
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;- Parameters:
value- The enum numeric value on the wire for usageType to set.- Returns:
- This builder for chaining.
-
getUsageType
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;- Specified by:
getUsageTypein interfaceTenantOrBuilder- Returns:
- The usageType.
-
setUsageType
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;- Parameters:
value- The usageType to set.- Returns:
- This builder for chaining.
-
clearUsageType
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;- Returns:
- This builder for chaining.
-
getKeywordSearchableProfileCustomAttributesList
public com.google.protobuf.ProtocolStringList getKeywordSearchableProfileCustomAttributesList()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;- Specified by:
getKeywordSearchableProfileCustomAttributesListin interfaceTenantOrBuilder- Returns:
- A list containing the keywordSearchableProfileCustomAttributes.
-
getKeywordSearchableProfileCustomAttributesCount
public int getKeywordSearchableProfileCustomAttributesCount()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;- Specified by:
getKeywordSearchableProfileCustomAttributesCountin interfaceTenantOrBuilder- Returns:
- The count of keywordSearchableProfileCustomAttributes.
-
getKeywordSearchableProfileCustomAttributes
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;- Specified by:
getKeywordSearchableProfileCustomAttributesin interfaceTenantOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The keywordSearchableProfileCustomAttributes at the given index.
-
getKeywordSearchableProfileCustomAttributesBytes
public com.google.protobuf.ByteString getKeywordSearchableProfileCustomAttributesBytes(int index) 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;- Specified by:
getKeywordSearchableProfileCustomAttributesBytesin interfaceTenantOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the keywordSearchableProfileCustomAttributes at the given index.
-
setKeywordSearchableProfileCustomAttributes
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;- Parameters:
index- The index to set the value at.value- The keywordSearchableProfileCustomAttributes to set.- Returns:
- This builder for chaining.
-
addKeywordSearchableProfileCustomAttributes
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;- Parameters:
value- The keywordSearchableProfileCustomAttributes to add.- Returns:
- This builder for chaining.
-
addAllKeywordSearchableProfileCustomAttributes
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;- Parameters:
values- The keywordSearchableProfileCustomAttributes to add.- Returns:
- This builder for chaining.
-
clearKeywordSearchableProfileCustomAttributes
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;- Returns:
- This builder for chaining.
-
addKeywordSearchableProfileCustomAttributesBytes
public Tenant.Builder addKeywordSearchableProfileCustomAttributesBytes(com.google.protobuf.ByteString value) 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;- Parameters:
value- The bytes of the keywordSearchableProfileCustomAttributes to add.- Returns:
- This builder for chaining.
-