Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public ChannelConnection.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
      • setField

        public ChannelConnection.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
      • clearField

        public ChannelConnection.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
      • clearOneof

        public ChannelConnection.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
      • setRepeatedField

        public ChannelConnection.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
      • addRepeatedField

        public ChannelConnection.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

        public final ChannelConnection.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
      • mergeUnknownFields

        public final ChannelConnection.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>