Class ListPrivateConnectionsResponse.Builder (1.32.0)

public static final class ListPrivateConnectionsResponse.Builder extends GeneratedMessageV3.Builder<ListPrivateConnectionsResponse.Builder> implements ListPrivateConnectionsResponseOrBuilder

Response containing a list of private connection configurations.

Protobuf type google.cloud.datastream.v1.ListPrivateConnectionsResponse

Static Methods

getDescriptor()

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

Methods

addAllPrivateConnections(Iterable<? extends PrivateConnection> values)

public ListPrivateConnectionsResponse.Builder addAllPrivateConnections(Iterable<? extends PrivateConnection> values)

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.datastream.v1.PrivateConnection>
Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListPrivateConnectionsResponse.Builder addAllUnreachable(Iterable<String> values)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

This builder for chaining.

addPrivateConnections(PrivateConnection value)

public ListPrivateConnectionsResponse.Builder addPrivateConnections(PrivateConnection value)

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Parameter
NameDescription
valuePrivateConnection
Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

addPrivateConnections(PrivateConnection.Builder builderForValue)

public ListPrivateConnectionsResponse.Builder addPrivateConnections(PrivateConnection.Builder builderForValue)

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Parameter
NameDescription
builderForValuePrivateConnection.Builder
Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

addPrivateConnections(int index, PrivateConnection value)

public ListPrivateConnectionsResponse.Builder addPrivateConnections(int index, PrivateConnection value)

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Parameters
NameDescription
indexint
valuePrivateConnection
Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

addPrivateConnections(int index, PrivateConnection.Builder builderForValue)

public ListPrivateConnectionsResponse.Builder addPrivateConnections(int index, PrivateConnection.Builder builderForValue)

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Parameters
NameDescription
indexint
builderForValuePrivateConnection.Builder
Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

addPrivateConnectionsBuilder()

public PrivateConnection.Builder addPrivateConnectionsBuilder()

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Returns
TypeDescription
PrivateConnection.Builder

addPrivateConnectionsBuilder(int index)

public PrivateConnection.Builder addPrivateConnectionsBuilder(int index)

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PrivateConnection.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListPrivateConnectionsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListPrivateConnectionsResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

This builder for chaining.

build()

public ListPrivateConnectionsResponse build()
Returns
TypeDescription
ListPrivateConnectionsResponse

buildPartial()

public ListPrivateConnectionsResponse buildPartial()
Returns
TypeDescription
ListPrivateConnectionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListPrivateConnectionsResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrivateConnections()

public ListPrivateConnectionsResponse.Builder clearPrivateConnections()

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

clearUnreachable()

public ListPrivateConnectionsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListPrivateConnectionsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListPrivateConnectionsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getPrivateConnections(int index)

public PrivateConnection getPrivateConnections(int index)

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PrivateConnection

getPrivateConnectionsBuilder(int index)

public PrivateConnection.Builder getPrivateConnectionsBuilder(int index)

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PrivateConnection.Builder

getPrivateConnectionsBuilderList()

public List<PrivateConnection.Builder> getPrivateConnectionsBuilderList()

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Returns
TypeDescription
List<Builder>

getPrivateConnectionsCount()

public int getPrivateConnectionsCount()

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Returns
TypeDescription
int

getPrivateConnectionsList()

public List<PrivateConnection> getPrivateConnectionsList()

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Returns
TypeDescription
List<PrivateConnection>

getPrivateConnectionsOrBuilder(int index)

public PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder(int index)

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PrivateConnectionOrBuilder

getPrivateConnectionsOrBuilderList()

public List<? extends PrivateConnectionOrBuilder> getPrivateConnectionsOrBuilderList()

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Returns
TypeDescription
List<? extends com.google.cloud.datastream.v1.PrivateConnectionOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListPrivateConnectionsResponse other)

public ListPrivateConnectionsResponse.Builder mergeFrom(ListPrivateConnectionsResponse other)
Parameter
NameDescription
otherListPrivateConnectionsResponse
Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePrivateConnections(int index)

public ListPrivateConnectionsResponse.Builder removePrivateConnections(int index)

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListPrivateConnectionsResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListPrivateConnectionsResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

This builder for chaining.

setPrivateConnections(int index, PrivateConnection value)

public ListPrivateConnectionsResponse.Builder setPrivateConnections(int index, PrivateConnection value)

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Parameters
NameDescription
indexint
valuePrivateConnection
Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

setPrivateConnections(int index, PrivateConnection.Builder builderForValue)

public ListPrivateConnectionsResponse.Builder setPrivateConnections(int index, PrivateConnection.Builder builderForValue)

List of private connectivity configurations.

repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1;

Parameters
NameDescription
indexint
builderForValuePrivateConnection.Builder
Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListPrivateConnectionsResponse.Builder setUnreachable(int index, String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListPrivateConnectionsResponse.Builder

This builder for chaining.