Class ListServiceLbPoliciesResponse.Builder (0.39.0)

public static final class ListServiceLbPoliciesResponse.Builder extends GeneratedMessage.Builder<ListServiceLbPoliciesResponse.Builder> implements ListServiceLbPoliciesResponseOrBuilder

Response returned by the ListServiceLbPolicies method.

Protobuf type google.cloud.networkservices.v1.ListServiceLbPoliciesResponse

Static Methods

getDescriptor()

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

Methods

addAllServiceLbPolicies(Iterable<? extends ServiceLbPolicy> values)

public ListServiceLbPoliciesResponse.Builder addAllServiceLbPolicies(Iterable<? extends ServiceLbPolicy> values)

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

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

addAllUnreachable(Iterable<String> values)

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

Unreachable resources. Populated when the request attempts to list all resources across all supported locations, while some locations are temporarily unavailable.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListServiceLbPoliciesResponse.Builder

This builder for chaining.

addServiceLbPolicies(ServiceLbPolicy value)

public ListServiceLbPoliciesResponse.Builder addServiceLbPolicies(ServiceLbPolicy value)

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Parameter
Name Description
value ServiceLbPolicy
Returns
Type Description
ListServiceLbPoliciesResponse.Builder

addServiceLbPolicies(ServiceLbPolicy.Builder builderForValue)

public ListServiceLbPoliciesResponse.Builder addServiceLbPolicies(ServiceLbPolicy.Builder builderForValue)

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Parameter
Name Description
builderForValue ServiceLbPolicy.Builder
Returns
Type Description
ListServiceLbPoliciesResponse.Builder

addServiceLbPolicies(int index, ServiceLbPolicy value)

public ListServiceLbPoliciesResponse.Builder addServiceLbPolicies(int index, ServiceLbPolicy value)

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Parameters
Name Description
index int
value ServiceLbPolicy
Returns
Type Description
ListServiceLbPoliciesResponse.Builder

addServiceLbPolicies(int index, ServiceLbPolicy.Builder builderForValue)

public ListServiceLbPoliciesResponse.Builder addServiceLbPolicies(int index, ServiceLbPolicy.Builder builderForValue)

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Parameters
Name Description
index int
builderForValue ServiceLbPolicy.Builder
Returns
Type Description
ListServiceLbPoliciesResponse.Builder

addServiceLbPoliciesBuilder()

public ServiceLbPolicy.Builder addServiceLbPoliciesBuilder()

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Returns
Type Description
ServiceLbPolicy.Builder

addServiceLbPoliciesBuilder(int index)

public ServiceLbPolicy.Builder addServiceLbPoliciesBuilder(int index)

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
ServiceLbPolicy.Builder

addUnreachable(String value)

public ListServiceLbPoliciesResponse.Builder addUnreachable(String value)

Unreachable resources. Populated when the request attempts to list all resources across all supported locations, while some locations are temporarily unavailable.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListServiceLbPoliciesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListServiceLbPoliciesResponse.Builder addUnreachableBytes(ByteString value)

Unreachable resources. Populated when the request attempts to list all resources across all supported locations, while some locations are temporarily unavailable.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListServiceLbPoliciesResponse.Builder

This builder for chaining.

build()

public ListServiceLbPoliciesResponse build()
Returns
Type Description
ListServiceLbPoliciesResponse

buildPartial()

public ListServiceLbPoliciesResponse buildPartial()
Returns
Type Description
ListServiceLbPoliciesResponse

clear()

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

clearNextPageToken()

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

This builder for chaining.

clearServiceLbPolicies()

public ListServiceLbPoliciesResponse.Builder clearServiceLbPolicies()

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Returns
Type Description
ListServiceLbPoliciesResponse.Builder

clearUnreachable()

public ListServiceLbPoliciesResponse.Builder clearUnreachable()

Unreachable resources. Populated when the request attempts to list all resources across all supported locations, while some locations are temporarily unavailable.

repeated string unreachable = 3;

Returns
Type Description
ListServiceLbPoliciesResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListServiceLbPoliciesResponse getDefaultInstanceForType()
Returns
Type Description
ListServiceLbPoliciesResponse

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.

getServiceLbPolicies(int index)

public ServiceLbPolicy getServiceLbPolicies(int index)

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
ServiceLbPolicy

getServiceLbPoliciesBuilder(int index)

public ServiceLbPolicy.Builder getServiceLbPoliciesBuilder(int index)

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
ServiceLbPolicy.Builder

getServiceLbPoliciesBuilderList()

public List<ServiceLbPolicy.Builder> getServiceLbPoliciesBuilderList()

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Returns
Type Description
List<Builder>

getServiceLbPoliciesCount()

public int getServiceLbPoliciesCount()

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Returns
Type Description
int

getServiceLbPoliciesList()

public List<ServiceLbPolicy> getServiceLbPoliciesList()

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Returns
Type Description
List<ServiceLbPolicy>

getServiceLbPoliciesOrBuilder(int index)

public ServiceLbPolicyOrBuilder getServiceLbPoliciesOrBuilder(int index)

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
ServiceLbPolicyOrBuilder

getServiceLbPoliciesOrBuilderList()

public List<? extends ServiceLbPolicyOrBuilder> getServiceLbPoliciesOrBuilderList()

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

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

getUnreachable(int index)

public String getUnreachable(int index)

Unreachable resources. Populated when the request attempts to list all resources across all supported locations, while some locations are temporarily unavailable.

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 attempts to list all resources across all supported locations, while some locations are temporarily unavailable.

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 attempts to list all resources across all supported locations, while some locations are temporarily unavailable.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Unreachable resources. Populated when the request attempts to list all resources across all supported locations, while some locations are temporarily unavailable.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeServiceLbPolicies(int index)

public ListServiceLbPoliciesResponse.Builder removeServiceLbPolicies(int index)

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
ListServiceLbPoliciesResponse.Builder

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

setServiceLbPolicies(int index, ServiceLbPolicy value)

public ListServiceLbPoliciesResponse.Builder setServiceLbPolicies(int index, ServiceLbPolicy value)

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Parameters
Name Description
index int
value ServiceLbPolicy
Returns
Type Description
ListServiceLbPoliciesResponse.Builder

setServiceLbPolicies(int index, ServiceLbPolicy.Builder builderForValue)

public ListServiceLbPoliciesResponse.Builder setServiceLbPolicies(int index, ServiceLbPolicy.Builder builderForValue)

List of ServiceLbPolicy resources.

repeated .google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policies = 1;

Parameters
Name Description
index int
builderForValue ServiceLbPolicy.Builder
Returns
Type Description
ListServiceLbPoliciesResponse.Builder

setUnreachable(int index, String value)

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

Unreachable resources. Populated when the request attempts to list all resources across all supported locations, while some locations are temporarily unavailable.

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

This builder for chaining.