Class EventConfig.Builder (0.203.0)

public static final class EventConfig.Builder extends GeneratedMessage.Builder<EventConfig.Builder> implements EventConfigOrBuilder

Config for video event human labeling task.

Protobuf type google.cloud.datalabeling.v1beta1.EventConfig

Static Methods

getDescriptor()

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

Methods

addAllAnnotationSpecSets(Iterable<String> values)

public EventConfig.Builder addAllAnnotationSpecSets(Iterable<String> values)

Required. The list of annotation spec set resource name. Similar to video classification, we support selecting event from multiple AnnotationSpecSet at the same time.

repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The annotationSpecSets to add.

Returns
Type Description
EventConfig.Builder

This builder for chaining.

addAnnotationSpecSets(String value)

public EventConfig.Builder addAnnotationSpecSets(String value)

Required. The list of annotation spec set resource name. Similar to video classification, we support selecting event from multiple AnnotationSpecSet at the same time.

repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The annotationSpecSets to add.

Returns
Type Description
EventConfig.Builder

This builder for chaining.

addAnnotationSpecSetsBytes(ByteString value)

public EventConfig.Builder addAnnotationSpecSetsBytes(ByteString value)

Required. The list of annotation spec set resource name. Similar to video classification, we support selecting event from multiple AnnotationSpecSet at the same time.

repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the annotationSpecSets to add.

Returns
Type Description
EventConfig.Builder

This builder for chaining.

build()

public EventConfig build()
Returns
Type Description
EventConfig

buildPartial()

public EventConfig buildPartial()
Returns
Type Description
EventConfig

clear()

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

clearAnnotationSpecSets()

public EventConfig.Builder clearAnnotationSpecSets()

Required. The list of annotation spec set resource name. Similar to video classification, we support selecting event from multiple AnnotationSpecSet at the same time.

repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EventConfig.Builder

This builder for chaining.

getAnnotationSpecSets(int index)

public String getAnnotationSpecSets(int index)

Required. The list of annotation spec set resource name. Similar to video classification, we support selecting event from multiple AnnotationSpecSet at the same time.

repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The annotationSpecSets at the given index.

getAnnotationSpecSetsBytes(int index)

public ByteString getAnnotationSpecSetsBytes(int index)

Required. The list of annotation spec set resource name. Similar to video classification, we support selecting event from multiple AnnotationSpecSet at the same time.

repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the annotationSpecSets at the given index.

getAnnotationSpecSetsCount()

public int getAnnotationSpecSetsCount()

Required. The list of annotation spec set resource name. Similar to video classification, we support selecting event from multiple AnnotationSpecSet at the same time.

repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of annotationSpecSets.

getAnnotationSpecSetsList()

public ProtocolStringList getAnnotationSpecSetsList()

Required. The list of annotation spec set resource name. Similar to video classification, we support selecting event from multiple AnnotationSpecSet at the same time.

repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the annotationSpecSets.

getDefaultInstanceForType()

public EventConfig getDefaultInstanceForType()
Returns
Type Description
EventConfig

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EventConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAnnotationSpecSets(int index, String value)

public EventConfig.Builder setAnnotationSpecSets(int index, String value)

Required. The list of annotation spec set resource name. Similar to video classification, we support selecting event from multiple AnnotationSpecSet at the same time.

repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The annotationSpecSets to set.

Returns
Type Description
EventConfig.Builder

This builder for chaining.