Class 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 type google.cloud.talent.v4beta1.Tenant
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Tenant.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>
      • setField

        public Tenant.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                       Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>
      • clearField

        public Tenant.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>
      • clearOneof

        public Tenant.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>
      • setRepeatedField

        public Tenant.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               int index,
                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>
      • addRepeatedField

        public Tenant.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        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.
      • setUnknownFields

        public final Tenant.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>
      • mergeUnknownFields

        public final Tenant.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Tenant.Builder>