Package com.google.cloud.visionai.v1
Class Event.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Event.Builder>
com.google.cloud.visionai.v1.Event.Builder
- All Implemented Interfaces:
EventOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Event
public static final class Event.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Event.Builder>
implements EventOrBuilder
Message describing the Event object.Protobuf type
google.cloud.visionai.v1.Event-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The clock used for joining streams.Output only.Grace period for cleaning up the event.Name of the resource.Output only.booleanAnnotations to allow clients to store small amounts of arbitrary data.booleancontainsLabels(String key) Labels as key value pairs.The clock used for joining streams.intThe clock used for joining streams.Deprecated.intAnnotations to allow clients to store small amounts of arbitrary data.Annotations to allow clients to store small amounts of arbitrary data.getAnnotationsOrDefault(String key, String defaultValue) Annotations to allow clients to store small amounts of arbitrary data.Annotations to allow clients to store small amounts of arbitrary data.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationGrace period for cleaning up the event.com.google.protobuf.Duration.BuilderGrace period for cleaning up the event.com.google.protobuf.DurationOrBuilderGrace period for cleaning up the event.Deprecated.intLabels as key value pairs.Labels as key value pairs.getLabelsOrDefault(String key, String defaultValue) Labels as key value pairs.getLabelsOrThrow(String key) Labels as key value pairs.Deprecated.Deprecated.getName()Name of the resource.com.google.protobuf.ByteStringName of the resource.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanGrace period for cleaning up the event.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGracePeriod(com.google.protobuf.Duration value) Grace period for cleaning up the event.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllAnnotations(Map<String, String> values) Annotations to allow clients to store small amounts of arbitrary data.putAllLabels(Map<String, String> values) Labels as key value pairs.putAnnotations(String key, String value) Annotations to allow clients to store small amounts of arbitrary data.Labels as key value pairs.removeAnnotations(String key) Annotations to allow clients to store small amounts of arbitrary data.removeLabels(String key) Labels as key value pairs.setAlignmentClock(Event.Clock value) The clock used for joining streams.setAlignmentClockValue(int value) The clock used for joining streams.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setGracePeriod(com.google.protobuf.Duration value) Grace period for cleaning up the event.setGracePeriod(com.google.protobuf.Duration.Builder builderForValue) Grace period for cleaning up the event.Name of the resource.setNameBytes(com.google.protobuf.ByteString value) Name of the resource.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Event.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Event.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Event.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Event.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Event.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Event.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Event.Builder>
-
mergeFrom
public Event.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Event.Builder>- Throws:
IOException
-
getName
Name of the resource.
string name = 1;- Specified by:
getNamein interfaceEventOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the resource.
string name = 1;- Specified by:
getNameBytesin interfaceEventOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the resource.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the resource.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Name of the resource.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceEventOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceEventOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceEventOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceEventOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceEventOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceEventOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:EventOrBuilderLabels as key value pairs.
map<string, string> labels = 4;- Specified by:
getLabelsCountin interfaceEventOrBuilder
-
containsLabels
Labels as key value pairs.
map<string, string> labels = 4;- Specified by:
containsLabelsin interfaceEventOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceEventOrBuilder
-
getLabelsMap
Labels as key value pairs.
map<string, string> labels = 4;- Specified by:
getLabelsMapin interfaceEventOrBuilder
-
getLabelsOrDefault
Labels as key value pairs.
map<string, string> labels = 4;- Specified by:
getLabelsOrDefaultin interfaceEventOrBuilder
-
getLabelsOrThrow
Labels as key value pairs.
map<string, string> labels = 4;- Specified by:
getLabelsOrThrowin interfaceEventOrBuilder
-
clearLabels
-
removeLabels
Labels as key value pairs.
map<string, string> labels = 4; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Labels as key value pairs.
map<string, string> labels = 4; -
putAllLabels
Labels as key value pairs.
map<string, string> labels = 4; -
getAnnotationsCount
public int getAnnotationsCount()Description copied from interface:EventOrBuilderAnnotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5;- Specified by:
getAnnotationsCountin interfaceEventOrBuilder
-
containsAnnotations
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5;- Specified by:
containsAnnotationsin interfaceEventOrBuilder
-
getAnnotations
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceEventOrBuilder
-
getAnnotationsMap
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5;- Specified by:
getAnnotationsMapin interfaceEventOrBuilder
-
getAnnotationsOrDefault
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5;- Specified by:
getAnnotationsOrDefaultin interfaceEventOrBuilder
-
getAnnotationsOrThrow
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5;- Specified by:
getAnnotationsOrThrowin interfaceEventOrBuilder
-
clearAnnotations
-
removeAnnotations
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5; -
getMutableAnnotations
Deprecated.Use alternate mutation accessors instead. -
putAnnotations
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5; -
putAllAnnotations
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5; -
getAlignmentClockValue
public int getAlignmentClockValue()The clock used for joining streams.
.google.cloud.visionai.v1.Event.Clock alignment_clock = 6;- Specified by:
getAlignmentClockValuein interfaceEventOrBuilder- Returns:
- The enum numeric value on the wire for alignmentClock.
-
setAlignmentClockValue
The clock used for joining streams.
.google.cloud.visionai.v1.Event.Clock alignment_clock = 6;- Parameters:
value- The enum numeric value on the wire for alignmentClock to set.- Returns:
- This builder for chaining.
-
getAlignmentClock
The clock used for joining streams.
.google.cloud.visionai.v1.Event.Clock alignment_clock = 6;- Specified by:
getAlignmentClockin interfaceEventOrBuilder- Returns:
- The alignmentClock.
-
setAlignmentClock
The clock used for joining streams.
.google.cloud.visionai.v1.Event.Clock alignment_clock = 6;- Parameters:
value- The alignmentClock to set.- Returns:
- This builder for chaining.
-
clearAlignmentClock
The clock used for joining streams.
.google.cloud.visionai.v1.Event.Clock alignment_clock = 6;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasGracePeriodin interfaceEventOrBuilder- Returns:
- Whether the gracePeriod field is set.
-
getGracePeriod
public com.google.protobuf.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;- Specified by:
getGracePeriodin interfaceEventOrBuilder- Returns:
- The gracePeriod.
-
setGracePeriod
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; -
setGracePeriod
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; -
mergeGracePeriod
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; -
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; -
getGracePeriodBuilder
public com.google.protobuf.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; -
getGracePeriodOrBuilder
public com.google.protobuf.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;- Specified by:
getGracePeriodOrBuilderin interfaceEventOrBuilder
-