Class EventConfig.Builder (0.147.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
TypeDescription
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
NameDescription
valuesIterable<String>

The annotationSpecSets to add.

Returns
TypeDescription
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
NameDescription
valueString

The annotationSpecSets to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the annotationSpecSets to add.

Returns
TypeDescription
EventConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EventConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EventConfig.Builder
Overrides

build()

public EventConfig build()
Returns
TypeDescription
EventConfig

buildPartial()

public EventConfig buildPartial()
Returns
TypeDescription
EventConfig

clear()

public EventConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
EventConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EventConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
EventConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public EventConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
EventConfig.Builder
Overrides

clone()

public EventConfig.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the annotationSpecSets.

getDefaultInstanceForType()

public EventConfig getDefaultInstanceForType()
Returns
TypeDescription
EventConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EventConfig other)

public EventConfig.Builder mergeFrom(EventConfig other)
Parameter
NameDescription
otherEventConfig
Returns
TypeDescription
EventConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EventConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public EventConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
EventConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EventConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The annotationSpecSets to set.

Returns
TypeDescription
EventConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public EventConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EventConfig.Builder
Overrides

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

public EventConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EventConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final EventConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EventConfig.Builder
Overrides