public static final class ImportAssetsRequest.Builder extends GeneratedMessageV3.Builder<ImportAssetsRequest.Builder> implements ImportAssetsRequestOrBuilder
The request message for ImportAssets.
Protobuf type google.cloud.visionai.v1.ImportAssetsRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImportAssetsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ImportAssetsRequest build()
buildPartial()
public ImportAssetsRequest buildPartial()
clear()
public ImportAssetsRequest.Builder clear()
Overrides
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;
clearField(Descriptors.FieldDescriptor field)
public ImportAssetsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ImportAssetsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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) = { ... }
clearSource()
public ImportAssetsRequest.Builder clearSource()
clone()
public ImportAssetsRequest.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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()
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ImportAssetsRequest other)
public ImportAssetsRequest.Builder mergeFrom(ImportAssetsRequest other)
public ImportAssetsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ImportAssetsRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImportAssetsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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 |
String
The assetsGcsUri to set.
|
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 |
ByteString
The bytes for assetsGcsUri to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public ImportAssetsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 |
String
The parent to set.
|
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 |
ByteString
The bytes for parent to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImportAssetsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ImportAssetsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides