Class EventConfig.Builder (0.175.0)

public static final class EventConfig.Builder extends GeneratedMessageV3.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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EventConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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