Class ListConnectionsResponse.Builder (3.30.0)

public static final class ListConnectionsResponse.Builder extends GeneratedMessageV3.Builder<ListConnectionsResponse.Builder> implements ListConnectionsResponseOrBuilder

Message for response to listing Connections.

Protobuf type google.devtools.cloudbuild.v2.ListConnectionsResponse

Static Methods

getDescriptor()

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

Methods

addAllConnections(Iterable<? extends Connection> values)

public ListConnectionsResponse.Builder addAllConnections(Iterable<? extends Connection> values)

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloudbuild.v2.Connection>
Returns
TypeDescription
ListConnectionsResponse.Builder

addConnections(Connection value)

public ListConnectionsResponse.Builder addConnections(Connection value)

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Parameter
NameDescription
valueConnection
Returns
TypeDescription
ListConnectionsResponse.Builder

addConnections(Connection.Builder builderForValue)

public ListConnectionsResponse.Builder addConnections(Connection.Builder builderForValue)

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Parameter
NameDescription
builderForValueConnection.Builder
Returns
TypeDescription
ListConnectionsResponse.Builder

addConnections(int index, Connection value)

public ListConnectionsResponse.Builder addConnections(int index, Connection value)

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Parameters
NameDescription
indexint
valueConnection
Returns
TypeDescription
ListConnectionsResponse.Builder

addConnections(int index, Connection.Builder builderForValue)

public ListConnectionsResponse.Builder addConnections(int index, Connection.Builder builderForValue)

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Parameters
NameDescription
indexint
builderForValueConnection.Builder
Returns
TypeDescription
ListConnectionsResponse.Builder

addConnectionsBuilder()

public Connection.Builder addConnectionsBuilder()

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Returns
TypeDescription
Connection.Builder

addConnectionsBuilder(int index)

public Connection.Builder addConnectionsBuilder(int index)

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Connection.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListConnectionsResponse build()
Returns
TypeDescription
ListConnectionsResponse

buildPartial()

public ListConnectionsResponse buildPartial()
Returns
TypeDescription
ListConnectionsResponse

clear()

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

clearConnections()

public ListConnectionsResponse.Builder clearConnections()

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Returns
TypeDescription
ListConnectionsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListConnectionsResponse.Builder clearNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
TypeDescription
ListConnectionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getConnections(int index)

public Connection getConnections(int index)

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Connection

getConnectionsBuilder(int index)

public Connection.Builder getConnectionsBuilder(int index)

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Connection.Builder

getConnectionsBuilderList()

public List<Connection.Builder> getConnectionsBuilderList()

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Returns
TypeDescription
List<Builder>

getConnectionsCount()

public int getConnectionsCount()

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Returns
TypeDescription
int

getConnectionsList()

public List<Connection> getConnectionsList()

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Returns
TypeDescription
List<Connection>

getConnectionsOrBuilder(int index)

public ConnectionOrBuilder getConnectionsOrBuilder(int index)

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ConnectionOrBuilder

getConnectionsOrBuilderList()

public List<? extends ConnectionOrBuilder> getConnectionsOrBuilderList()

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Returns
TypeDescription
List<? extends com.google.cloudbuild.v2.ConnectionOrBuilder>

getDefaultInstanceForType()

public ListConnectionsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListConnectionsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListConnectionsResponse other)

public ListConnectionsResponse.Builder mergeFrom(ListConnectionsResponse other)
Parameter
NameDescription
otherListConnectionsResponse
Returns
TypeDescription
ListConnectionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeConnections(int index)

public ListConnectionsResponse.Builder removeConnections(int index)

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListConnectionsResponse.Builder

setConnections(int index, Connection value)

public ListConnectionsResponse.Builder setConnections(int index, Connection value)

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Parameters
NameDescription
indexint
valueConnection
Returns
TypeDescription
ListConnectionsResponse.Builder

setConnections(int index, Connection.Builder builderForValue)

public ListConnectionsResponse.Builder setConnections(int index, Connection.Builder builderForValue)

The list of Connections.

repeated .google.devtools.cloudbuild.v2.Connection connections = 1;

Parameters
NameDescription
indexint
builderForValueConnection.Builder
Returns
TypeDescription
ListConnectionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListConnectionsResponse.Builder setNextPageToken(String value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListConnectionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListConnectionsResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListConnectionsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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