Class AssetSource.AssetContentData.Builder (0.10.0)

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

The content of the asset.

Protobuf type google.cloud.visionai.v1.AssetSource.AssetContentData

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AssetSource.AssetContentData build()
Returns
Type Description
AssetSource.AssetContentData

buildPartial()

public AssetSource.AssetContentData buildPartial()
Returns
Type Description
AssetSource.AssetContentData

clear()

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

clearAssetContentData()

public AssetSource.AssetContentData.Builder clearAssetContentData()

bytes asset_content_data = 1;

Returns
Type Description
AssetSource.AssetContentData.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAssetContentData()

public ByteString getAssetContentData()

bytes asset_content_data = 1;

Returns
Type Description
ByteString

The assetContentData.

getDefaultInstanceForType()

public AssetSource.AssetContentData getDefaultInstanceForType()
Returns
Type Description
AssetSource.AssetContentData

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AssetSource.AssetContentData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAssetContentData(ByteString value)

public AssetSource.AssetContentData.Builder setAssetContentData(ByteString value)

bytes asset_content_data = 1;

Parameter
Name Description
value ByteString

The assetContentData to set.

Returns
Type Description
AssetSource.AssetContentData.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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