Class ListAgentGatewaysResponse.Builder (0.51.0)

public static final class ListAgentGatewaysResponse.Builder extends GeneratedMessage.Builder<ListAgentGatewaysResponse.Builder> implements ListAgentGatewaysResponseOrBuilder

Response returned by the ListAgentGateways method.

Protobuf type google.cloud.networkservices.v1.ListAgentGatewaysResponse

Static Methods

getDescriptor()

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

Methods

addAgentGateways(AgentGateway value)

public ListAgentGatewaysResponse.Builder addAgentGateways(AgentGateway value)

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Parameter
Name Description
value AgentGateway
Returns
Type Description
ListAgentGatewaysResponse.Builder

addAgentGateways(AgentGateway.Builder builderForValue)

public ListAgentGatewaysResponse.Builder addAgentGateways(AgentGateway.Builder builderForValue)

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Parameter
Name Description
builderForValue AgentGateway.Builder
Returns
Type Description
ListAgentGatewaysResponse.Builder

addAgentGateways(int index, AgentGateway value)

public ListAgentGatewaysResponse.Builder addAgentGateways(int index, AgentGateway value)

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Parameters
Name Description
index int
value AgentGateway
Returns
Type Description
ListAgentGatewaysResponse.Builder

addAgentGateways(int index, AgentGateway.Builder builderForValue)

public ListAgentGatewaysResponse.Builder addAgentGateways(int index, AgentGateway.Builder builderForValue)

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Parameters
Name Description
index int
builderForValue AgentGateway.Builder
Returns
Type Description
ListAgentGatewaysResponse.Builder

addAgentGatewaysBuilder()

public AgentGateway.Builder addAgentGatewaysBuilder()

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Returns
Type Description
AgentGateway.Builder

addAgentGatewaysBuilder(int index)

public AgentGateway.Builder addAgentGatewaysBuilder(int index)

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Parameter
Name Description
index int
Returns
Type Description
AgentGateway.Builder

addAllAgentGateways(Iterable<? extends AgentGateway> values)

public ListAgentGatewaysResponse.Builder addAllAgentGateways(Iterable<? extends AgentGateway> values)

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

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

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListAgentGatewaysResponse build()
Returns
Type Description
ListAgentGatewaysResponse

buildPartial()

public ListAgentGatewaysResponse buildPartial()
Returns
Type Description
ListAgentGatewaysResponse

clear()

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

clearAgentGateways()

public ListAgentGatewaysResponse.Builder clearAgentGateways()

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Returns
Type Description
ListAgentGatewaysResponse.Builder

clearNextPageToken()

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

This builder for chaining.

clearUnreachable()

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

This builder for chaining.

getAgentGateways(int index)

public AgentGateway getAgentGateways(int index)

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Parameter
Name Description
index int
Returns
Type Description
AgentGateway

getAgentGatewaysBuilder(int index)

public AgentGateway.Builder getAgentGatewaysBuilder(int index)

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Parameter
Name Description
index int
Returns
Type Description
AgentGateway.Builder

getAgentGatewaysBuilderList()

public List<AgentGateway.Builder> getAgentGatewaysBuilderList()

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Returns
Type Description
List<Builder>

getAgentGatewaysCount()

public int getAgentGatewaysCount()

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Returns
Type Description
int

getAgentGatewaysList()

public List<AgentGateway> getAgentGatewaysList()

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Returns
Type Description
List<AgentGateway>

getAgentGatewaysOrBuilder(int index)

public AgentGatewayOrBuilder getAgentGatewaysOrBuilder(int index)

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Parameter
Name Description
index int
Returns
Type Description
AgentGatewayOrBuilder

getAgentGatewaysOrBuilderList()

public List<? extends AgentGatewayOrBuilder> getAgentGatewaysOrBuilderList()

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

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

getDefaultInstanceForType()

public ListAgentGatewaysResponse getDefaultInstanceForType()
Returns
Type Description
ListAgentGatewaysResponse

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.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeAgentGateways(int index)

public ListAgentGatewaysResponse.Builder removeAgentGateways(int index)

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Parameter
Name Description
index int
Returns
Type Description
ListAgentGatewaysResponse.Builder

setAgentGateways(int index, AgentGateway value)

public ListAgentGatewaysResponse.Builder setAgentGateways(int index, AgentGateway value)

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Parameters
Name Description
index int
value AgentGateway
Returns
Type Description
ListAgentGatewaysResponse.Builder

setAgentGateways(int index, AgentGateway.Builder builderForValue)

public ListAgentGatewaysResponse.Builder setAgentGateways(int index, AgentGateway.Builder builderForValue)

List of AgentGateway resources.

repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1;

Parameters
Name Description
index int
builderForValue AgentGateway.Builder
Returns
Type Description
ListAgentGatewaysResponse.Builder

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

setUnreachable(int index, String value)

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

This builder for chaining.