Class IngestAssetRequest.Config.Builder (0.5.0)

public static final class IngestAssetRequest.Config.Builder extends GeneratedMessageV3.Builder<IngestAssetRequest.Config.Builder> implements IngestAssetRequest.ConfigOrBuilder

Configuration for the data.

Protobuf type google.cloud.visionai.v1.IngestAssetRequest.Config

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public IngestAssetRequest.Config build()
Returns
Type Description
IngestAssetRequest.Config

buildPartial()

public IngestAssetRequest.Config buildPartial()
Returns
Type Description
IngestAssetRequest.Config

clear()

public IngestAssetRequest.Config.Builder clear()
Returns
Type Description
IngestAssetRequest.Config.Builder
Overrides

clearAsset()

public IngestAssetRequest.Config.Builder clearAsset()

Required. The resource name of the asset that the ingested data belongs to.

string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
IngestAssetRequest.Config.Builder

This builder for chaining.

clearDataType()

public IngestAssetRequest.Config.Builder clearDataType()
Returns
Type Description
IngestAssetRequest.Config.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVideoType()

public IngestAssetRequest.Config.Builder clearVideoType()

Type information for video data.

.google.cloud.visionai.v1.IngestAssetRequest.Config.VideoType video_type = 2;

Returns
Type Description
IngestAssetRequest.Config.Builder

clone()

public IngestAssetRequest.Config.Builder clone()
Returns
Type Description
IngestAssetRequest.Config.Builder
Overrides

getAsset()

public String getAsset()

Required. The resource name of the asset that the ingested data belongs to.

string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The asset.

getAssetBytes()

public ByteString getAssetBytes()

Required. The resource name of the asset that the ingested data belongs to.

string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for asset.

getDataTypeCase()

public IngestAssetRequest.Config.DataTypeCase getDataTypeCase()
Returns
Type Description
IngestAssetRequest.Config.DataTypeCase

getDefaultInstanceForType()

public IngestAssetRequest.Config getDefaultInstanceForType()
Returns
Type Description
IngestAssetRequest.Config

getDescriptorForType()

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

getVideoType()

public IngestAssetRequest.Config.VideoType getVideoType()

Type information for video data.

.google.cloud.visionai.v1.IngestAssetRequest.Config.VideoType video_type = 2;

Returns
Type Description
IngestAssetRequest.Config.VideoType

The videoType.

getVideoTypeBuilder()

public IngestAssetRequest.Config.VideoType.Builder getVideoTypeBuilder()

Type information for video data.

.google.cloud.visionai.v1.IngestAssetRequest.Config.VideoType video_type = 2;

Returns
Type Description
IngestAssetRequest.Config.VideoType.Builder

getVideoTypeOrBuilder()

public IngestAssetRequest.Config.VideoTypeOrBuilder getVideoTypeOrBuilder()

Type information for video data.

.google.cloud.visionai.v1.IngestAssetRequest.Config.VideoType video_type = 2;

Returns
Type Description
IngestAssetRequest.Config.VideoTypeOrBuilder

hasVideoType()

public boolean hasVideoType()

Type information for video data.

.google.cloud.visionai.v1.IngestAssetRequest.Config.VideoType video_type = 2;

Returns
Type Description
boolean

Whether the videoType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(IngestAssetRequest.Config other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVideoType(IngestAssetRequest.Config.VideoType value)

public IngestAssetRequest.Config.Builder mergeVideoType(IngestAssetRequest.Config.VideoType value)

Type information for video data.

.google.cloud.visionai.v1.IngestAssetRequest.Config.VideoType video_type = 2;

Parameter
Name Description
value IngestAssetRequest.Config.VideoType
Returns
Type Description
IngestAssetRequest.Config.Builder

setAsset(String value)

public IngestAssetRequest.Config.Builder setAsset(String value)

Required. The resource name of the asset that the ingested data belongs to.

string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The asset to set.

Returns
Type Description
IngestAssetRequest.Config.Builder

This builder for chaining.

setAssetBytes(ByteString value)

public IngestAssetRequest.Config.Builder setAssetBytes(ByteString value)

Required. The resource name of the asset that the ingested data belongs to.

string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for asset to set.

Returns
Type Description
IngestAssetRequest.Config.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVideoType(IngestAssetRequest.Config.VideoType value)

public IngestAssetRequest.Config.Builder setVideoType(IngestAssetRequest.Config.VideoType value)

Type information for video data.

.google.cloud.visionai.v1.IngestAssetRequest.Config.VideoType video_type = 2;

Parameter
Name Description
value IngestAssetRequest.Config.VideoType
Returns
Type Description
IngestAssetRequest.Config.Builder

setVideoType(IngestAssetRequest.Config.VideoType.Builder builderForValue)

public IngestAssetRequest.Config.Builder setVideoType(IngestAssetRequest.Config.VideoType.Builder builderForValue)

Type information for video data.

.google.cloud.visionai.v1.IngestAssetRequest.Config.VideoType video_type = 2;

Parameter
Name Description
builderForValue IngestAssetRequest.Config.VideoType.Builder
Returns
Type Description
IngestAssetRequest.Config.Builder