Class ChannelConnection.Builder (0.14.1)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ChannelConnection build()
Returns
TypeDescription
ChannelConnection

buildPartial()

public ChannelConnection buildPartial()
Returns
TypeDescription
ChannelConnection

clear()

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

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;

Returns
TypeDescription
ChannelConnection.Builder

This builder for chaining.

clearCreateTime()

public ChannelConnection.Builder clearCreateTime()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
ChannelConnection.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public ChannelConnection.Builder clearName()

Required. The name of the connection.

string name = 1;

Returns
TypeDescription
ChannelConnection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUid()

public ChannelConnection.Builder clearUid()

Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.

string uid = 2;

Returns
TypeDescription
ChannelConnection.Builder

This builder for chaining.

clearUpdateTime()

public ChannelConnection.Builder clearUpdateTime()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
ChannelConnection.Builder

clone()

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

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;

Returns
TypeDescription
String

The channel.

getChannelBytes()

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

Returns
TypeDescription
ByteString

The bytes for channel.

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ChannelConnection getDefaultInstanceForType()
Returns
TypeDescription
ChannelConnection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The name of the connection.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the connection.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getUid()

public String getUid()

Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.

string uid = 2;

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until 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 = 7;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 7;

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 ChannelConnection.Builder mergeCreateTime(Timestamp value)

Output only. The creation time.

.google.protobuf.Timestamp create_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ChannelConnection.Builder

mergeFrom(ChannelConnection other)

public ChannelConnection.Builder mergeFrom(ChannelConnection other)
Parameter
NameDescription
otherChannelConnection
Returns
TypeDescription
ChannelConnection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public ChannelConnection.Builder mergeUpdateTime(Timestamp value)

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ChannelConnection.Builder

setChannel(String value)

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;

Parameter
NameDescription
valueString

The channel to set.

Returns
TypeDescription
ChannelConnection.Builder

This builder for chaining.

setChannelBytes(ByteString value)

public ChannelConnection.Builder setChannelBytes(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;

Parameter
NameDescription
valueByteString

The bytes for channel to set.

Returns
TypeDescription
ChannelConnection.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public ChannelConnection.Builder setCreateTime(Timestamp value)

Output only. The creation time.

.google.protobuf.Timestamp create_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ChannelConnection.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ChannelConnection.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation time.

.google.protobuf.Timestamp create_time = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ChannelConnection.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ChannelConnection.Builder setName(String value)

Required. The name of the connection.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ChannelConnection.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ChannelConnection.Builder setNameBytes(ByteString value)

Required. The name of the connection.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ChannelConnection.Builder

This builder for chaining.

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

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

setUid(String value)

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;

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
ChannelConnection.Builder

This builder for chaining.

setUidBytes(ByteString value)

public ChannelConnection.Builder setUidBytes(ByteString value)

Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.

string uid = 2;

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
ChannelConnection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public ChannelConnection.Builder setUpdateTime(Timestamp value)

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ChannelConnection.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ChannelConnection.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ChannelConnection.Builder