Class AssetSource (0.2.0)

public final class AssetSource extends GeneratedMessageV3 implements AssetSourceOrBuilder

The source of the asset.

Protobuf type google.cloud.visionai.v1.AssetSource

Static Fields

ASSET_CONTENT_DATA_FIELD_NUMBER

public static final int ASSET_CONTENT_DATA_FIELD_NUMBER
Field Value
Type Description
int

ASSET_GCS_SOURCE_FIELD_NUMBER

public static final int ASSET_GCS_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AssetSource getDefaultInstance()
Returns
Type Description
AssetSource

getDescriptor()

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

newBuilder()

public static AssetSource.Builder newBuilder()
Returns
Type Description
AssetSource.Builder

newBuilder(AssetSource prototype)

public static AssetSource.Builder newBuilder(AssetSource prototype)
Parameter
Name Description
prototype AssetSource
Returns
Type Description
AssetSource.Builder

parseDelimitedFrom(InputStream input)

public static AssetSource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AssetSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssetSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssetSource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AssetSource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AssetSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AssetSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssetSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AssetSource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AssetSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AssetSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssetSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AssetSource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AssetSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AssetSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssetSource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AssetSource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AssetSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssetSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssetSource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AssetSource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AssetSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AssetSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssetSource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AssetSource> parser()
Returns
Type Description
Parser<AssetSource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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.

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

getParserForType()

public Parser<AssetSource> getParserForType()
Returns
Type Description
Parser<AssetSource>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AssetSource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AssetSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException