public final class ImportEntitiesRequest extends com.google.protobuf.GeneratedMessageV3 implements ImportEntitiesRequestOrBuilder
The request for [google.datastore.admin.v1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1.DatastoreAdmin.ImportEntities].Protobuf type
google.datastore.admin.v1.ImportEntitiesRequest
Modifier and Type | Class and Description |
---|---|
static class |
ImportEntitiesRequest.Builder
The request for
[google.datastore.admin.v1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1.DatastoreAdmin.ImportEntities].
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
ENTITY_FILTER_FIELD_NUMBER |
static int |
INPUT_URL_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
PROJECT_ID_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
containsLabels(String key)
Client-assigned labels.
|
boolean |
equals(Object obj) |
static ImportEntitiesRequest |
getDefaultInstance() |
ImportEntitiesRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
EntityFilter |
getEntityFilter()
Optionally specify which kinds/namespaces are to be imported.
|
EntityFilterOrBuilder |
getEntityFilterOrBuilder()
Optionally specify which kinds/namespaces are to be imported.
|
String |
getInputUrl()
Required.
|
com.google.protobuf.ByteString |
getInputUrlBytes()
Required.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Client-assigned labels.
|
Map<String,String> |
getLabelsMap()
Client-assigned labels.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Client-assigned labels.
|
String |
getLabelsOrThrow(String key)
Client-assigned labels.
|
com.google.protobuf.Parser<ImportEntitiesRequest> |
getParserForType() |
String |
getProjectId()
Required.
|
com.google.protobuf.ByteString |
getProjectIdBytes()
Required.
|
int |
getSerializedSize() |
boolean |
hasEntityFilter()
Optionally specify which kinds/namespaces are to be imported.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static ImportEntitiesRequest.Builder |
newBuilder() |
static ImportEntitiesRequest.Builder |
newBuilder(ImportEntitiesRequest prototype) |
ImportEntitiesRequest.Builder |
newBuilderForType() |
protected ImportEntitiesRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ImportEntitiesRequest |
parseDelimitedFrom(InputStream input) |
static ImportEntitiesRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ImportEntitiesRequest |
parseFrom(byte[] data) |
static ImportEntitiesRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ImportEntitiesRequest |
parseFrom(ByteBuffer data) |
static ImportEntitiesRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ImportEntitiesRequest |
parseFrom(com.google.protobuf.ByteString data) |
static ImportEntitiesRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ImportEntitiesRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ImportEntitiesRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ImportEntitiesRequest |
parseFrom(InputStream input) |
static ImportEntitiesRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ImportEntitiesRequest> |
parser() |
ImportEntitiesRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int PROJECT_ID_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int INPUT_URL_FIELD_NUMBER
public static final int ENTITY_FILTER_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public String getProjectId()
Required. Project ID against which to make the request.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
getProjectId
in interface ImportEntitiesRequestOrBuilder
public com.google.protobuf.ByteString getProjectIdBytes()
Required. Project ID against which to make the request.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
getProjectIdBytes
in interface ImportEntitiesRequestOrBuilder
public int getLabelsCount()
ImportEntitiesRequestOrBuilder
Client-assigned labels.
map<string, string> labels = 2;
getLabelsCount
in interface ImportEntitiesRequestOrBuilder
public boolean containsLabels(String key)
Client-assigned labels.
map<string, string> labels = 2;
containsLabels
in interface ImportEntitiesRequestOrBuilder
@Deprecated public Map<String,String> getLabels()
getLabelsMap()
instead.getLabels
in interface ImportEntitiesRequestOrBuilder
public Map<String,String> getLabelsMap()
Client-assigned labels.
map<string, string> labels = 2;
getLabelsMap
in interface ImportEntitiesRequestOrBuilder
public String getLabelsOrDefault(String key, String defaultValue)
Client-assigned labels.
map<string, string> labels = 2;
getLabelsOrDefault
in interface ImportEntitiesRequestOrBuilder
public String getLabelsOrThrow(String key)
Client-assigned labels.
map<string, string> labels = 2;
getLabelsOrThrow
in interface ImportEntitiesRequestOrBuilder
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];
getInputUrl
in interface ImportEntitiesRequestOrBuilder
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];
getInputUrlBytes
in interface ImportEntitiesRequestOrBuilder
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;
hasEntityFilter
in interface ImportEntitiesRequestOrBuilder
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;
getEntityFilter
in interface ImportEntitiesRequestOrBuilder
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;
getEntityFilterOrBuilder
in interface ImportEntitiesRequestOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static ImportEntitiesRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ImportEntitiesRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ImportEntitiesRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ImportEntitiesRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ImportEntitiesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ImportEntitiesRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ImportEntitiesRequest parseFrom(InputStream input) throws IOException
IOException
public static ImportEntitiesRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ImportEntitiesRequest parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ImportEntitiesRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ImportEntitiesRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static ImportEntitiesRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public ImportEntitiesRequest.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static ImportEntitiesRequest.Builder newBuilder()
public static ImportEntitiesRequest.Builder newBuilder(ImportEntitiesRequest prototype)
public ImportEntitiesRequest.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected ImportEntitiesRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static ImportEntitiesRequest getDefaultInstance()
public static com.google.protobuf.Parser<ImportEntitiesRequest> parser()
public com.google.protobuf.Parser<ImportEntitiesRequest> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public ImportEntitiesRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2023 Google LLC. All rights reserved.