public final class ImportAssetsRequest extends GeneratedMessageV3 implements ImportAssetsRequestOrBuilder
The request message for ImportAssets.
Protobuf type google.cloud.visionai.v1.ImportAssetsRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static 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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ImportAssetsRequest.Builder newBuilder()
newBuilder(ImportAssetsRequest prototype)
public static ImportAssetsRequest.Builder newBuilder(ImportAssetsRequest prototype)
public static ImportAssetsRequest parseDelimitedFrom(InputStream input)
public static ImportAssetsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ImportAssetsRequest parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ImportAssetsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ImportAssetsRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ImportAssetsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ImportAssetsRequest parseFrom(CodedInputStream input)
public static ImportAssetsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ImportAssetsRequest parseFrom(InputStream input)
public static ImportAssetsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ImportAssetsRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ImportAssetsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ImportAssetsRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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()
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()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getSourceCase()
public ImportAssetsRequest.SourceCase getSourceCase()
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()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ImportAssetsRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ImportAssetsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public ImportAssetsRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides