public static final class ImportDocumentsRequest.Builder extends GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder> implements ImportDocumentsRequestOrBuilder
The request for FirestoreAdmin.ImportDocuments.
Protobuf type google.firestore.admin.v1.ImportDocumentsRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ImportDocumentsRequest.BuilderImplements
ImportDocumentsRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllCollectionIds(Iterable<String> values)
public ImportDocumentsRequest.Builder addAllCollectionIds(Iterable<String> values)
Which collection ids to import. Unspecified means all collections included in the import.
repeated string collection_ids = 2;
Name | Description |
values | Iterable<String> The collectionIds to add. |
Type | Description |
ImportDocumentsRequest.Builder | This builder for chaining. |
addCollectionIds(String value)
public ImportDocumentsRequest.Builder addCollectionIds(String value)
Which collection ids to import. Unspecified means all collections included in the import.
repeated string collection_ids = 2;
Name | Description |
value | String The collectionIds to add. |
Type | Description |
ImportDocumentsRequest.Builder | This builder for chaining. |
addCollectionIdsBytes(ByteString value)
public ImportDocumentsRequest.Builder addCollectionIdsBytes(ByteString value)
Which collection ids to import. Unspecified means all collections included in the import.
repeated string collection_ids = 2;
Name | Description |
value | ByteString The bytes of the collectionIds to add. |
Type | Description |
ImportDocumentsRequest.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImportDocumentsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ImportDocumentsRequest.Builder |
build()
public ImportDocumentsRequest build()
Type | Description |
ImportDocumentsRequest |
buildPartial()
public ImportDocumentsRequest buildPartial()
Type | Description |
ImportDocumentsRequest |
clear()
public ImportDocumentsRequest.Builder clear()
Type | Description |
ImportDocumentsRequest.Builder |
clearCollectionIds()
public ImportDocumentsRequest.Builder clearCollectionIds()
Which collection ids to import. Unspecified means all collections included in the import.
repeated string collection_ids = 2;
Type | Description |
ImportDocumentsRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ImportDocumentsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ImportDocumentsRequest.Builder |
clearInputUriPrefix()
public ImportDocumentsRequest.Builder clearInputUriPrefix()
Location of the exported files. This must match the output_uri_prefix of an ExportDocumentsResponse from an export that has completed successfully. See: google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix.
string input_uri_prefix = 3;
Type | Description |
ImportDocumentsRequest.Builder | This builder for chaining. |
clearName()
public ImportDocumentsRequest.Builder clearName()
Required. Database to import into. Should be of the form:
projects/{project_id}/databases/{database_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ImportDocumentsRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ImportDocumentsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ImportDocumentsRequest.Builder |
clone()
public ImportDocumentsRequest.Builder clone()
Type | Description |
ImportDocumentsRequest.Builder |
getCollectionIds(int index)
public String getCollectionIds(int index)
Which collection ids to import. Unspecified means all collections included in the import.
repeated string collection_ids = 2;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The collectionIds at the given index. |
getCollectionIdsBytes(int index)
public ByteString getCollectionIdsBytes(int index)
Which collection ids to import. Unspecified means all collections included in the import.
repeated string collection_ids = 2;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the collectionIds at the given index. |
getCollectionIdsCount()
public int getCollectionIdsCount()
Which collection ids to import. Unspecified means all collections included in the import.
repeated string collection_ids = 2;
Type | Description |
int | The count of collectionIds. |
getCollectionIdsList()
public ProtocolStringList getCollectionIdsList()
Which collection ids to import. Unspecified means all collections included in the import.
repeated string collection_ids = 2;
Type | Description |
ProtocolStringList | A list containing the collectionIds. |
getDefaultInstanceForType()
public ImportDocumentsRequest getDefaultInstanceForType()
Type | Description |
ImportDocumentsRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getInputUriPrefix()
public String getInputUriPrefix()
Location of the exported files. This must match the output_uri_prefix of an ExportDocumentsResponse from an export that has completed successfully. See: google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix.
string input_uri_prefix = 3;
Type | Description |
String | The inputUriPrefix. |
getInputUriPrefixBytes()
public ByteString getInputUriPrefixBytes()
Location of the exported files. This must match the output_uri_prefix of an ExportDocumentsResponse from an export that has completed successfully. See: google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix.
string input_uri_prefix = 3;
Type | Description |
ByteString | The bytes for inputUriPrefix. |
getName()
public String getName()
Required. Database to import into. Should be of the form:
projects/{project_id}/databases/{database_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Required. Database to import into. Should be of the form:
projects/{project_id}/databases/{database_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ImportDocumentsRequest other)
public ImportDocumentsRequest.Builder mergeFrom(ImportDocumentsRequest other)
Name | Description |
other | ImportDocumentsRequest |
Type | Description |
ImportDocumentsRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ImportDocumentsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ImportDocumentsRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ImportDocumentsRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ImportDocumentsRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImportDocumentsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ImportDocumentsRequest.Builder |
setCollectionIds(int index, String value)
public ImportDocumentsRequest.Builder setCollectionIds(int index, String value)
Which collection ids to import. Unspecified means all collections included in the import.
repeated string collection_ids = 2;
Name | Description |
index | int The index to set the value at. |
value | String The collectionIds to set. |
Type | Description |
ImportDocumentsRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ImportDocumentsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ImportDocumentsRequest.Builder |
setInputUriPrefix(String value)
public ImportDocumentsRequest.Builder setInputUriPrefix(String value)
Location of the exported files. This must match the output_uri_prefix of an ExportDocumentsResponse from an export that has completed successfully. See: google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix.
string input_uri_prefix = 3;
Name | Description |
value | String The inputUriPrefix to set. |
Type | Description |
ImportDocumentsRequest.Builder | This builder for chaining. |
setInputUriPrefixBytes(ByteString value)
public ImportDocumentsRequest.Builder setInputUriPrefixBytes(ByteString value)
Location of the exported files. This must match the output_uri_prefix of an ExportDocumentsResponse from an export that has completed successfully. See: google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix.
string input_uri_prefix = 3;
Name | Description |
value | ByteString The bytes for inputUriPrefix to set. |
Type | Description |
ImportDocumentsRequest.Builder | This builder for chaining. |
setName(String value)
public ImportDocumentsRequest.Builder setName(String value)
Required. Database to import into. Should be of the form:
projects/{project_id}/databases/{database_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | String The name to set. |
Type | Description |
ImportDocumentsRequest.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public ImportDocumentsRequest.Builder setNameBytes(ByteString value)
Required. Database to import into. Should be of the form:
projects/{project_id}/databases/{database_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
ImportDocumentsRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImportDocumentsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ImportDocumentsRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ImportDocumentsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ImportDocumentsRequest.Builder |