Class Event.Builder (0.14.1)

public static final class Event.Builder extends GeneratedMessageV3.Builder<Event.Builder> implements EventOrBuilder

Message describing the Event object.

Protobuf type google.events.cloud.visionai.v1.Event

Implements

EventOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Event build()
Returns
TypeDescription
Event

buildPartial()

public Event buildPartial()
Returns
TypeDescription
Event

clear()

public Event.Builder clear()
Returns
TypeDescription
Event.Builder
Overrides

clearAlignmentClock()

public Event.Builder clearAlignmentClock()

The clock used for joining streams.

.google.events.cloud.visionai.v1.Event.Clock alignment_clock = 6;

Returns
TypeDescription
Event.Builder

This builder for chaining.

clearAnnotations()

public Event.Builder clearAnnotations()
Returns
TypeDescription
Event.Builder

clearCreateTime()

public Event.Builder clearCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Event.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGracePeriod()

public Event.Builder clearGracePeriod()

Grace period for cleaning up the event. This is the time the controller waits for before deleting the event. During this period, if there is any active channel on the event. The deletion of the event after grace_period will be ignored.

.google.protobuf.Duration grace_period = 7;

Returns
TypeDescription
Event.Builder

clearLabels()

public Event.Builder clearLabels()
Returns
TypeDescription
Event.Builder

clearName()

public Event.Builder clearName()

Name of the resource.

string name = 1;

Returns
TypeDescription
Event.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public Event.Builder clearUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Event.Builder

clone()

public Event.Builder clone()
Returns
TypeDescription
Event.Builder
Overrides

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAlignmentClock()

public Event.Clock getAlignmentClock()

The clock used for joining streams.

.google.events.cloud.visionai.v1.Event.Clock alignment_clock = 6;

Returns
TypeDescription
Event.Clock

The alignmentClock.

getAlignmentClockValue()

public int getAlignmentClockValue()

The clock used for joining streams.

.google.events.cloud.visionai.v1.Event.Clock alignment_clock = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for alignmentClock.

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Returns
TypeDescription
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getCreateTime()

public Timestamp getCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Event getDefaultInstanceForType()
Returns
TypeDescription
Event

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGracePeriod()

public Duration getGracePeriod()

Grace period for cleaning up the event. This is the time the controller waits for before deleting the event. During this period, if there is any active channel on the event. The deletion of the event after grace_period will be ignored.

.google.protobuf.Duration grace_period = 7;

Returns
TypeDescription
Duration

The gracePeriod.

getGracePeriodBuilder()

public Duration.Builder getGracePeriodBuilder()

Grace period for cleaning up the event. This is the time the controller waits for before deleting the event. During this period, if there is any active channel on the event. The deletion of the event after grace_period will be ignored.

.google.protobuf.Duration grace_period = 7;

Returns
TypeDescription
Builder

getGracePeriodOrBuilder()

public DurationOrBuilder getGracePeriodOrBuilder()

Grace period for cleaning up the event. This is the time the controller waits for before deleting the event. During this period, if there is any active channel on the event. The deletion of the event after grace_period will be ignored.

.google.protobuf.Duration grace_period = 7;

Returns
TypeDescription
DurationOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableAnnotations()

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Name of the resource.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the resource.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasGracePeriod()

public boolean hasGracePeriod()

Grace period for cleaning up the event. This is the time the controller waits for before deleting the event. During this period, if there is any active channel on the event. The deletion of the event after grace_period will be ignored.

.google.protobuf.Duration grace_period = 7;

Returns
TypeDescription
boolean

Whether the gracePeriod field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Event.Builder mergeCreateTime(Timestamp value)

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Event.Builder

mergeFrom(Event other)

public Event.Builder mergeFrom(Event other)
Parameter
NameDescription
otherEvent
Returns
TypeDescription
Event.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGracePeriod(Duration value)

public Event.Builder mergeGracePeriod(Duration value)

Grace period for cleaning up the event. This is the time the controller waits for before deleting the event. During this period, if there is any active channel on the event. The deletion of the event after grace_period will be ignored.

.google.protobuf.Duration grace_period = 7;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Event.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Event.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Event.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Event.Builder mergeUpdateTime(Timestamp value)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Event.Builder

putAllAnnotations(Map<String,String> values)

public Event.Builder putAllAnnotations(Map<String,String> values)

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Event.Builder

putAllLabels(Map<String,String> values)

public Event.Builder putAllLabels(Map<String,String> values)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Event.Builder

putAnnotations(String key, String value)

public Event.Builder putAnnotations(String key, String value)

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Event.Builder

putLabels(String key, String value)

public Event.Builder putLabels(String key, String value)

Labels as key value pairs.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Event.Builder

removeAnnotations(String key)

public Event.Builder removeAnnotations(String key)

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
Event.Builder

removeLabels(String key)

public Event.Builder removeLabels(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
Event.Builder

setAlignmentClock(Event.Clock value)

public Event.Builder setAlignmentClock(Event.Clock value)

The clock used for joining streams.

.google.events.cloud.visionai.v1.Event.Clock alignment_clock = 6;

Parameter
NameDescription
valueEvent.Clock

The alignmentClock to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setAlignmentClockValue(int value)

public Event.Builder setAlignmentClockValue(int value)

The clock used for joining streams.

.google.events.cloud.visionai.v1.Event.Clock alignment_clock = 6;

Parameter
NameDescription
valueint

The enum numeric value on the wire for alignmentClock to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Event.Builder setCreateTime(Timestamp value)

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Event.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Event.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Event.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGracePeriod(Duration value)

public Event.Builder setGracePeriod(Duration value)

Grace period for cleaning up the event. This is the time the controller waits for before deleting the event. During this period, if there is any active channel on the event. The deletion of the event after grace_period will be ignored.

.google.protobuf.Duration grace_period = 7;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Event.Builder

setGracePeriod(Duration.Builder builderForValue)

public Event.Builder setGracePeriod(Duration.Builder builderForValue)

Grace period for cleaning up the event. This is the time the controller waits for before deleting the event. During this period, if there is any active channel on the event. The deletion of the event after grace_period will be ignored.

.google.protobuf.Duration grace_period = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Event.Builder

setName(String value)

public Event.Builder setName(String value)

Name of the resource.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Event.Builder setNameBytes(ByteString value)

Name of the resource.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Event.Builder setUpdateTime(Timestamp value)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Event.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Event.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Event.Builder