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 Type
    Method
    Description
    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.
    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.
     
     
     
    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.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Required.
    com.google.protobuf.ByteString
    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.
    com.google.protobuf.ByteString
    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.
    int
    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.ProtocolStringList
    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.
    com.google.protobuf.ByteString
    Required during tenant update.
    Indicates whether data owned by this tenant may be used to provide product improvements across other tenants.
    int
    Indicates whether data owned by this tenant may be used to provide product improvements across other tenants.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    Required.
    setExternalIdBytes(com.google.protobuf.ByteString value)
    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.
    setName(String value)
    Required during tenant update.
    setNameBytes(com.google.protobuf.ByteString value)
    Required during tenant update.
    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, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Tenant.Builder>
    • clear

      public Tenant.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Tenant.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Tenant.Builder>
    • getDefaultInstanceForType

      public Tenant getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Tenant build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Tenant buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Tenant.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Tenant.Builder>
    • mergeFrom

      public Tenant.Builder mergeFrom(Tenant other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getName in interface TenantOrBuilder
      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:
      getNameBytes in interface TenantOrBuilder
      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:
      getExternalId in interface TenantOrBuilder
      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:
      getExternalIdBytes in interface TenantOrBuilder
      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:
      getUsageTypeValue in interface TenantOrBuilder
      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:
      getUsageType in interface TenantOrBuilder
      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:
      getKeywordSearchableProfileCustomAttributesList in interface TenantOrBuilder
      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:
      getKeywordSearchableProfileCustomAttributesCount in interface TenantOrBuilder
      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:
      getKeywordSearchableProfileCustomAttributes in interface TenantOrBuilder
      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:
      getKeywordSearchableProfileCustomAttributesBytes in interface TenantOrBuilder
      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.