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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Event.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Event.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Event.Builder>
    • clear

      public Event.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Event.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Event.Builder>
    • getDefaultInstanceForType

      public Event getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Event build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Event buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Event.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Event.Builder>
    • mergeFrom

      public Event.Builder mergeFrom(Event other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Event.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Name of the resource.
       
      string name = 1;
      Specified by:
      getName in interface EventOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the resource.
       
      string name = 1;
      Specified by:
      getNameBytes in interface EventOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Event.Builder setName(String value)
       Name of the resource.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Event.Builder clearName()
       Name of the resource.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Event.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      hasCreateTime in interface EventOrBuilder
      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:
      getCreateTime in interface EventOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Event.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Event.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Event.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Event.Builder 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:
      getCreateTimeOrBuilder in interface EventOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface EventOrBuilder
      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:
      getUpdateTime in interface EventOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Event.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Event.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Event.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Event.Builder 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:
      getUpdateTimeOrBuilder in interface EventOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: EventOrBuilder
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsCount in interface EventOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      containsLabels in interface EventOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface EventOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsMap in interface EventOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrDefault in interface EventOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrThrow in interface EventOrBuilder
    • clearLabels

      public Event.Builder clearLabels()
    • removeLabels

      public Event.Builder removeLabels(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Event.Builder putLabels(String key, String value)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
    • putAllLabels

      public Event.Builder putAllLabels(Map<String,String> values)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: EventOrBuilder
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsCount in interface EventOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      containsAnnotations in interface EventOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface EventOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsMap in interface EventOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsOrDefault in interface EventOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsOrThrow in interface EventOrBuilder
    • clearAnnotations

      public Event.Builder clearAnnotations()
    • removeAnnotations

      public Event.Builder removeAnnotations(String key)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
    • getMutableAnnotations

      @Deprecated public Map<String,String> getMutableAnnotations()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAnnotations

      public Event.Builder putAnnotations(String key, String value)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
    • putAllAnnotations

      public Event.Builder putAllAnnotations(Map<String,String> values)
       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:
      getAlignmentClockValue in interface EventOrBuilder
      Returns:
      The enum numeric value on the wire for alignmentClock.
    • setAlignmentClockValue

      public Event.Builder setAlignmentClockValue(int value)
       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

      public Event.Clock getAlignmentClock()
       The clock used for joining streams.
       
      .google.cloud.visionai.v1.Event.Clock alignment_clock = 6;
      Specified by:
      getAlignmentClock in interface EventOrBuilder
      Returns:
      The alignmentClock.
    • setAlignmentClock

      public Event.Builder setAlignmentClock(Event.Clock value)
       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

      public Event.Builder 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:
      hasGracePeriod in interface EventOrBuilder
      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:
      getGracePeriod in interface EventOrBuilder
      Returns:
      The gracePeriod.
    • setGracePeriod

      public Event.Builder setGracePeriod(com.google.protobuf.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;
    • setGracePeriod

      public Event.Builder setGracePeriod(com.google.protobuf.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;
    • mergeGracePeriod

      public Event.Builder mergeGracePeriod(com.google.protobuf.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;
    • 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;
    • 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:
      getGracePeriodOrBuilder in interface EventOrBuilder