Class CreateDataStoreRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateDataStoreRequest.Builder>
com.google.cloud.discoveryengine.v1.CreateDataStoreRequest.Builder
All Implemented Interfaces:
CreateDataStoreRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateDataStoreRequest

public static final class CreateDataStoreRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateDataStoreRequest.Builder> implements CreateDataStoreRequestOrBuilder
 Request for
 [DataStoreService.CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
 method.
 
Protobuf type google.cloud.discoveryengine.v1.CreateDataStoreRequest
  • 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<CreateDataStoreRequest.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<CreateDataStoreRequest.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<CreateDataStoreRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public CreateDataStoreRequest.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<CreateDataStoreRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CreateDataStoreRequest.Builder>
    • mergeFrom

      public CreateDataStoreRequest.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<CreateDataStoreRequest.Builder>
      Throws:
      IOException
    • getCmekOptionsCase

      public CreateDataStoreRequest.CmekOptionsCase getCmekOptionsCase()
      Specified by:
      getCmekOptionsCase in interface CreateDataStoreRequestOrBuilder
    • clearCmekOptions

      public CreateDataStoreRequest.Builder clearCmekOptions()
    • hasCmekConfigName

      public boolean hasCmekConfigName()
       Resource name of the CmekConfig to use for protecting this DataStore.
       
      string cmek_config_name = 5 [(.google.api.resource_reference) = { ... }
      Specified by:
      hasCmekConfigName in interface CreateDataStoreRequestOrBuilder
      Returns:
      Whether the cmekConfigName field is set.
    • getCmekConfigName

      public String getCmekConfigName()
       Resource name of the CmekConfig to use for protecting this DataStore.
       
      string cmek_config_name = 5 [(.google.api.resource_reference) = { ... }
      Specified by:
      getCmekConfigName in interface CreateDataStoreRequestOrBuilder
      Returns:
      The cmekConfigName.
    • getCmekConfigNameBytes

      public com.google.protobuf.ByteString getCmekConfigNameBytes()
       Resource name of the CmekConfig to use for protecting this DataStore.
       
      string cmek_config_name = 5 [(.google.api.resource_reference) = { ... }
      Specified by:
      getCmekConfigNameBytes in interface CreateDataStoreRequestOrBuilder
      Returns:
      The bytes for cmekConfigName.
    • setCmekConfigName

      public CreateDataStoreRequest.Builder setCmekConfigName(String value)
       Resource name of the CmekConfig to use for protecting this DataStore.
       
      string cmek_config_name = 5 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The cmekConfigName to set.
      Returns:
      This builder for chaining.
    • clearCmekConfigName

      public CreateDataStoreRequest.Builder clearCmekConfigName()
       Resource name of the CmekConfig to use for protecting this DataStore.
       
      string cmek_config_name = 5 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setCmekConfigNameBytes

      public CreateDataStoreRequest.Builder setCmekConfigNameBytes(com.google.protobuf.ByteString value)
       Resource name of the CmekConfig to use for protecting this DataStore.
       
      string cmek_config_name = 5 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for cmekConfigName to set.
      Returns:
      This builder for chaining.
    • hasDisableCmek

      public boolean hasDisableCmek()
       DataStore without CMEK protections. If a default CmekConfig is set for
       the project, setting this field will override the default CmekConfig as
       well.
       
      bool disable_cmek = 6;
      Specified by:
      hasDisableCmek in interface CreateDataStoreRequestOrBuilder
      Returns:
      Whether the disableCmek field is set.
    • getDisableCmek

      public boolean getDisableCmek()
       DataStore without CMEK protections. If a default CmekConfig is set for
       the project, setting this field will override the default CmekConfig as
       well.
       
      bool disable_cmek = 6;
      Specified by:
      getDisableCmek in interface CreateDataStoreRequestOrBuilder
      Returns:
      The disableCmek.
    • setDisableCmek

      public CreateDataStoreRequest.Builder setDisableCmek(boolean value)
       DataStore without CMEK protections. If a default CmekConfig is set for
       the project, setting this field will override the default CmekConfig as
       well.
       
      bool disable_cmek = 6;
      Parameters:
      value - The disableCmek to set.
      Returns:
      This builder for chaining.
    • clearDisableCmek

      public CreateDataStoreRequest.Builder clearDisableCmek()
       DataStore without CMEK protections. If a default CmekConfig is set for
       the project, setting this field will override the default CmekConfig as
       well.
       
      bool disable_cmek = 6;
      Returns:
      This builder for chaining.
    • getParent

      public String getParent()
       Required. The parent resource name, such as
       `projects/{project}/locations/{location}/collections/{collection}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateDataStoreRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource name, such as
       `projects/{project}/locations/{location}/collections/{collection}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateDataStoreRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateDataStoreRequest.Builder setParent(String value)
       Required. The parent resource name, such as
       `projects/{project}/locations/{location}/collections/{collection}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateDataStoreRequest.Builder clearParent()
       Required. The parent resource name, such as
       `projects/{project}/locations/{location}/collections/{collection}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateDataStoreRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource name, such as
       `projects/{project}/locations/{location}/collections/{collection}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasDataStore

      public boolean hasDataStore()
       Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to
       create.
       
      .google.cloud.discoveryengine.v1.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDataStore in interface CreateDataStoreRequestOrBuilder
      Returns:
      Whether the dataStore field is set.
    • getDataStore

      public DataStore getDataStore()
       Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to
       create.
       
      .google.cloud.discoveryengine.v1.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataStore in interface CreateDataStoreRequestOrBuilder
      Returns:
      The dataStore.
    • setDataStore

      public CreateDataStoreRequest.Builder setDataStore(DataStore value)
       Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to
       create.
       
      .google.cloud.discoveryengine.v1.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];
    • setDataStore

      public CreateDataStoreRequest.Builder setDataStore(DataStore.Builder builderForValue)
       Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to
       create.
       
      .google.cloud.discoveryengine.v1.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeDataStore

      public CreateDataStoreRequest.Builder mergeDataStore(DataStore value)
       Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to
       create.
       
      .google.cloud.discoveryengine.v1.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearDataStore

      public CreateDataStoreRequest.Builder clearDataStore()
       Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to
       create.
       
      .google.cloud.discoveryengine.v1.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];
    • getDataStoreBuilder

      public DataStore.Builder getDataStoreBuilder()
       Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to
       create.
       
      .google.cloud.discoveryengine.v1.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];
    • getDataStoreOrBuilder

      public DataStoreOrBuilder getDataStoreOrBuilder()
       Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to
       create.
       
      .google.cloud.discoveryengine.v1.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataStoreOrBuilder in interface CreateDataStoreRequestOrBuilder
    • getDataStoreId

      public String getDataStoreId()
       Required. The ID to use for the
       [DataStore][google.cloud.discoveryengine.v1.DataStore], which will become
       the final component of the
       [DataStore][google.cloud.discoveryengine.v1.DataStore]'s resource name.
      
       This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
       standard with a length limit of 63 characters. Otherwise, an
       INVALID_ARGUMENT error is returned.
       
      string data_store_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataStoreId in interface CreateDataStoreRequestOrBuilder
      Returns:
      The dataStoreId.
    • getDataStoreIdBytes

      public com.google.protobuf.ByteString getDataStoreIdBytes()
       Required. The ID to use for the
       [DataStore][google.cloud.discoveryengine.v1.DataStore], which will become
       the final component of the
       [DataStore][google.cloud.discoveryengine.v1.DataStore]'s resource name.
      
       This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
       standard with a length limit of 63 characters. Otherwise, an
       INVALID_ARGUMENT error is returned.
       
      string data_store_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataStoreIdBytes in interface CreateDataStoreRequestOrBuilder
      Returns:
      The bytes for dataStoreId.
    • setDataStoreId

      public CreateDataStoreRequest.Builder setDataStoreId(String value)
       Required. The ID to use for the
       [DataStore][google.cloud.discoveryengine.v1.DataStore], which will become
       the final component of the
       [DataStore][google.cloud.discoveryengine.v1.DataStore]'s resource name.
      
       This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
       standard with a length limit of 63 characters. Otherwise, an
       INVALID_ARGUMENT error is returned.
       
      string data_store_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The dataStoreId to set.
      Returns:
      This builder for chaining.
    • clearDataStoreId

      public CreateDataStoreRequest.Builder clearDataStoreId()
       Required. The ID to use for the
       [DataStore][google.cloud.discoveryengine.v1.DataStore], which will become
       the final component of the
       [DataStore][google.cloud.discoveryengine.v1.DataStore]'s resource name.
      
       This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
       standard with a length limit of 63 characters. Otherwise, an
       INVALID_ARGUMENT error is returned.
       
      string data_store_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDataStoreIdBytes

      public CreateDataStoreRequest.Builder setDataStoreIdBytes(com.google.protobuf.ByteString value)
       Required. The ID to use for the
       [DataStore][google.cloud.discoveryengine.v1.DataStore], which will become
       the final component of the
       [DataStore][google.cloud.discoveryengine.v1.DataStore]'s resource name.
      
       This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
       standard with a length limit of 63 characters. Otherwise, an
       INVALID_ARGUMENT error is returned.
       
      string data_store_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for dataStoreId to set.
      Returns:
      This builder for chaining.
    • getCreateAdvancedSiteSearch

      public boolean getCreateAdvancedSiteSearch()
       A boolean flag indicating whether user want to directly create an advanced
       data store for site search.
       If the data store is not configured as site
       search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will
       be ignored.
       
      bool create_advanced_site_search = 4;
      Specified by:
      getCreateAdvancedSiteSearch in interface CreateDataStoreRequestOrBuilder
      Returns:
      The createAdvancedSiteSearch.
    • setCreateAdvancedSiteSearch

      public CreateDataStoreRequest.Builder setCreateAdvancedSiteSearch(boolean value)
       A boolean flag indicating whether user want to directly create an advanced
       data store for site search.
       If the data store is not configured as site
       search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will
       be ignored.
       
      bool create_advanced_site_search = 4;
      Parameters:
      value - The createAdvancedSiteSearch to set.
      Returns:
      This builder for chaining.
    • clearCreateAdvancedSiteSearch

      public CreateDataStoreRequest.Builder clearCreateAdvancedSiteSearch()
       A boolean flag indicating whether user want to directly create an advanced
       data store for site search.
       If the data store is not configured as site
       search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will
       be ignored.
       
      bool create_advanced_site_search = 4;
      Returns:
      This builder for chaining.
    • getSkipDefaultSchemaCreation

      public boolean getSkipDefaultSchemaCreation()
       A boolean flag indicating whether to skip the default schema creation for
       the data store. Only enable this flag if you are certain that the default
       schema is incompatible with your use case.
      
       If set to true, you must manually create a schema for the data store before
       any documents can be ingested.
      
       This flag cannot be specified if `data_store.starting_schema` is specified.
       
      bool skip_default_schema_creation = 7;
      Specified by:
      getSkipDefaultSchemaCreation in interface CreateDataStoreRequestOrBuilder
      Returns:
      The skipDefaultSchemaCreation.
    • setSkipDefaultSchemaCreation

      public CreateDataStoreRequest.Builder setSkipDefaultSchemaCreation(boolean value)
       A boolean flag indicating whether to skip the default schema creation for
       the data store. Only enable this flag if you are certain that the default
       schema is incompatible with your use case.
      
       If set to true, you must manually create a schema for the data store before
       any documents can be ingested.
      
       This flag cannot be specified if `data_store.starting_schema` is specified.
       
      bool skip_default_schema_creation = 7;
      Parameters:
      value - The skipDefaultSchemaCreation to set.
      Returns:
      This builder for chaining.
    • clearSkipDefaultSchemaCreation

      public CreateDataStoreRequest.Builder clearSkipDefaultSchemaCreation()
       A boolean flag indicating whether to skip the default schema creation for
       the data store. Only enable this flag if you are certain that the default
       schema is incompatible with your use case.
      
       If set to true, you must manually create a schema for the data store before
       any documents can be ingested.
      
       This flag cannot be specified if `data_store.starting_schema` is specified.
       
      bool skip_default_schema_creation = 7;
      Returns:
      This builder for chaining.