Class ChannelConnection.Builder

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

public static final class ChannelConnection.Builder extends com.google.protobuf.GeneratedMessage.Builder<ChannelConnection.Builder> implements ChannelConnectionOrBuilder
 A representation of the ChannelConnection resource.
 A ChannelConnection is a resource which event providers create during the
 activation process to establish a connection between the provider and the
 subscriber channel.
 
Protobuf type google.cloud.eventarc.v1.ChannelConnection
  • 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<ChannelConnection.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public ChannelConnection.Builder mergeFrom(ChannelConnection other)
    • isInitialized

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

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

      public String getName()
       Required. The name of the connection.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface ChannelConnectionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The name of the connection.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface ChannelConnectionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ChannelConnection.Builder setName(String value)
       Required. The name of the connection.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ChannelConnection.Builder clearName()
       Required. The name of the connection.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public ChannelConnection.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the connection.
       
      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 ID of the resource.
       The server guarantees uniqueness and immutability until deleted.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUid in interface ChannelConnectionOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. Server assigned ID of the resource.
       The server guarantees uniqueness and immutability until deleted.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUidBytes in interface ChannelConnectionOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public ChannelConnection.Builder setUid(String value)
       Output only. Server assigned ID of the resource.
       The server guarantees uniqueness and immutability until deleted.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public ChannelConnection.Builder clearUid()
       Output only. Server assigned ID of the resource.
       The server guarantees uniqueness and immutability until deleted.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUidBytes

      public ChannelConnection.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. Server assigned ID of the resource.
       The server guarantees uniqueness and immutability until deleted.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • getChannel

      public String getChannel()
       Required. The name of the connected subscriber Channel.
       This is a weak reference to avoid cross project and cross accounts
       references. This must be in
       `projects/{project}/location/{location}/channels/{channel_id}` format.
       
      string channel = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getChannel in interface ChannelConnectionOrBuilder
      Returns:
      The channel.
    • getChannelBytes

      public com.google.protobuf.ByteString getChannelBytes()
       Required. The name of the connected subscriber Channel.
       This is a weak reference to avoid cross project and cross accounts
       references. This must be in
       `projects/{project}/location/{location}/channels/{channel_id}` format.
       
      string channel = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getChannelBytes in interface ChannelConnectionOrBuilder
      Returns:
      The bytes for channel.
    • setChannel

      public ChannelConnection.Builder setChannel(String value)
       Required. The name of the connected subscriber Channel.
       This is a weak reference to avoid cross project and cross accounts
       references. This must be in
       `projects/{project}/location/{location}/channels/{channel_id}` format.
       
      string channel = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The channel to set.
      Returns:
      This builder for chaining.
    • clearChannel

      public ChannelConnection.Builder clearChannel()
       Required. The name of the connected subscriber Channel.
       This is a weak reference to avoid cross project and cross accounts
       references. This must be in
       `projects/{project}/location/{location}/channels/{channel_id}` format.
       
      string channel = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setChannelBytes

      public ChannelConnection.Builder setChannelBytes(com.google.protobuf.ByteString value)
       Required. The name of the connected subscriber Channel.
       This is a weak reference to avoid cross project and cross accounts
       references. This must be in
       `projects/{project}/location/{location}/channels/{channel_id}` format.
       
      string channel = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for channel to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ChannelConnectionOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ChannelConnectionOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public ChannelConnection.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

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

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

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

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

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

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

      public ChannelConnection.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

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

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

      public ChannelConnection.Builder clearUpdateTime()
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 7 [(.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 = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

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

      public String getActivationToken()
       Input only. Activation token for the channel. The token will be used
       during the creation of ChannelConnection to bind the channel with the
       provider project. This field will not be stored in the provider resource.
       
      string activation_token = 8 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getActivationToken in interface ChannelConnectionOrBuilder
      Returns:
      The activationToken.
    • getActivationTokenBytes

      public com.google.protobuf.ByteString getActivationTokenBytes()
       Input only. Activation token for the channel. The token will be used
       during the creation of ChannelConnection to bind the channel with the
       provider project. This field will not be stored in the provider resource.
       
      string activation_token = 8 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getActivationTokenBytes in interface ChannelConnectionOrBuilder
      Returns:
      The bytes for activationToken.
    • setActivationToken

      public ChannelConnection.Builder setActivationToken(String value)
       Input only. Activation token for the channel. The token will be used
       during the creation of ChannelConnection to bind the channel with the
       provider project. This field will not be stored in the provider resource.
       
      string activation_token = 8 [(.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      value - The activationToken to set.
      Returns:
      This builder for chaining.
    • clearActivationToken

      public ChannelConnection.Builder clearActivationToken()
       Input only. Activation token for the channel. The token will be used
       during the creation of ChannelConnection to bind the channel with the
       provider project. This field will not be stored in the provider resource.
       
      string activation_token = 8 [(.google.api.field_behavior) = INPUT_ONLY];
      Returns:
      This builder for chaining.
    • setActivationTokenBytes

      public ChannelConnection.Builder setActivationTokenBytes(com.google.protobuf.ByteString value)
       Input only. Activation token for the channel. The token will be used
       during the creation of ChannelConnection to bind the channel with the
       provider project. This field will not be stored in the provider resource.
       
      string activation_token = 8 [(.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      value - The bytes for activationToken to set.
      Returns:
      This builder for chaining.
    • getLabelsCount

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

      public boolean containsLabels(String key)
       Optional. Resource labels.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface ChannelConnectionOrBuilder
    • getLabels

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

      public Map<String,String> getLabelsMap()
       Optional. Resource labels.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface ChannelConnectionOrBuilder
    • getLabelsOrDefault

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

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

      public ChannelConnection.Builder clearLabels()
    • removeLabels

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

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

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

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