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.eventarc.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
 A representation of the Channel resource.
 A Channel is a resource on which event providers publish their events.
 The published events are delivered through the transport associated with the
 channel. Note that a channel is associated with exactly one event provider.
 
Protobuf type google.cloud.eventarc.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
    • getTransportCase

      public Channel.TransportCase getTransportCase()
      Specified by:
      getTransportCase in interface ChannelOrBuilder
    • clearTransport

      public Channel.Builder clearTransport()
    • getName

      public String getName()
       Required. The resource name of the channel. Must be unique within the
       location on the project and must be in
       `projects/{project}/locations/{location}/channels/{channel_id}` format.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface ChannelOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The resource name of the channel. Must be unique within the
       location on the project and must be in
       `projects/{project}/locations/{location}/channels/{channel_id}` format.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface ChannelOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Channel.Builder setName(String value)
       Required. The resource name of the channel. Must be unique within the
       location on the project and must be in
       `projects/{project}/locations/{location}/channels/{channel_id}` format.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Channel.Builder clearName()
       Required. The resource name of the channel. Must be unique within the
       location on the project and must be in
       `projects/{project}/locations/{location}/channels/{channel_id}` format.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Channel.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the channel. Must be unique within the
       location on the project and must be in
       `projects/{project}/locations/{location}/channels/{channel_id}` format.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getUid

      public String getUid()
       Output only. Server assigned unique identifier for the channel. The value
       is a UUID4 string and guaranteed to remain unchanged until the resource is
       deleted.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUid in interface ChannelOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. Server assigned unique identifier for the channel. The value
       is a UUID4 string and guaranteed to remain unchanged until the resource is
       deleted.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUidBytes in interface ChannelOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public Channel.Builder setUid(String value)
       Output only. Server assigned unique identifier for the channel. The value
       is a UUID4 string and guaranteed to remain unchanged until the resource is
       deleted.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public Channel.Builder clearUid()
       Output only. Server assigned unique identifier for the channel. The value
       is a UUID4 string and guaranteed to remain unchanged until the resource is
       deleted.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUidBytes

      public Channel.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. Server assigned unique identifier for the channel. The value
       is a UUID4 string and guaranteed to remain unchanged until the resource is
       deleted.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 5 [(.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 creation time.
       
      .google.protobuf.Timestamp create_time = 5 [(.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 creation time.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Channel.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Channel.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Channel.Builder clearCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ChannelOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 6 [(.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 last-modified time.
       
      .google.protobuf.Timestamp update_time = 6 [(.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 last-modified time.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Channel.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Channel.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Channel.Builder clearUpdateTime()
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface ChannelOrBuilder
    • getProvider

      public String getProvider()
       The name of the event provider (e.g. Eventarc SaaS partner) associated
       with the channel. This provider will be granted permissions to publish
       events to the channel. Format:
       `projects/{project}/locations/{location}/providers/{provider_id}`.
       
      string provider = 7;
      Specified by:
      getProvider in interface ChannelOrBuilder
      Returns:
      The provider.
    • getProviderBytes

      public com.google.protobuf.ByteString getProviderBytes()
       The name of the event provider (e.g. Eventarc SaaS partner) associated
       with the channel. This provider will be granted permissions to publish
       events to the channel. Format:
       `projects/{project}/locations/{location}/providers/{provider_id}`.
       
      string provider = 7;
      Specified by:
      getProviderBytes in interface ChannelOrBuilder
      Returns:
      The bytes for provider.
    • setProvider

      public Channel.Builder setProvider(String value)
       The name of the event provider (e.g. Eventarc SaaS partner) associated
       with the channel. This provider will be granted permissions to publish
       events to the channel. Format:
       `projects/{project}/locations/{location}/providers/{provider_id}`.
       
      string provider = 7;
      Parameters:
      value - The provider to set.
      Returns:
      This builder for chaining.
    • clearProvider

      public Channel.Builder clearProvider()
       The name of the event provider (e.g. Eventarc SaaS partner) associated
       with the channel. This provider will be granted permissions to publish
       events to the channel. Format:
       `projects/{project}/locations/{location}/providers/{provider_id}`.
       
      string provider = 7;
      Returns:
      This builder for chaining.
    • setProviderBytes

      public Channel.Builder setProviderBytes(com.google.protobuf.ByteString value)
       The name of the event provider (e.g. Eventarc SaaS partner) associated
       with the channel. This provider will be granted permissions to publish
       events to the channel. Format:
       `projects/{project}/locations/{location}/providers/{provider_id}`.
       
      string provider = 7;
      Parameters:
      value - The bytes for provider to set.
      Returns:
      This builder for chaining.
    • hasPubsubTopic

      public boolean hasPubsubTopic()
       Output only. The name of the Pub/Sub topic created and managed by
       Eventarc system as a transport for the event delivery. Format:
       `projects/{project}/topics/{topic_id}`.
       
      string pubsub_topic = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPubsubTopic in interface ChannelOrBuilder
      Returns:
      Whether the pubsubTopic field is set.
    • getPubsubTopic

      public String getPubsubTopic()
       Output only. The name of the Pub/Sub topic created and managed by
       Eventarc system as a transport for the event delivery. Format:
       `projects/{project}/topics/{topic_id}`.
       
      string pubsub_topic = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPubsubTopic in interface ChannelOrBuilder
      Returns:
      The pubsubTopic.
    • getPubsubTopicBytes

      public com.google.protobuf.ByteString getPubsubTopicBytes()
       Output only. The name of the Pub/Sub topic created and managed by
       Eventarc system as a transport for the event delivery. Format:
       `projects/{project}/topics/{topic_id}`.
       
      string pubsub_topic = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPubsubTopicBytes in interface ChannelOrBuilder
      Returns:
      The bytes for pubsubTopic.
    • setPubsubTopic

      public Channel.Builder setPubsubTopic(String value)
       Output only. The name of the Pub/Sub topic created and managed by
       Eventarc system as a transport for the event delivery. Format:
       `projects/{project}/topics/{topic_id}`.
       
      string pubsub_topic = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The pubsubTopic to set.
      Returns:
      This builder for chaining.
    • clearPubsubTopic

      public Channel.Builder clearPubsubTopic()
       Output only. The name of the Pub/Sub topic created and managed by
       Eventarc system as a transport for the event delivery. Format:
       `projects/{project}/topics/{topic_id}`.
       
      string pubsub_topic = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setPubsubTopicBytes

      public Channel.Builder setPubsubTopicBytes(com.google.protobuf.ByteString value)
       Output only. The name of the Pub/Sub topic created and managed by
       Eventarc system as a transport for the event delivery. Format:
       `projects/{project}/topics/{topic_id}`.
       
      string pubsub_topic = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for pubsubTopic to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. The state of a Channel.
       
      .google.cloud.eventarc.v1.Channel.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface ChannelOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Channel.Builder setStateValue(int value)
       Output only. The state of a Channel.
       
      .google.cloud.eventarc.v1.Channel.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Channel.State getState()
       Output only. The state of a Channel.
       
      .google.cloud.eventarc.v1.Channel.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ChannelOrBuilder
      Returns:
      The state.
    • setState

      public Channel.Builder setState(Channel.State value)
       Output only. The state of a Channel.
       
      .google.cloud.eventarc.v1.Channel.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Channel.Builder clearState()
       Output only. The state of a Channel.
       
      .google.cloud.eventarc.v1.Channel.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getActivationToken

      public String getActivationToken()
       Output only. The activation token for the channel. The token must be used
       by the provider to register the channel for publishing.
       
      string activation_token = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getActivationToken in interface ChannelOrBuilder
      Returns:
      The activationToken.
    • getActivationTokenBytes

      public com.google.protobuf.ByteString getActivationTokenBytes()
       Output only. The activation token for the channel. The token must be used
       by the provider to register the channel for publishing.
       
      string activation_token = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getActivationTokenBytes in interface ChannelOrBuilder
      Returns:
      The bytes for activationToken.
    • setActivationToken

      public Channel.Builder setActivationToken(String value)
       Output only. The activation token for the channel. The token must be used
       by the provider to register the channel for publishing.
       
      string activation_token = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The activationToken to set.
      Returns:
      This builder for chaining.
    • clearActivationToken

      public Channel.Builder clearActivationToken()
       Output only. The activation token for the channel. The token must be used
       by the provider to register the channel for publishing.
       
      string activation_token = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setActivationTokenBytes

      public Channel.Builder setActivationTokenBytes(com.google.protobuf.ByteString value)
       Output only. The activation token for the channel. The token must be used
       by the provider to register the channel for publishing.
       
      string activation_token = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for activationToken to set.
      Returns:
      This builder for chaining.
    • getCryptoKeyName

      public String getCryptoKeyName()
       Optional. Resource name of a KMS crypto key (managed by the user) used to
       encrypt/decrypt their event data.
      
       It must match the pattern
       `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
       
      string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCryptoKeyName in interface ChannelOrBuilder
      Returns:
      The cryptoKeyName.
    • getCryptoKeyNameBytes

      public com.google.protobuf.ByteString getCryptoKeyNameBytes()
       Optional. Resource name of a KMS crypto key (managed by the user) used to
       encrypt/decrypt their event data.
      
       It must match the pattern
       `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
       
      string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCryptoKeyNameBytes in interface ChannelOrBuilder
      Returns:
      The bytes for cryptoKeyName.
    • setCryptoKeyName

      public Channel.Builder setCryptoKeyName(String value)
       Optional. Resource name of a KMS crypto key (managed by the user) used to
       encrypt/decrypt their event data.
      
       It must match the pattern
       `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
       
      string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The cryptoKeyName to set.
      Returns:
      This builder for chaining.
    • clearCryptoKeyName

      public Channel.Builder clearCryptoKeyName()
       Optional. Resource name of a KMS crypto key (managed by the user) used to
       encrypt/decrypt their event data.
      
       It must match the pattern
       `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
       
      string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setCryptoKeyNameBytes

      public Channel.Builder setCryptoKeyNameBytes(com.google.protobuf.ByteString value)
       Optional. Resource name of a KMS crypto key (managed by the user) used to
       encrypt/decrypt their event data.
      
       It must match the pattern
       `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
       
      string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for cryptoKeyName to set.
      Returns:
      This builder for chaining.
    • getSatisfiesPzs

      public boolean getSatisfiesPzs()
       Output only. Whether or not this Channel satisfies the requirements of
       physical zone separation
       
      bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSatisfiesPzs in interface ChannelOrBuilder
      Returns:
      The satisfiesPzs.
    • setSatisfiesPzs

      public Channel.Builder setSatisfiesPzs(boolean value)
       Output only. Whether or not this Channel satisfies the requirements of
       physical zone separation
       
      bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The satisfiesPzs to set.
      Returns:
      This builder for chaining.
    • clearSatisfiesPzs

      public Channel.Builder clearSatisfiesPzs()
       Output only. Whether or not this Channel satisfies the requirements of
       physical zone separation
       
      bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: ChannelOrBuilder
       Optional. Resource labels.
       
      map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface ChannelOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Resource labels.
       
      map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      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()
       Optional. Resource labels.
       
      map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface ChannelOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Resource labels.
       
      map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface ChannelOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Resource labels.
       
      map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface ChannelOrBuilder
    • clearLabels

      public Channel.Builder clearLabels()
    • removeLabels

      public Channel.Builder removeLabels(String key)
       Optional. Resource labels.
       
      map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

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

      public Channel.Builder putLabels(String key, String value)
       Optional. Resource labels.
       
      map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public Channel.Builder putAllLabels(Map<String,String> values)
       Optional. Resource labels.
       
      map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];