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.GeneratedMessageV3.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.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 typegoogle.cloud.talent.v4beta1.Tenant
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Tenant.BuilderaddAllKeywordSearchableProfileCustomAttributes(Iterable<String> values)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.Tenant.BuilderaddKeywordSearchableProfileCustomAttributes(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.Tenant.BuilderaddKeywordSearchableProfileCustomAttributesBytes(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.Tenant.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Tenantbuild()TenantbuildPartial()Tenant.Builderclear()Tenant.BuilderclearExternalId()Required.Tenant.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Tenant.BuilderclearKeywordSearchableProfileCustomAttributes()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.Tenant.BuilderclearName()Required during tenant update.Tenant.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Tenant.BuilderclearUsageType()Indicates whether data owned by this tenant may be used to provide product improvements across other tenants.Tenant.Builderclone()TenantgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetExternalId()Required.com.google.protobuf.ByteStringgetExternalIdBytes()Required.StringgetKeywordSearchableProfileCustomAttributes(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.ByteStringgetKeywordSearchableProfileCustomAttributesBytes(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.intgetKeywordSearchableProfileCustomAttributesCount()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.ProtocolStringListgetKeywordSearchableProfileCustomAttributesList()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.StringgetName()Required during tenant update.com.google.protobuf.ByteStringgetNameBytes()Required during tenant update.Tenant.DataUsageTypegetUsageType()Indicates whether data owned by this tenant may be used to provide product improvements across other tenants.intgetUsageTypeValue()Indicates whether data owned by this tenant may be used to provide product improvements across other tenants.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Tenant.BuildermergeFrom(Tenant other)Tenant.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Tenant.BuildermergeFrom(com.google.protobuf.Message other)Tenant.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Tenant.BuildersetExternalId(String value)Required.Tenant.BuildersetExternalIdBytes(com.google.protobuf.ByteString value)Required.Tenant.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Tenant.BuildersetKeywordSearchableProfileCustomAttributes(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.Tenant.BuildersetName(String value)Required during tenant update.Tenant.BuildersetNameBytes(com.google.protobuf.ByteString value)Required during tenant update.Tenant.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Tenant.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Tenant.BuildersetUsageType(Tenant.DataUsageType value)Indicates whether data owned by this tenant may be used to provide product improvements across other tenants.Tenant.BuildersetUsageTypeValue(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.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>
-
clear
public Tenant.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Tenant.Builder>
-
getDefaultInstanceForType
public Tenant getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Tenant build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Tenant buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Tenant.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>
-
setField
public Tenant.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>
-
clearField
public Tenant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>
-
clearOneof
public Tenant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>
-
setRepeatedField
public Tenant.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>
-
addRepeatedField
public Tenant.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>
-
mergeFrom
public Tenant.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Tenant.Builder>
-
mergeFrom
public Tenant.Builder mergeFrom(Tenant other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public 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/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
public 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/foo/tenants/bar".string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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/foo/tenants/bar".string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
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/foo/tenants/bar".string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getExternalId
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 [(.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
public 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 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The externalId to set.- Returns:
- This builder for chaining.
-
clearExternalId
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 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setExternalIdBytes
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 [(.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
public Tenant.Builder setUsageTypeValue(int value)
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
public Tenant.DataUsageType 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
public Tenant.Builder setUsageType(Tenant.DataUsageType value)
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
public Tenant.Builder 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
public String 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. 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
public Tenant.Builder 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. 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
public Tenant.Builder addKeywordSearchableProfileCustomAttributes(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. 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
public Tenant.Builder addAllKeywordSearchableProfileCustomAttributes(Iterable<String> values)
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
public Tenant.Builder 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.
-
setUnknownFields
public final Tenant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>
-
mergeUnknownFields
public final Tenant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>
-
-