Class Channel.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Channel.Builder>
com.google.cloud.visionai.v1.Channel.Builder
All Implemented Interfaces:
ChannelOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Channel

public static final class Channel.Builder extends com.google.protobuf.GeneratedMessage.Builder<Channel.Builder> implements ChannelOrBuilder
 Message describing the Channel object.
 
Protobuf type google.cloud.visionai.v1.Channel
  • 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<Channel.Builder>
    • internalGetMutableMapFieldReflection

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

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

      public Channel.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<Channel.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<Channel.Builder>
    • getDefaultInstanceForType

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

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

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

      public Channel.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<Channel.Builder>
    • mergeFrom

      public Channel.Builder mergeFrom(Channel other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Channel.Builder>
    • mergeFrom

      public Channel.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<Channel.Builder>
      Throws:
      IOException
    • getName

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

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

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

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

      public Channel.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 ChannelOrBuilder
      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 ChannelOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Channel.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 Channel.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 Channel.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 Channel.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 ChannelOrBuilder
    • 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 ChannelOrBuilder
      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 ChannelOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Channel.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 Channel.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 Channel.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 Channel.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 ChannelOrBuilder
    • getLabelsCount

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

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

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

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

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

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

      public Channel.Builder clearLabels()
    • removeLabels

      public Channel.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 Channel.Builder putLabels(String key, String value)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
    • putAllLabels

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

      public int getAnnotationsCount()
      Description copied from interface: ChannelOrBuilder
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsCount in interface ChannelOrBuilder
    • 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 ChannelOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface ChannelOrBuilder
    • 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 ChannelOrBuilder
    • 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 ChannelOrBuilder
    • 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 ChannelOrBuilder
    • clearAnnotations

      public Channel.Builder clearAnnotations()
    • removeAnnotations

      public Channel.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 Channel.Builder putAnnotations(String key, String value)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
    • putAllAnnotations

      public Channel.Builder putAllAnnotations(Map<String,String> values)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
    • getStream

      public String getStream()
       Required. Stream that is associated with this series.
       
      string stream = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getStream in interface ChannelOrBuilder
      Returns:
      The stream.
    • getStreamBytes

      public com.google.protobuf.ByteString getStreamBytes()
       Required. Stream that is associated with this series.
       
      string stream = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getStreamBytes in interface ChannelOrBuilder
      Returns:
      The bytes for stream.
    • setStream

      public Channel.Builder setStream(String value)
       Required. Stream that is associated with this series.
       
      string stream = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The stream to set.
      Returns:
      This builder for chaining.
    • clearStream

      public Channel.Builder clearStream()
       Required. Stream that is associated with this series.
       
      string stream = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setStreamBytes

      public Channel.Builder setStreamBytes(com.google.protobuf.ByteString value)
       Required. Stream that is associated with this series.
       
      string stream = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for stream to set.
      Returns:
      This builder for chaining.
    • getEvent

      public String getEvent()
       Required. Event that is associated with this series.
       
      string event = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getEvent in interface ChannelOrBuilder
      Returns:
      The event.
    • getEventBytes

      public com.google.protobuf.ByteString getEventBytes()
       Required. Event that is associated with this series.
       
      string event = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getEventBytes in interface ChannelOrBuilder
      Returns:
      The bytes for event.
    • setEvent

      public Channel.Builder setEvent(String value)
       Required. Event that is associated with this series.
       
      string event = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The event to set.
      Returns:
      This builder for chaining.
    • clearEvent

      public Channel.Builder clearEvent()
       Required. Event that is associated with this series.
       
      string event = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setEventBytes

      public Channel.Builder setEventBytes(com.google.protobuf.ByteString value)
       Required. Event that is associated with this series.
       
      string event = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for event to set.
      Returns:
      This builder for chaining.