public static final class ImportAssetsRequest.Builder extends GeneratedMessage.Builder<ImportAssetsRequest.Builder> implements ImportAssetsRequestOrBuilderThe request message for ImportAssets.
Protobuf type google.cloud.visionai.v1.ImportAssetsRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ImportAssetsRequest.BuilderImplements
ImportAssetsRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ImportAssetsRequest build()| Returns | |
|---|---|
| Type | Description |
ImportAssetsRequest |
|
buildPartial()
public ImportAssetsRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
ImportAssetsRequest |
|
clear()
public ImportAssetsRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
ImportAssetsRequest.Builder |
|
clearAssetsGcsUri()
public ImportAssetsRequest.Builder clearAssetsGcsUri()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 |
ImportAssetsRequest.Builder |
This builder for chaining. |
clearParent()
public ImportAssetsRequest.Builder clearParent() 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 |
ImportAssetsRequest.Builder |
This builder for chaining. |
clearSource()
public ImportAssetsRequest.Builder clearSource()| Returns | |
|---|---|
| Type | Description |
ImportAssetsRequest.Builder |
|
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ImportAssetsRequest other)
public ImportAssetsRequest.Builder mergeFrom(ImportAssetsRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
ImportAssetsRequest |
| Returns | |
|---|---|
| Type | Description |
ImportAssetsRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ImportAssetsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ImportAssetsRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ImportAssetsRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ImportAssetsRequest.Builder |
|
setAssetsGcsUri(String value)
public ImportAssetsRequest.Builder setAssetsGcsUri(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe assetsGcsUri to set. |
| Returns | |
|---|---|
| Type | Description |
ImportAssetsRequest.Builder |
This builder for chaining. |
setAssetsGcsUriBytes(ByteString value)
public ImportAssetsRequest.Builder setAssetsGcsUriBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for assetsGcsUri to set. |
| Returns | |
|---|---|
| Type | Description |
ImportAssetsRequest.Builder |
This builder for chaining. |
setParent(String value)
public ImportAssetsRequest.Builder setParent(String value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
ImportAssetsRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public ImportAssetsRequest.Builder setParentBytes(ByteString value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
ImportAssetsRequest.Builder |
This builder for chaining. |