public final class ImportAssetsRequest extends GeneratedMessageV3 implements ImportAssetsRequestOrBuilder
The request message for ImportAssets.
Protobuf type google.cloud.visionai.v1.ImportAssetsRequest
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ImportAssetsRequestImplements
ImportAssetsRequestOrBuilderStatic Fields
ASSETS_GCS_URI_FIELD_NUMBER
public static final int ASSETS_GCS_URI_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static ImportAssetsRequest getDefaultInstance()
Returns | |
---|---|
Type | Description |
ImportAssetsRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static ImportAssetsRequest.Builder newBuilder()
Returns | |
---|---|
Type | Description |
ImportAssetsRequest.Builder |
newBuilder(ImportAssetsRequest prototype)
public static ImportAssetsRequest.Builder newBuilder(ImportAssetsRequest prototype)
Parameter | |
---|---|
Name | Description |
prototype |
ImportAssetsRequest |
Returns | |
---|---|
Type | Description |
ImportAssetsRequest.Builder |
parseDelimitedFrom(InputStream input)
public static ImportAssetsRequest parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
ImportAssetsRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ImportAssetsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ImportAssetsRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static ImportAssetsRequest parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
ImportAssetsRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ImportAssetsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ImportAssetsRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static ImportAssetsRequest parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
ImportAssetsRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ImportAssetsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ImportAssetsRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static ImportAssetsRequest parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
ImportAssetsRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ImportAssetsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ImportAssetsRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static ImportAssetsRequest parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
ImportAssetsRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ImportAssetsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ImportAssetsRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static ImportAssetsRequest parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
ImportAssetsRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ImportAssetsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ImportAssetsRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<ImportAssetsRequest> parser()
Returns | |
---|---|
Type | Description |
Parser<ImportAssetsRequest> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getAssetsGcsUri()
public String getAssetsGcsUri()
The file contains all assets information to be imported.
- The file is in JSONL format.
- Each line corresponding to one asset.
- Each line will be converted into InputImageAsset proto.
string assets_gcs_uri = 2;
Returns | |
---|---|
Type | Description |
String |
The assetsGcsUri. |
getAssetsGcsUriBytes()
public ByteString getAssetsGcsUriBytes()
The file contains all assets information to be imported.
- The file is in JSONL format.
- Each line corresponding to one asset.
- Each line will be converted into InputImageAsset proto.
string assets_gcs_uri = 2;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for assetsGcsUri. |
getDefaultInstanceForType()
public ImportAssetsRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ImportAssetsRequest |
getParent()
public String getParent()
Required. The parent corpus resource where the assets will be imported.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. The parent corpus resource where the assets will be imported.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for parent. |
getParserForType()
public Parser<ImportAssetsRequest> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<ImportAssetsRequest> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getSourceCase()
public ImportAssetsRequest.SourceCase getSourceCase()
Returns | |
---|---|
Type | Description |
ImportAssetsRequest.SourceCase |
hasAssetsGcsUri()
public boolean hasAssetsGcsUri()
The file contains all assets information to be imported.
- The file is in JSONL format.
- Each line corresponding to one asset.
- Each line will be converted into InputImageAsset proto.
string assets_gcs_uri = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the assetsGcsUri field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public ImportAssetsRequest.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
ImportAssetsRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ImportAssetsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
ImportAssetsRequest.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public ImportAssetsRequest.Builder toBuilder()
Returns | |
---|---|
Type | Description |
ImportAssetsRequest.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |