Class ImportAssetsRequest.Builder (0.6.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportAssetsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportAssetsRequest.Builder
Overrides

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
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;

Returns
Type Description
ImportAssetsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ImportAssetsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ImportAssetsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportAssetsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ImportAssetsRequest.Builder
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) = { ... }

Returns
Type Description
ImportAssetsRequest.Builder

This builder for chaining.

clearSource()

public ImportAssetsRequest.Builder clearSource()
Returns
Type Description
ImportAssetsRequest.Builder

clone()

public ImportAssetsRequest.Builder clone()
Returns
Type Description
ImportAssetsRequest.Builder
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()
Returns
Type Description
ImportAssetsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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()
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ImportAssetsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ImportAssetsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportAssetsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportAssetsRequest.Builder
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.

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 ByteString

The bytes for assetsGcsUri to set.

Returns
Type Description
ImportAssetsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ImportAssetsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportAssetsRequest.Builder
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.

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 ByteString

The bytes for parent to set.

Returns
Type Description
ImportAssetsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImportAssetsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImportAssetsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportAssetsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportAssetsRequest.Builder
Overrides