Class ImportEntitiesRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
com.google.datastore.admin.v1.ImportEntitiesRequest.Builder
All Implemented Interfaces:
ImportEntitiesRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ImportEntitiesRequest

public static final class ImportEntitiesRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder> implements ImportEntitiesRequestOrBuilder
 The request for
 [google.datastore.admin.v1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1.DatastoreAdmin.ImportEntities].
 
Protobuf type google.datastore.admin.v1.ImportEntitiesRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
    • internalGetFieldAccessorTable

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

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

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

      public ImportEntitiesRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<ImportEntitiesRequest.Builder>
    • setField

      public ImportEntitiesRequest.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<ImportEntitiesRequest.Builder>
    • clearField

      public ImportEntitiesRequest.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<ImportEntitiesRequest.Builder>
    • clearOneof

      public ImportEntitiesRequest.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<ImportEntitiesRequest.Builder>
    • setRepeatedField

      public ImportEntitiesRequest.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<ImportEntitiesRequest.Builder>
    • addRepeatedField

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

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

    • isInitialized

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

      public ImportEntitiesRequest.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<ImportEntitiesRequest.Builder>
      Throws:
      IOException
    • getProjectId

      public String getProjectId()
       Required. Project ID against which to make the request.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectId in interface ImportEntitiesRequestOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Required. Project ID against which to make the request.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectIdBytes in interface ImportEntitiesRequestOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public ImportEntitiesRequest.Builder setProjectId(String value)
       Required. Project ID against which to make the request.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public ImportEntitiesRequest.Builder clearProjectId()
       Required. Project ID against which to make the request.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public ImportEntitiesRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       Required. Project ID against which to make the request.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: ImportEntitiesRequestOrBuilder
       Client-assigned labels.
       
      map<string, string> labels = 2;
      Specified by:
      getLabelsCount in interface ImportEntitiesRequestOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Client-assigned labels.
       
      map<string, string> labels = 2;
      Specified by:
      containsLabels in interface ImportEntitiesRequestOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface ImportEntitiesRequestOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Client-assigned labels.
       
      map<string, string> labels = 2;
      Specified by:
      getLabelsMap in interface ImportEntitiesRequestOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Client-assigned labels.
       
      map<string, string> labels = 2;
      Specified by:
      getLabelsOrDefault in interface ImportEntitiesRequestOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Client-assigned labels.
       
      map<string, string> labels = 2;
      Specified by:
      getLabelsOrThrow in interface ImportEntitiesRequestOrBuilder
    • clearLabels

      public ImportEntitiesRequest.Builder clearLabels()
    • removeLabels

      public ImportEntitiesRequest.Builder removeLabels(String key)
       Client-assigned labels.
       
      map<string, string> labels = 2;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public ImportEntitiesRequest.Builder putLabels(String key, String value)
       Client-assigned labels.
       
      map<string, string> labels = 2;
    • putAllLabels

      public ImportEntitiesRequest.Builder putAllLabels(Map<String,String> values)
       Client-assigned labels.
       
      map<string, string> labels = 2;
    • getInputUrl

      public String getInputUrl()
       Required. The full resource URL of the external storage location.
       Currently, only Google Cloud Storage is supported. So input_url should be
       of the form:
       `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where
       `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is
       an optional Cloud Storage namespace path (this is not a Cloud Datastore
       namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written
       by the ExportEntities operation. For more information about Cloud Storage
       namespace paths, see
       [Object name
       considerations](https://cloud.google.com/storage/docs/naming#object-considerations).
      
       For more information, see
       [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
       
      string input_url = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInputUrl in interface ImportEntitiesRequestOrBuilder
      Returns:
      The inputUrl.
    • getInputUrlBytes

      public com.google.protobuf.ByteString getInputUrlBytes()
       Required. The full resource URL of the external storage location.
       Currently, only Google Cloud Storage is supported. So input_url should be
       of the form:
       `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where
       `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is
       an optional Cloud Storage namespace path (this is not a Cloud Datastore
       namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written
       by the ExportEntities operation. For more information about Cloud Storage
       namespace paths, see
       [Object name
       considerations](https://cloud.google.com/storage/docs/naming#object-considerations).
      
       For more information, see
       [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
       
      string input_url = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInputUrlBytes in interface ImportEntitiesRequestOrBuilder
      Returns:
      The bytes for inputUrl.
    • setInputUrl

      public ImportEntitiesRequest.Builder setInputUrl(String value)
       Required. The full resource URL of the external storage location.
       Currently, only Google Cloud Storage is supported. So input_url should be
       of the form:
       `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where
       `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is
       an optional Cloud Storage namespace path (this is not a Cloud Datastore
       namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written
       by the ExportEntities operation. For more information about Cloud Storage
       namespace paths, see
       [Object name
       considerations](https://cloud.google.com/storage/docs/naming#object-considerations).
      
       For more information, see
       [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
       
      string input_url = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The inputUrl to set.
      Returns:
      This builder for chaining.
    • clearInputUrl

      public ImportEntitiesRequest.Builder clearInputUrl()
       Required. The full resource URL of the external storage location.
       Currently, only Google Cloud Storage is supported. So input_url should be
       of the form:
       `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where
       `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is
       an optional Cloud Storage namespace path (this is not a Cloud Datastore
       namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written
       by the ExportEntities operation. For more information about Cloud Storage
       namespace paths, see
       [Object name
       considerations](https://cloud.google.com/storage/docs/naming#object-considerations).
      
       For more information, see
       [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
       
      string input_url = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setInputUrlBytes

      public ImportEntitiesRequest.Builder setInputUrlBytes(com.google.protobuf.ByteString value)
       Required. The full resource URL of the external storage location.
       Currently, only Google Cloud Storage is supported. So input_url should be
       of the form:
       `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where
       `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is
       an optional Cloud Storage namespace path (this is not a Cloud Datastore
       namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written
       by the ExportEntities operation. For more information about Cloud Storage
       namespace paths, see
       [Object name
       considerations](https://cloud.google.com/storage/docs/naming#object-considerations).
      
       For more information, see
       [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
       
      string input_url = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for inputUrl to set.
      Returns:
      This builder for chaining.
    • hasEntityFilter

      public boolean hasEntityFilter()
       Optionally specify which kinds/namespaces are to be imported. If provided,
       the list must be a subset of the EntityFilter used in creating the export,
       otherwise a FAILED_PRECONDITION error will be returned. If no filter is
       specified then all entities from the export are imported.
       
      .google.datastore.admin.v1.EntityFilter entity_filter = 4;
      Specified by:
      hasEntityFilter in interface ImportEntitiesRequestOrBuilder
      Returns:
      Whether the entityFilter field is set.
    • getEntityFilter

      public EntityFilter getEntityFilter()
       Optionally specify which kinds/namespaces are to be imported. If provided,
       the list must be a subset of the EntityFilter used in creating the export,
       otherwise a FAILED_PRECONDITION error will be returned. If no filter is
       specified then all entities from the export are imported.
       
      .google.datastore.admin.v1.EntityFilter entity_filter = 4;
      Specified by:
      getEntityFilter in interface ImportEntitiesRequestOrBuilder
      Returns:
      The entityFilter.
    • setEntityFilter

      public ImportEntitiesRequest.Builder setEntityFilter(EntityFilter value)
       Optionally specify which kinds/namespaces are to be imported. If provided,
       the list must be a subset of the EntityFilter used in creating the export,
       otherwise a FAILED_PRECONDITION error will be returned. If no filter is
       specified then all entities from the export are imported.
       
      .google.datastore.admin.v1.EntityFilter entity_filter = 4;
    • setEntityFilter

      public ImportEntitiesRequest.Builder setEntityFilter(EntityFilter.Builder builderForValue)
       Optionally specify which kinds/namespaces are to be imported. If provided,
       the list must be a subset of the EntityFilter used in creating the export,
       otherwise a FAILED_PRECONDITION error will be returned. If no filter is
       specified then all entities from the export are imported.
       
      .google.datastore.admin.v1.EntityFilter entity_filter = 4;
    • mergeEntityFilter

      public ImportEntitiesRequest.Builder mergeEntityFilter(EntityFilter value)
       Optionally specify which kinds/namespaces are to be imported. If provided,
       the list must be a subset of the EntityFilter used in creating the export,
       otherwise a FAILED_PRECONDITION error will be returned. If no filter is
       specified then all entities from the export are imported.
       
      .google.datastore.admin.v1.EntityFilter entity_filter = 4;
    • clearEntityFilter

      public ImportEntitiesRequest.Builder clearEntityFilter()
       Optionally specify which kinds/namespaces are to be imported. If provided,
       the list must be a subset of the EntityFilter used in creating the export,
       otherwise a FAILED_PRECONDITION error will be returned. If no filter is
       specified then all entities from the export are imported.
       
      .google.datastore.admin.v1.EntityFilter entity_filter = 4;
    • getEntityFilterBuilder

      public EntityFilter.Builder getEntityFilterBuilder()
       Optionally specify which kinds/namespaces are to be imported. If provided,
       the list must be a subset of the EntityFilter used in creating the export,
       otherwise a FAILED_PRECONDITION error will be returned. If no filter is
       specified then all entities from the export are imported.
       
      .google.datastore.admin.v1.EntityFilter entity_filter = 4;
    • getEntityFilterOrBuilder

      public EntityFilterOrBuilder getEntityFilterOrBuilder()
       Optionally specify which kinds/namespaces are to be imported. If provided,
       the list must be a subset of the EntityFilter used in creating the export,
       otherwise a FAILED_PRECONDITION error will be returned. If no filter is
       specified then all entities from the export are imported.
       
      .google.datastore.admin.v1.EntityFilter entity_filter = 4;
      Specified by:
      getEntityFilterOrBuilder in interface ImportEntitiesRequestOrBuilder
    • setUnknownFields

      public final ImportEntitiesRequest.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<ImportEntitiesRequest.Builder>
    • mergeUnknownFields

      public final ImportEntitiesRequest.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<ImportEntitiesRequest.Builder>