Class ListPolicyBasedRoutesResponse.Builder (1.44.0)

public static final class ListPolicyBasedRoutesResponse.Builder extends GeneratedMessageV3.Builder<ListPolicyBasedRoutesResponse.Builder> implements ListPolicyBasedRoutesResponseOrBuilder

Response for [PolicyBasedRouting.ListPolicyBasedRoutes][] method.

Protobuf type google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse

Static Methods

getDescriptor()

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

Methods

addAllPolicyBasedRoutes(Iterable<? extends PolicyBasedRoute> values)

public ListPolicyBasedRoutesResponse.Builder addAllPolicyBasedRoutes(Iterable<? extends PolicyBasedRoute> values)

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

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

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListPolicyBasedRoutesResponse.Builder

This builder for chaining.

addPolicyBasedRoutes(PolicyBasedRoute value)

public ListPolicyBasedRoutesResponse.Builder addPolicyBasedRoutes(PolicyBasedRoute value)

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Parameter
Name Description
value PolicyBasedRoute
Returns
Type Description
ListPolicyBasedRoutesResponse.Builder

addPolicyBasedRoutes(PolicyBasedRoute.Builder builderForValue)

public ListPolicyBasedRoutesResponse.Builder addPolicyBasedRoutes(PolicyBasedRoute.Builder builderForValue)

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Parameter
Name Description
builderForValue PolicyBasedRoute.Builder
Returns
Type Description
ListPolicyBasedRoutesResponse.Builder

addPolicyBasedRoutes(int index, PolicyBasedRoute value)

public ListPolicyBasedRoutesResponse.Builder addPolicyBasedRoutes(int index, PolicyBasedRoute value)

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Parameters
Name Description
index int
value PolicyBasedRoute
Returns
Type Description
ListPolicyBasedRoutesResponse.Builder

addPolicyBasedRoutes(int index, PolicyBasedRoute.Builder builderForValue)

public ListPolicyBasedRoutesResponse.Builder addPolicyBasedRoutes(int index, PolicyBasedRoute.Builder builderForValue)

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Parameters
Name Description
index int
builderForValue PolicyBasedRoute.Builder
Returns
Type Description
ListPolicyBasedRoutesResponse.Builder

addPolicyBasedRoutesBuilder()

public PolicyBasedRoute.Builder addPolicyBasedRoutesBuilder()

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Returns
Type Description
PolicyBasedRoute.Builder

addPolicyBasedRoutesBuilder(int index)

public PolicyBasedRoute.Builder addPolicyBasedRoutesBuilder(int index)

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Parameter
Name Description
index int
Returns
Type Description
PolicyBasedRoute.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListPolicyBasedRoutesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListPolicyBasedRoutesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListPolicyBasedRoutesResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListPolicyBasedRoutesResponse.Builder

This builder for chaining.

build()

public ListPolicyBasedRoutesResponse build()
Returns
Type Description
ListPolicyBasedRoutesResponse

buildPartial()

public ListPolicyBasedRoutesResponse buildPartial()
Returns
Type Description
ListPolicyBasedRoutesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListPolicyBasedRoutesResponse.Builder clearNextPageToken()

The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result.

string next_page_token = 2;

Returns
Type Description
ListPolicyBasedRoutesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicyBasedRoutes()

public ListPolicyBasedRoutesResponse.Builder clearPolicyBasedRoutes()

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Returns
Type Description
ListPolicyBasedRoutesResponse.Builder

clearUnreachable()

public ListPolicyBasedRoutesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListPolicyBasedRoutesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListPolicyBasedRoutesResponse getDefaultInstanceForType()
Returns
Type Description
ListPolicyBasedRoutesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getPolicyBasedRoutes(int index)

public PolicyBasedRoute getPolicyBasedRoutes(int index)

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Parameter
Name Description
index int
Returns
Type Description
PolicyBasedRoute

getPolicyBasedRoutesBuilder(int index)

public PolicyBasedRoute.Builder getPolicyBasedRoutesBuilder(int index)

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Parameter
Name Description
index int
Returns
Type Description
PolicyBasedRoute.Builder

getPolicyBasedRoutesBuilderList()

public List<PolicyBasedRoute.Builder> getPolicyBasedRoutesBuilderList()

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Returns
Type Description
List<Builder>

getPolicyBasedRoutesCount()

public int getPolicyBasedRoutesCount()

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Returns
Type Description
int

getPolicyBasedRoutesList()

public List<PolicyBasedRoute> getPolicyBasedRoutesList()

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Returns
Type Description
List<PolicyBasedRoute>

getPolicyBasedRoutesOrBuilder(int index)

public PolicyBasedRouteOrBuilder getPolicyBasedRoutesOrBuilder(int index)

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Parameter
Name Description
index int
Returns
Type Description
PolicyBasedRouteOrBuilder

getPolicyBasedRoutesOrBuilderList()

public List<? extends PolicyBasedRouteOrBuilder> getPolicyBasedRoutesOrBuilderList()

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

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

getUnreachable(int index)

public String getUnreachable(int index)

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

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

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListPolicyBasedRoutesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePolicyBasedRoutes(int index)

public ListPolicyBasedRoutesResponse.Builder removePolicyBasedRoutes(int index)

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Parameter
Name Description
index int
Returns
Type Description
ListPolicyBasedRoutesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListPolicyBasedRoutesResponse.Builder setNextPageToken(String value)

The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListPolicyBasedRoutesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListPolicyBasedRoutesResponse.Builder setNextPageTokenBytes(ByteString value)

The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListPolicyBasedRoutesResponse.Builder

This builder for chaining.

setPolicyBasedRoutes(int index, PolicyBasedRoute value)

public ListPolicyBasedRoutesResponse.Builder setPolicyBasedRoutes(int index, PolicyBasedRoute value)

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Parameters
Name Description
index int
value PolicyBasedRoute
Returns
Type Description
ListPolicyBasedRoutesResponse.Builder

setPolicyBasedRoutes(int index, PolicyBasedRoute.Builder builderForValue)

public ListPolicyBasedRoutesResponse.Builder setPolicyBasedRoutes(int index, PolicyBasedRoute.Builder builderForValue)

Policy based routes to be returned.

repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1;

Parameters
Name Description
index int
builderForValue PolicyBasedRoute.Builder
Returns
Type Description
ListPolicyBasedRoutesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

Locations 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
ListPolicyBasedRoutesResponse.Builder

This builder for chaining.