Send feedback
Class ImportAssetsRequest.Builder (0.2.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.2.0 keyboard_arrow_down
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]