Class ListRoutesResponse.Builder (1.82.0)

public static final class ListRoutesResponse.Builder extends GeneratedMessage.Builder<ListRoutesResponse.Builder> implements ListRoutesResponseOrBuilder

Response for HubService.ListRoutes method.

Protobuf type google.cloud.networkconnectivity.v1.ListRoutesResponse

Static Methods

getDescriptor()

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

Methods

addAllRoutes(Iterable<? extends Route> values)

public ListRoutesResponse.Builder addAllRoutes(Iterable<? extends Route> values)

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkconnectivity.v1.Route>
Returns
Type Description
ListRoutesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

RouteTables that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListRoutesResponse.Builder

This builder for chaining.

addRoutes(Route value)

public ListRoutesResponse.Builder addRoutes(Route value)

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Parameter
Name Description
value Route
Returns
Type Description
ListRoutesResponse.Builder

addRoutes(Route.Builder builderForValue)

public ListRoutesResponse.Builder addRoutes(Route.Builder builderForValue)

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Parameter
Name Description
builderForValue Route.Builder
Returns
Type Description
ListRoutesResponse.Builder

addRoutes(int index, Route value)

public ListRoutesResponse.Builder addRoutes(int index, Route value)

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Parameters
Name Description
index int
value Route
Returns
Type Description
ListRoutesResponse.Builder

addRoutes(int index, Route.Builder builderForValue)

public ListRoutesResponse.Builder addRoutes(int index, Route.Builder builderForValue)

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Parameters
Name Description
index int
builderForValue Route.Builder
Returns
Type Description
ListRoutesResponse.Builder

addRoutesBuilder()

public Route.Builder addRoutesBuilder()

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Returns
Type Description
Route.Builder

addRoutesBuilder(int index)

public Route.Builder addRoutesBuilder(int index)

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Parameter
Name Description
index int
Returns
Type Description
Route.Builder

addUnreachable(String value)

public ListRoutesResponse.Builder addUnreachable(String value)

RouteTables that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListRoutesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListRoutesResponse.Builder addUnreachableBytes(ByteString value)

RouteTables that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListRoutesResponse.Builder

This builder for chaining.

build()

public ListRoutesResponse build()
Returns
Type Description
ListRoutesResponse

buildPartial()

public ListRoutesResponse buildPartial()
Returns
Type Description
ListRoutesResponse

clear()

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

clearNextPageToken()

public ListRoutesResponse.Builder clearNextPageToken()

The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.

string next_page_token = 2;

Returns
Type Description
ListRoutesResponse.Builder

This builder for chaining.

clearRoutes()

public ListRoutesResponse.Builder clearRoutes()

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Returns
Type Description
ListRoutesResponse.Builder

clearUnreachable()

public ListRoutesResponse.Builder clearUnreachable()

RouteTables that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListRoutesResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListRoutesResponse getDefaultInstanceForType()
Returns
Type Description
ListRoutesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getRoutes(int index)

public Route getRoutes(int index)

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Parameter
Name Description
index int
Returns
Type Description
Route

getRoutesBuilder(int index)

public Route.Builder getRoutesBuilder(int index)

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Parameter
Name Description
index int
Returns
Type Description
Route.Builder

getRoutesBuilderList()

public List<Route.Builder> getRoutesBuilderList()

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Returns
Type Description
List<Builder>

getRoutesCount()

public int getRoutesCount()

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Returns
Type Description
int

getRoutesList()

public List<Route> getRoutesList()

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Returns
Type Description
List<Route>

getRoutesOrBuilder(int index)

public RouteOrBuilder getRoutesOrBuilder(int index)

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Parameter
Name Description
index int
Returns
Type Description
RouteOrBuilder

getRoutesOrBuilderList()

public List<? extends RouteOrBuilder> getRoutesOrBuilderList()

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Returns
Type Description
List<? extends com.google.cloud.networkconnectivity.v1.RouteOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

RouteTables that could not be reached.

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)

RouteTables that could not be reached.

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()

RouteTables that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

RouteTables that could not be reached.

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(ListRoutesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeRoutes(int index)

public ListRoutesResponse.Builder removeRoutes(int index)

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Parameter
Name Description
index int
Returns
Type Description
ListRoutesResponse.Builder

setNextPageToken(String value)

public ListRoutesResponse.Builder setNextPageToken(String value)

The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListRoutesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListRoutesResponse.Builder setNextPageTokenBytes(ByteString value)

The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListRoutesResponse.Builder

This builder for chaining.

setRoutes(int index, Route value)

public ListRoutesResponse.Builder setRoutes(int index, Route value)

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Parameters
Name Description
index int
value Route
Returns
Type Description
ListRoutesResponse.Builder

setRoutes(int index, Route.Builder builderForValue)

public ListRoutesResponse.Builder setRoutes(int index, Route.Builder builderForValue)

The requested routes.

repeated .google.cloud.networkconnectivity.v1.Route routes = 1;

Parameters
Name Description
index int
builderForValue Route.Builder
Returns
Type Description
ListRoutesResponse.Builder

setUnreachable(int index, String value)

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

RouteTables that could not be reached.

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
ListRoutesResponse.Builder

This builder for chaining.