Class AssetSource.Builder (0.11.0)

public static final class AssetSource.Builder extends GeneratedMessageV3.Builder<AssetSource.Builder> implements AssetSourceOrBuilder

The source of the asset.

Protobuf type google.cloud.visionai.v1.AssetSource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AssetSource build()
Returns
Type Description
AssetSource

buildPartial()

public AssetSource buildPartial()
Returns
Type Description
AssetSource

clear()

public AssetSource.Builder clear()
Returns
Type Description
AssetSource.Builder
Overrides

clearAssetContentData()

public AssetSource.Builder clearAssetContentData()

The source of the asset is from content bytes.

.google.cloud.visionai.v1.AssetSource.AssetContentData asset_content_data = 2;

Returns
Type Description
AssetSource.Builder

clearAssetGcsSource()

public AssetSource.Builder clearAssetGcsSource()

The source of the asset is from Cloud Storage.

.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 1;

Returns
Type Description
AssetSource.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public AssetSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AssetSource.Builder
Overrides

clearSourceForm()

public AssetSource.Builder clearSourceForm()
Returns
Type Description
AssetSource.Builder

clone()

public AssetSource.Builder clone()
Returns
Type Description
AssetSource.Builder
Overrides

getAssetContentData()

public AssetSource.AssetContentData getAssetContentData()

The source of the asset is from content bytes.

.google.cloud.visionai.v1.AssetSource.AssetContentData asset_content_data = 2;

Returns
Type Description
AssetSource.AssetContentData

The assetContentData.

getAssetContentDataBuilder()

public AssetSource.AssetContentData.Builder getAssetContentDataBuilder()

The source of the asset is from content bytes.

.google.cloud.visionai.v1.AssetSource.AssetContentData asset_content_data = 2;

Returns
Type Description
AssetSource.AssetContentData.Builder

getAssetContentDataOrBuilder()

public AssetSource.AssetContentDataOrBuilder getAssetContentDataOrBuilder()

The source of the asset is from content bytes.

.google.cloud.visionai.v1.AssetSource.AssetContentData asset_content_data = 2;

Returns
Type Description
AssetSource.AssetContentDataOrBuilder

getAssetGcsSource()

public AssetSource.AssetGcsSource getAssetGcsSource()

The source of the asset is from Cloud Storage.

.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 1;

Returns
Type Description
AssetSource.AssetGcsSource

The assetGcsSource.

getAssetGcsSourceBuilder()

public AssetSource.AssetGcsSource.Builder getAssetGcsSourceBuilder()

The source of the asset is from Cloud Storage.

.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 1;

Returns
Type Description
AssetSource.AssetGcsSource.Builder

getAssetGcsSourceOrBuilder()

public AssetSource.AssetGcsSourceOrBuilder getAssetGcsSourceOrBuilder()

The source of the asset is from Cloud Storage.

.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 1;

Returns
Type Description
AssetSource.AssetGcsSourceOrBuilder

getDefaultInstanceForType()

public AssetSource getDefaultInstanceForType()
Returns
Type Description
AssetSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSourceFormCase()

public AssetSource.SourceFormCase getSourceFormCase()
Returns
Type Description
AssetSource.SourceFormCase

hasAssetContentData()

public boolean hasAssetContentData()

The source of the asset is from content bytes.

.google.cloud.visionai.v1.AssetSource.AssetContentData asset_content_data = 2;

Returns
Type Description
boolean

Whether the assetContentData field is set.

hasAssetGcsSource()

public boolean hasAssetGcsSource()

The source of the asset is from Cloud Storage.

.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 1;

Returns
Type Description
boolean

Whether the assetGcsSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAssetContentData(AssetSource.AssetContentData value)

public AssetSource.Builder mergeAssetContentData(AssetSource.AssetContentData value)

The source of the asset is from content bytes.

.google.cloud.visionai.v1.AssetSource.AssetContentData asset_content_data = 2;

Parameter
Name Description
value AssetSource.AssetContentData
Returns
Type Description
AssetSource.Builder

mergeAssetGcsSource(AssetSource.AssetGcsSource value)

public AssetSource.Builder mergeAssetGcsSource(AssetSource.AssetGcsSource value)

The source of the asset is from Cloud Storage.

.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 1;

Parameter
Name Description
value AssetSource.AssetGcsSource
Returns
Type Description
AssetSource.Builder

mergeFrom(AssetSource other)

public AssetSource.Builder mergeFrom(AssetSource other)
Parameter
Name Description
other AssetSource
Returns
Type Description
AssetSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AssetSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssetSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AssetSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AssetSource.Builder
Overrides

setAssetContentData(AssetSource.AssetContentData value)

public AssetSource.Builder setAssetContentData(AssetSource.AssetContentData value)

The source of the asset is from content bytes.

.google.cloud.visionai.v1.AssetSource.AssetContentData asset_content_data = 2;

Parameter
Name Description
value AssetSource.AssetContentData
Returns
Type Description
AssetSource.Builder

setAssetContentData(AssetSource.AssetContentData.Builder builderForValue)

public AssetSource.Builder setAssetContentData(AssetSource.AssetContentData.Builder builderForValue)

The source of the asset is from content bytes.

.google.cloud.visionai.v1.AssetSource.AssetContentData asset_content_data = 2;

Parameter
Name Description
builderForValue AssetSource.AssetContentData.Builder
Returns
Type Description
AssetSource.Builder

setAssetGcsSource(AssetSource.AssetGcsSource value)

public AssetSource.Builder setAssetGcsSource(AssetSource.AssetGcsSource value)

The source of the asset is from Cloud Storage.

.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 1;

Parameter
Name Description
value AssetSource.AssetGcsSource
Returns
Type Description
AssetSource.Builder

setAssetGcsSource(AssetSource.AssetGcsSource.Builder builderForValue)

public AssetSource.Builder setAssetGcsSource(AssetSource.AssetGcsSource.Builder builderForValue)

The source of the asset is from Cloud Storage.

.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 1;

Parameter
Name Description
builderForValue AssetSource.AssetGcsSource.Builder
Returns
Type Description
AssetSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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