Class ListTcpRoutesResponse.Builder (0.39.0)

public static final class ListTcpRoutesResponse.Builder extends GeneratedMessage.Builder<ListTcpRoutesResponse.Builder> implements ListTcpRoutesResponseOrBuilder

Response returned by the ListTcpRoutes method.

Protobuf type google.cloud.networkservices.v1.ListTcpRoutesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTcpRoutes(Iterable<? extends TcpRoute> values)

public ListTcpRoutesResponse.Builder addAllTcpRoutes(Iterable<? extends TcpRoute> values)

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkservices.v1.TcpRoute>
Returns
Type Description
ListTcpRoutesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Unreachable resources. Populated when the request opts into return_partial_success and reading across collections e.g. when attempting to list all resources across all supported locations.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListTcpRoutesResponse.Builder

This builder for chaining.

addTcpRoutes(TcpRoute value)

public ListTcpRoutesResponse.Builder addTcpRoutes(TcpRoute value)

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Parameter
Name Description
value TcpRoute
Returns
Type Description
ListTcpRoutesResponse.Builder

addTcpRoutes(TcpRoute.Builder builderForValue)

public ListTcpRoutesResponse.Builder addTcpRoutes(TcpRoute.Builder builderForValue)

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Parameter
Name Description
builderForValue TcpRoute.Builder
Returns
Type Description
ListTcpRoutesResponse.Builder

addTcpRoutes(int index, TcpRoute value)

public ListTcpRoutesResponse.Builder addTcpRoutes(int index, TcpRoute value)

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Parameters
Name Description
index int
value TcpRoute
Returns
Type Description
ListTcpRoutesResponse.Builder

addTcpRoutes(int index, TcpRoute.Builder builderForValue)

public ListTcpRoutesResponse.Builder addTcpRoutes(int index, TcpRoute.Builder builderForValue)

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Parameters
Name Description
index int
builderForValue TcpRoute.Builder
Returns
Type Description
ListTcpRoutesResponse.Builder

addTcpRoutesBuilder()

public TcpRoute.Builder addTcpRoutesBuilder()

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Returns
Type Description
TcpRoute.Builder

addTcpRoutesBuilder(int index)

public TcpRoute.Builder addTcpRoutesBuilder(int index)

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Parameter
Name Description
index int
Returns
Type Description
TcpRoute.Builder

addUnreachable(String value)

public ListTcpRoutesResponse.Builder addUnreachable(String value)

Unreachable resources. Populated when the request opts into return_partial_success and reading across collections e.g. when attempting to list all resources across all supported locations.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListTcpRoutesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListTcpRoutesResponse.Builder addUnreachableBytes(ByteString value)

Unreachable resources. Populated when the request opts into return_partial_success and reading across collections e.g. when attempting to list all resources across all supported locations.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListTcpRoutesResponse.Builder

This builder for chaining.

build()

public ListTcpRoutesResponse build()
Returns
Type Description
ListTcpRoutesResponse

buildPartial()

public ListTcpRoutesResponse buildPartial()
Returns
Type Description
ListTcpRoutesResponse

clear()

public ListTcpRoutesResponse.Builder clear()
Returns
Type Description
ListTcpRoutesResponse.Builder
Overrides

clearNextPageToken()

public ListTcpRoutesResponse.Builder clearNextPageToken()

If there might be more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token.

string next_page_token = 2;

Returns
Type Description
ListTcpRoutesResponse.Builder

This builder for chaining.

clearTcpRoutes()

public ListTcpRoutesResponse.Builder clearTcpRoutes()

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Returns
Type Description
ListTcpRoutesResponse.Builder

clearUnreachable()

public ListTcpRoutesResponse.Builder clearUnreachable()

Unreachable resources. Populated when the request opts into return_partial_success and reading across collections e.g. when attempting to list all resources across all supported locations.

repeated string unreachable = 3;

Returns
Type Description
ListTcpRoutesResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListTcpRoutesResponse getDefaultInstanceForType()
Returns
Type Description
ListTcpRoutesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

If there might be more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

If there might be more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getTcpRoutes(int index)

public TcpRoute getTcpRoutes(int index)

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Parameter
Name Description
index int
Returns
Type Description
TcpRoute

getTcpRoutesBuilder(int index)

public TcpRoute.Builder getTcpRoutesBuilder(int index)

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Parameter
Name Description
index int
Returns
Type Description
TcpRoute.Builder

getTcpRoutesBuilderList()

public List<TcpRoute.Builder> getTcpRoutesBuilderList()

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Returns
Type Description
List<Builder>

getTcpRoutesCount()

public int getTcpRoutesCount()

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Returns
Type Description
int

getTcpRoutesList()

public List<TcpRoute> getTcpRoutesList()

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Returns
Type Description
List<TcpRoute>

getTcpRoutesOrBuilder(int index)

public TcpRouteOrBuilder getTcpRoutesOrBuilder(int index)

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Parameter
Name Description
index int
Returns
Type Description
TcpRouteOrBuilder

getTcpRoutesOrBuilderList()

public List<? extends TcpRouteOrBuilder> getTcpRoutesOrBuilderList()

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Returns
Type Description
List<? extends com.google.cloud.networkservices.v1.TcpRouteOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

Unreachable resources. Populated when the request opts into return_partial_success and reading across collections e.g. when attempting to list all resources across all supported locations.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Unreachable resources. Populated when the request opts into return_partial_success and reading across collections e.g. when attempting to list all resources across all supported locations.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Unreachable resources. Populated when the request opts into return_partial_success and reading across collections e.g. when attempting to list all resources across all supported locations.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Unreachable resources. Populated when the request opts into return_partial_success and reading across collections e.g. when attempting to list all resources across all supported locations.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListTcpRoutesResponse other)

public ListTcpRoutesResponse.Builder mergeFrom(ListTcpRoutesResponse other)
Parameter
Name Description
other ListTcpRoutesResponse
Returns
Type Description
ListTcpRoutesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListTcpRoutesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListTcpRoutesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListTcpRoutesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListTcpRoutesResponse.Builder
Overrides

removeTcpRoutes(int index)

public ListTcpRoutesResponse.Builder removeTcpRoutes(int index)

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Parameter
Name Description
index int
Returns
Type Description
ListTcpRoutesResponse.Builder

setNextPageToken(String value)

public ListTcpRoutesResponse.Builder setNextPageToken(String value)

If there might be more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListTcpRoutesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListTcpRoutesResponse.Builder setNextPageTokenBytes(ByteString value)

If there might be more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListTcpRoutesResponse.Builder

This builder for chaining.

setTcpRoutes(int index, TcpRoute value)

public ListTcpRoutesResponse.Builder setTcpRoutes(int index, TcpRoute value)

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Parameters
Name Description
index int
value TcpRoute
Returns
Type Description
ListTcpRoutesResponse.Builder

setTcpRoutes(int index, TcpRoute.Builder builderForValue)

public ListTcpRoutesResponse.Builder setTcpRoutes(int index, TcpRoute.Builder builderForValue)

List of TcpRoute resources.

repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;

Parameters
Name Description
index int
builderForValue TcpRoute.Builder
Returns
Type Description
ListTcpRoutesResponse.Builder

setUnreachable(int index, String value)

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

Unreachable resources. Populated when the request opts into return_partial_success and reading across collections e.g. when attempting to list all resources across all supported locations.

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListTcpRoutesResponse.Builder

This builder for chaining.