Class Connection.Builder (2.3.4)

public static final class Connection.Builder extends GeneratedMessageV3.Builder<Connection.Builder> implements ConnectionOrBuilder

Protobuf type google.cloud.apigeeconnect.v1.Connection

Implements

ConnectionOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Connection build()
Returns
TypeDescription
Connection

buildPartial()

public Connection buildPartial()
Returns
TypeDescription
Connection

clear()

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

clearCluster()

public Connection.Builder clearCluster()

Cluster information.

.google.cloud.apigeeconnect.v1.Cluster cluster = 2;

Returns
TypeDescription
Connection.Builder

clearEndpoint()

public Connection.Builder clearEndpoint()

The endpoint that the connection is made against. Format: projects/{project_number}/endpoints/{endpoint}

string endpoint = 1;

Returns
TypeDescription
Connection.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStreamCount()

public Connection.Builder clearStreamCount()

The count of streams.

int32 stream_count = 3;

Returns
TypeDescription
Connection.Builder

This builder for chaining.

clone()

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

getCluster()

public Cluster getCluster()

Cluster information.

.google.cloud.apigeeconnect.v1.Cluster cluster = 2;

Returns
TypeDescription
Cluster

The cluster.

getClusterBuilder()

public Cluster.Builder getClusterBuilder()

Cluster information.

.google.cloud.apigeeconnect.v1.Cluster cluster = 2;

Returns
TypeDescription
Cluster.Builder

getClusterOrBuilder()

public ClusterOrBuilder getClusterOrBuilder()

Cluster information.

.google.cloud.apigeeconnect.v1.Cluster cluster = 2;

Returns
TypeDescription
ClusterOrBuilder

getDefaultInstanceForType()

public Connection getDefaultInstanceForType()
Returns
TypeDescription
Connection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndpoint()

public String getEndpoint()

The endpoint that the connection is made against. Format: projects/{project_number}/endpoints/{endpoint}

string endpoint = 1;

Returns
TypeDescription
String

The endpoint.

getEndpointBytes()

public ByteString getEndpointBytes()

The endpoint that the connection is made against. Format: projects/{project_number}/endpoints/{endpoint}

string endpoint = 1;

Returns
TypeDescription
ByteString

The bytes for endpoint.

getStreamCount()

public int getStreamCount()

The count of streams.

int32 stream_count = 3;

Returns
TypeDescription
int

The streamCount.

hasCluster()

public boolean hasCluster()

Cluster information.

.google.cloud.apigeeconnect.v1.Cluster cluster = 2;

Returns
TypeDescription
boolean

Whether the cluster field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCluster(Cluster value)

public Connection.Builder mergeCluster(Cluster value)

Cluster information.

.google.cloud.apigeeconnect.v1.Cluster cluster = 2;

Parameter
NameDescription
valueCluster
Returns
TypeDescription
Connection.Builder

mergeFrom(Connection other)

public Connection.Builder mergeFrom(Connection other)
Parameter
NameDescription
otherConnection
Returns
TypeDescription
Connection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCluster(Cluster value)

public Connection.Builder setCluster(Cluster value)

Cluster information.

.google.cloud.apigeeconnect.v1.Cluster cluster = 2;

Parameter
NameDescription
valueCluster
Returns
TypeDescription
Connection.Builder

setCluster(Cluster.Builder builderForValue)

public Connection.Builder setCluster(Cluster.Builder builderForValue)

Cluster information.

.google.cloud.apigeeconnect.v1.Cluster cluster = 2;

Parameter
NameDescription
builderForValueCluster.Builder
Returns
TypeDescription
Connection.Builder

setEndpoint(String value)

public Connection.Builder setEndpoint(String value)

The endpoint that the connection is made against. Format: projects/{project_number}/endpoints/{endpoint}

string endpoint = 1;

Parameter
NameDescription
valueString

The endpoint to set.

Returns
TypeDescription
Connection.Builder

This builder for chaining.

setEndpointBytes(ByteString value)

public Connection.Builder setEndpointBytes(ByteString value)

The endpoint that the connection is made against. Format: projects/{project_number}/endpoints/{endpoint}

string endpoint = 1;

Parameter
NameDescription
valueByteString

The bytes for endpoint to set.

Returns
TypeDescription
Connection.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStreamCount(int value)

public Connection.Builder setStreamCount(int value)

The count of streams.

int32 stream_count = 3;

Parameter
NameDescription
valueint

The streamCount to set.

Returns
TypeDescription
Connection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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