Class ClipAssetRequest.Builder (0.11.0)

public static final class ClipAssetRequest.Builder extends GeneratedMessageV3.Builder<ClipAssetRequest.Builder> implements ClipAssetRequestOrBuilder

Request message for ClipAsset API.

Protobuf type google.cloud.visionai.v1.ClipAssetRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ClipAssetRequest build()
Returns
Type Description
ClipAssetRequest

buildPartial()

public ClipAssetRequest buildPartial()
Returns
Type Description
ClipAssetRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public ClipAssetRequest.Builder clearName()

Required. The resource name of the asset to request clips for. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}

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

Returns
Type Description
ClipAssetRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTemporalPartition()

public ClipAssetRequest.Builder clearTemporalPartition()

Required. The time range to request clips for.

.google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ClipAssetRequest.Builder

clone()

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

getDefaultInstanceForType()

public ClipAssetRequest getDefaultInstanceForType()
Returns
Type Description
ClipAssetRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The resource name of the asset to request clips for. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the asset to request clips for. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}

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

Returns
Type Description
ByteString

The bytes for name.

getTemporalPartition()

public Partition.TemporalPartition getTemporalPartition()

Required. The time range to request clips for.

.google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Partition.TemporalPartition

The temporalPartition.

getTemporalPartitionBuilder()

public Partition.TemporalPartition.Builder getTemporalPartitionBuilder()

Required. The time range to request clips for.

.google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Partition.TemporalPartition.Builder

getTemporalPartitionOrBuilder()

public Partition.TemporalPartitionOrBuilder getTemporalPartitionOrBuilder()

Required. The time range to request clips for.

.google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Partition.TemporalPartitionOrBuilder

hasTemporalPartition()

public boolean hasTemporalPartition()

Required. The time range to request clips for.

.google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the temporalPartition field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ClipAssetRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTemporalPartition(Partition.TemporalPartition value)

public ClipAssetRequest.Builder mergeTemporalPartition(Partition.TemporalPartition value)

Required. The time range to request clips for.

.google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Partition.TemporalPartition
Returns
Type Description
ClipAssetRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ClipAssetRequest.Builder setName(String value)

Required. The resource name of the asset to request clips for. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ClipAssetRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ClipAssetRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the asset to request clips for. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ClipAssetRequest.Builder

This builder for chaining.

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

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

setTemporalPartition(Partition.TemporalPartition value)

public ClipAssetRequest.Builder setTemporalPartition(Partition.TemporalPartition value)

Required. The time range to request clips for.

.google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Partition.TemporalPartition
Returns
Type Description
ClipAssetRequest.Builder

setTemporalPartition(Partition.TemporalPartition.Builder builderForValue)

public ClipAssetRequest.Builder setTemporalPartition(Partition.TemporalPartition.Builder builderForValue)

Required. The time range to request clips for.

.google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Partition.TemporalPartition.Builder
Returns
Type Description
ClipAssetRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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