Class Channel.Builder (0.15.0)

public static final class Channel.Builder extends GeneratedMessageV3.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.events.cloud.eventarc.v1.Channel

Implements

ChannelOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Channel.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Channel.Builder
Overrides

build()

public Channel build()
Returns
TypeDescription
Channel

buildPartial()

public Channel buildPartial()
Returns
TypeDescription
Channel

clear()

public Channel.Builder clear()
Returns
TypeDescription
Channel.Builder
Overrides

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;

Returns
TypeDescription
Channel.Builder

This builder for chaining.

clearCreateTime()

public Channel.Builder clearCreateTime()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Channel.Builder

clearCryptoKeyName()

public Channel.Builder clearCryptoKeyName()

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;

Returns
TypeDescription
Channel.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Channel.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Channel.Builder
Overrides

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;

Returns
TypeDescription
Channel.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Channel.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Channel.Builder
Overrides

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
TypeDescription
Channel.Builder

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;

Returns
TypeDescription
Channel.Builder

This builder for chaining.

clearState()

public Channel.Builder clearState()

Output only. The state of a Channel.

.google.events.cloud.eventarc.v1.Channel.State state = 9;

Returns
TypeDescription
Channel.Builder

This builder for chaining.

clearTransport()

public Channel.Builder clearTransport()
Returns
TypeDescription
Channel.Builder

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;

Returns
TypeDescription
Channel.Builder

This builder for chaining.

clearUpdateTime()

public Channel.Builder clearUpdateTime()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
Channel.Builder

clone()

public Channel.Builder clone()
Returns
TypeDescription
Channel.Builder
Overrides

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;

Returns
TypeDescription
String

The activationToken.

getActivationTokenBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for activationToken.

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getCryptoKeyName()

public String getCryptoKeyName()

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;

Returns
TypeDescription
String

The cryptoKeyName.

getCryptoKeyNameBytes()

public ByteString getCryptoKeyNameBytes()

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;

Returns
TypeDescription
ByteString

The bytes for cryptoKeyName.

getDefaultInstanceForType()

public Channel getDefaultInstanceForType()
Returns
TypeDescription
Channel

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
String

The name.

getNameBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for name.

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;

Returns
TypeDescription
String

The provider.

getProviderBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for provider.

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;

Returns
TypeDescription
String

The pubsubTopic.

getPubsubTopicBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for pubsubTopic.

getState()

public Channel.State getState()

Output only. The state of a Channel.

.google.events.cloud.eventarc.v1.Channel.State state = 9;

Returns
TypeDescription
Channel.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of a Channel.

.google.events.cloud.eventarc.v1.Channel.State state = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getTransportCase()

public Channel.TransportCase getTransportCase()
Returns
TypeDescription
Channel.TransportCase

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;

Returns
TypeDescription
String

The uid.

getUidBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
boolean

Whether the createTime field is set.

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;

Returns
TypeDescription
boolean

Whether the pubsubTopic field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Channel.Builder mergeCreateTime(Timestamp value)

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Channel.Builder

mergeFrom(Channel other)

public Channel.Builder mergeFrom(Channel other)
Parameter
NameDescription
otherChannel
Returns
TypeDescription
Channel.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Channel.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Channel.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Channel.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Channel.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Channel.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Channel.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Channel.Builder mergeUpdateTime(Timestamp value)

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Channel.Builder

setActivationToken(String value)

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;

Parameter
NameDescription
valueString

The activationToken to set.

Returns
TypeDescription
Channel.Builder

This builder for chaining.

setActivationTokenBytes(ByteString value)

public Channel.Builder setActivationTokenBytes(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;

Parameter
NameDescription
valueByteString

The bytes for activationToken to set.

Returns
TypeDescription
Channel.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Channel.Builder setCreateTime(Timestamp value)

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Channel.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Channel.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Channel.Builder

setCryptoKeyName(String value)

public Channel.Builder setCryptoKeyName(String value)

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;

Parameter
NameDescription
valueString

The cryptoKeyName to set.

Returns
TypeDescription
Channel.Builder

This builder for chaining.

setCryptoKeyNameBytes(ByteString value)

public Channel.Builder setCryptoKeyNameBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for cryptoKeyName to set.

Returns
TypeDescription
Channel.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Channel.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Channel.Builder
Overrides

setName(String value)

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;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Channel.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Channel.Builder setNameBytes(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;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Channel.Builder

This builder for chaining.

setProvider(String value)

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;

Parameter
NameDescription
valueString

The provider to set.

Returns
TypeDescription
Channel.Builder

This builder for chaining.

setProviderBytes(ByteString value)

public Channel.Builder setProviderBytes(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;

Parameter
NameDescription
valueByteString

The bytes for provider to set.

Returns
TypeDescription
Channel.Builder

This builder for chaining.

setPubsubTopic(String value)

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;

Parameter
NameDescription
valueString

The pubsubTopic to set.

Returns
TypeDescription
Channel.Builder

This builder for chaining.

setPubsubTopicBytes(ByteString value)

public Channel.Builder setPubsubTopicBytes(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;

Parameter
NameDescription
valueByteString

The bytes for pubsubTopic to set.

Returns
TypeDescription
Channel.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Channel.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Channel.Builder
Overrides

setState(Channel.State value)

public Channel.Builder setState(Channel.State value)

Output only. The state of a Channel.

.google.events.cloud.eventarc.v1.Channel.State state = 9;

Parameter
NameDescription
valueChannel.State

The state to set.

Returns
TypeDescription
Channel.Builder

This builder for chaining.

setStateValue(int value)

public Channel.Builder setStateValue(int value)

Output only. The state of a Channel.

.google.events.cloud.eventarc.v1.Channel.State state = 9;

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Channel.Builder

This builder for chaining.

setUid(String value)

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;

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
Channel.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Channel.Builder setUidBytes(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;

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
Channel.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Channel.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Channel.Builder
Overrides

setUpdateTime(Timestamp value)

public Channel.Builder setUpdateTime(Timestamp value)

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Channel.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Channel.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Channel.Builder