Class 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 Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField 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

        public 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

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

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • 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>