Class Event.Builder (0.3.0)

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

Message describing the Event object.

Protobuf type google.cloud.visionai.v1.Event

Implements

EventOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Event build()
Returns
Type Description
Event

buildPartial()

public Event buildPartial()
Returns
Type Description
Event

clear()

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

clearAlignmentClock()

public Event.Builder clearAlignmentClock()

The clock used for joining streams.

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

Returns
Type Description
Event.Builder

This builder for chaining.

clearAnnotations()

public Event.Builder clearAnnotations()
Returns
Type Description
Event.Builder

clearCreateTime()

public Event.Builder clearCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Event.Builder

clearField(Descriptors.FieldDescriptor field)

public Event.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
Event.Builder

clearLabels()

public Event.Builder clearLabels()
Returns
Type Description
Event.Builder

clearName()

public Event.Builder clearName()

Name of the resource.

string name = 1;

Returns
Type Description
Event.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public Event.Builder clearUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Event.Builder

clone()

public Event.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAlignmentClock()

public Event.Clock getAlignmentClock()

The clock used for joining streams.

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

Returns
Type Description
Event.Clock

The alignmentClock.

getAlignmentClockValue()

public int getAlignmentClockValue()

The clock used for joining streams.

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

Returns
Type Description
int

The enum numeric value on the wire for alignmentClock.

getAnnotations() (deprecated)

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
Type Description
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

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

map<string, string> annotations = 5;

Returns
Type Description
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

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

map<string, string> annotations = 5;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getCreateTime()

public Timestamp getCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Event getDefaultInstanceForType()
Returns
Type Description
Event

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
DurationOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 4;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableAnnotations() (deprecated)

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Name of the resource.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the resource.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
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
Type Description
boolean

Whether the gracePeriod field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Event.Builder mergeCreateTime(Timestamp value)

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Event.Builder

mergeFrom(Event other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Event.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Duration
Returns
Type Description
Event.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Event.Builder mergeUpdateTime(Timestamp value)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
Event.Builder

removeLabels(String key)

public Event.Builder removeLabels(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
Event.Builder

setAlignmentClock(Event.Clock value)

public Event.Builder setAlignmentClock(Event.Clock value)

The clock used for joining streams.

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

Parameter
Name Description
value Event.Clock

The alignmentClock to set.

Returns
Type Description
Event.Builder

This builder for chaining.

setAlignmentClockValue(int value)

public Event.Builder setAlignmentClockValue(int value)

The clock used for joining streams.

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

Parameter
Name Description
value int

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

Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Event.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Event.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Event.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Event.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value Duration
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
Event.Builder

setName(String value)

public Event.Builder setName(String value)

Name of the resource.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Event.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Event.Builder setNameBytes(ByteString value)

Name of the resource.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Event.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Event.Builder setUpdateTime(Timestamp value)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Event.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Event.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Event.Builder