Class ListGrpcRoutesResponse.Builder (0.10.0)

public static final class ListGrpcRoutesResponse.Builder extends GeneratedMessageV3.Builder<ListGrpcRoutesResponse.Builder> implements ListGrpcRoutesResponseOrBuilder

Response returned by the ListGrpcRoutes method.

Protobuf type google.cloud.networkservices.v1.ListGrpcRoutesResponse

Static Methods

getDescriptor()

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

Methods

addAllGrpcRoutes(Iterable<? extends GrpcRoute> values)

public ListGrpcRoutesResponse.Builder addAllGrpcRoutes(Iterable<? extends GrpcRoute> values)

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

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

addGrpcRoutes(GrpcRoute value)

public ListGrpcRoutesResponse.Builder addGrpcRoutes(GrpcRoute value)

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Parameter
Name Description
value GrpcRoute
Returns
Type Description
ListGrpcRoutesResponse.Builder

addGrpcRoutes(GrpcRoute.Builder builderForValue)

public ListGrpcRoutesResponse.Builder addGrpcRoutes(GrpcRoute.Builder builderForValue)

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Parameter
Name Description
builderForValue GrpcRoute.Builder
Returns
Type Description
ListGrpcRoutesResponse.Builder

addGrpcRoutes(int index, GrpcRoute value)

public ListGrpcRoutesResponse.Builder addGrpcRoutes(int index, GrpcRoute value)

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Parameters
Name Description
index int
value GrpcRoute
Returns
Type Description
ListGrpcRoutesResponse.Builder

addGrpcRoutes(int index, GrpcRoute.Builder builderForValue)

public ListGrpcRoutesResponse.Builder addGrpcRoutes(int index, GrpcRoute.Builder builderForValue)

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Parameters
Name Description
index int
builderForValue GrpcRoute.Builder
Returns
Type Description
ListGrpcRoutesResponse.Builder

addGrpcRoutesBuilder()

public GrpcRoute.Builder addGrpcRoutesBuilder()

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Returns
Type Description
GrpcRoute.Builder

addGrpcRoutesBuilder(int index)

public GrpcRoute.Builder addGrpcRoutesBuilder(int index)

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListGrpcRoutesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListGrpcRoutesResponse.Builder
Overrides

build()

public ListGrpcRoutesResponse build()
Returns
Type Description
ListGrpcRoutesResponse

buildPartial()

public ListGrpcRoutesResponse buildPartial()
Returns
Type Description
ListGrpcRoutesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListGrpcRoutesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListGrpcRoutesResponse.Builder
Overrides

clearGrpcRoutes()

public ListGrpcRoutesResponse.Builder clearGrpcRoutes()

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Returns
Type Description
ListGrpcRoutesResponse.Builder

clearNextPageToken()

public ListGrpcRoutesResponse.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
ListGrpcRoutesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListGrpcRoutesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListGrpcRoutesResponse.Builder
Overrides

clone()

public ListGrpcRoutesResponse.Builder clone()
Returns
Type Description
ListGrpcRoutesResponse.Builder
Overrides

getDefaultInstanceForType()

public ListGrpcRoutesResponse getDefaultInstanceForType()
Returns
Type Description
ListGrpcRoutesResponse

getDescriptorForType()

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

getGrpcRoutes(int index)

public GrpcRoute getGrpcRoutes(int index)

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute

getGrpcRoutesBuilder(int index)

public GrpcRoute.Builder getGrpcRoutesBuilder(int index)

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute.Builder

getGrpcRoutesBuilderList()

public List<GrpcRoute.Builder> getGrpcRoutesBuilderList()

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Returns
Type Description
List<Builder>

getGrpcRoutesCount()

public int getGrpcRoutesCount()

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Returns
Type Description
int

getGrpcRoutesList()

public List<GrpcRoute> getGrpcRoutesList()

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Returns
Type Description
List<GrpcRoute>

getGrpcRoutesOrBuilder(int index)

public GrpcRouteOrBuilder getGrpcRoutesOrBuilder(int index)

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Parameter
Name Description
index int
Returns
Type Description
GrpcRouteOrBuilder

getGrpcRoutesOrBuilderList()

public List<? extends GrpcRouteOrBuilder> getGrpcRoutesOrBuilderList()

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListGrpcRoutesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListGrpcRoutesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListGrpcRoutesResponse.Builder
Overrides

removeGrpcRoutes(int index)

public ListGrpcRoutesResponse.Builder removeGrpcRoutes(int index)

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Parameter
Name Description
index int
Returns
Type Description
ListGrpcRoutesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListGrpcRoutesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListGrpcRoutesResponse.Builder
Overrides

setGrpcRoutes(int index, GrpcRoute value)

public ListGrpcRoutesResponse.Builder setGrpcRoutes(int index, GrpcRoute value)

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Parameters
Name Description
index int
value GrpcRoute
Returns
Type Description
ListGrpcRoutesResponse.Builder

setGrpcRoutes(int index, GrpcRoute.Builder builderForValue)

public ListGrpcRoutesResponse.Builder setGrpcRoutes(int index, GrpcRoute.Builder builderForValue)

List of GrpcRoute resources.

repeated .google.cloud.networkservices.v1.GrpcRoute grpc_routes = 1;

Parameters
Name Description
index int
builderForValue GrpcRoute.Builder
Returns
Type Description
ListGrpcRoutesResponse.Builder

setNextPageToken(String value)

public ListGrpcRoutesResponse.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
ListGrpcRoutesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListGrpcRoutesResponse.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
ListGrpcRoutesResponse.Builder

This builder for chaining.

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

public ListGrpcRoutesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListGrpcRoutesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListGrpcRoutesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListGrpcRoutesResponse.Builder
Overrides