Class ListPolicyBasedRoutesResponse.Builder (1.27.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRoute>
Returns
TypeDescription
ListPolicyBasedRoutesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valuePolicyBasedRoute
Returns
TypeDescription
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
NameDescription
builderForValuePolicyBasedRoute.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePolicyBasedRoute
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePolicyBasedRoute.Builder
Returns
TypeDescription
ListPolicyBasedRoutesResponse.Builder

addPolicyBasedRoutesBuilder()

public PolicyBasedRoute.Builder addPolicyBasedRoutesBuilder()

Policy based routes to be returned.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PolicyBasedRoute.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListPolicyBasedRoutesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListPolicyBasedRoutesResponse.Builder

This builder for chaining.

build()

public ListPolicyBasedRoutesResponse build()
Returns
TypeDescription
ListPolicyBasedRoutesResponse

buildPartial()

public ListPolicyBasedRoutesResponse buildPartial()
Returns
TypeDescription
ListPolicyBasedRoutesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListPolicyBasedRoutesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListPolicyBasedRoutesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListPolicyBasedRoutesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ListPolicyBasedRoutesResponse.Builder

clearUnreachable()

public ListPolicyBasedRoutesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListPolicyBasedRoutesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListPolicyBasedRoutesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListPolicyBasedRoutesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getPolicyBasedRoutesCount()

public int getPolicyBasedRoutesCount()

Policy based routes to be returned.

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

Returns
TypeDescription
int

getPolicyBasedRoutesList()

public List<PolicyBasedRoute> getPolicyBasedRoutesList()

Policy based routes to be returned.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PolicyBasedRouteOrBuilder

getPolicyBasedRoutesOrBuilderList()

public List<? extends PolicyBasedRouteOrBuilder> getPolicyBasedRoutesOrBuilderList()

Policy based routes to be returned.

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

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListPolicyBasedRoutesResponse other)

public ListPolicyBasedRoutesResponse.Builder mergeFrom(ListPolicyBasedRoutesResponse other)
Parameter
NameDescription
otherListPolicyBasedRoutesResponse
Returns
TypeDescription
ListPolicyBasedRoutesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListPolicyBasedRoutesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListPolicyBasedRoutesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListPolicyBasedRoutesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valuePolicyBasedRoute
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePolicyBasedRoute.Builder
Returns
TypeDescription
ListPolicyBasedRoutesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ListPolicyBasedRoutesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListPolicyBasedRoutesResponse.Builder

This builder for chaining.