Class ListGatewaysResponse.Builder (0.9.0)

public static final class ListGatewaysResponse.Builder extends GeneratedMessageV3.Builder<ListGatewaysResponse.Builder> implements ListGatewaysResponseOrBuilder

Response returned by the ListGateways method.

Protobuf type google.cloud.networkservices.v1.ListGatewaysResponse

Static Methods

getDescriptor()

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

Methods

addAllGateways(Iterable<? extends Gateway> values)

public ListGatewaysResponse.Builder addAllGateways(Iterable<? extends Gateway> values)

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

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

addGateways(Gateway value)

public ListGatewaysResponse.Builder addGateways(Gateway value)

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Parameter
Name Description
value Gateway
Returns
Type Description
ListGatewaysResponse.Builder

addGateways(Gateway.Builder builderForValue)

public ListGatewaysResponse.Builder addGateways(Gateway.Builder builderForValue)

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Parameter
Name Description
builderForValue Gateway.Builder
Returns
Type Description
ListGatewaysResponse.Builder

addGateways(int index, Gateway value)

public ListGatewaysResponse.Builder addGateways(int index, Gateway value)

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Parameters
Name Description
index int
value Gateway
Returns
Type Description
ListGatewaysResponse.Builder

addGateways(int index, Gateway.Builder builderForValue)

public ListGatewaysResponse.Builder addGateways(int index, Gateway.Builder builderForValue)

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Parameters
Name Description
index int
builderForValue Gateway.Builder
Returns
Type Description
ListGatewaysResponse.Builder

addGatewaysBuilder()

public Gateway.Builder addGatewaysBuilder()

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Returns
Type Description
Gateway.Builder

addGatewaysBuilder(int index)

public Gateway.Builder addGatewaysBuilder(int index)

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Parameter
Name Description
index int
Returns
Type Description
Gateway.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListGatewaysResponse build()
Returns
Type Description
ListGatewaysResponse

buildPartial()

public ListGatewaysResponse buildPartial()
Returns
Type Description
ListGatewaysResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGateways()

public ListGatewaysResponse.Builder clearGateways()

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Returns
Type Description
ListGatewaysResponse.Builder

clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListGatewaysResponse getDefaultInstanceForType()
Returns
Type Description
ListGatewaysResponse

getDescriptorForType()

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

getGateways(int index)

public Gateway getGateways(int index)

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Parameter
Name Description
index int
Returns
Type Description
Gateway

getGatewaysBuilder(int index)

public Gateway.Builder getGatewaysBuilder(int index)

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Parameter
Name Description
index int
Returns
Type Description
Gateway.Builder

getGatewaysBuilderList()

public List<Gateway.Builder> getGatewaysBuilderList()

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Returns
Type Description
List<Builder>

getGatewaysCount()

public int getGatewaysCount()

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Returns
Type Description
int

getGatewaysList()

public List<Gateway> getGatewaysList()

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Returns
Type Description
List<Gateway>

getGatewaysOrBuilder(int index)

public GatewayOrBuilder getGatewaysOrBuilder(int index)

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Parameter
Name Description
index int
Returns
Type Description
GatewayOrBuilder

getGatewaysOrBuilderList()

public List<? extends GatewayOrBuilder> getGatewaysOrBuilderList()

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeGateways(int index)

public ListGatewaysResponse.Builder removeGateways(int index)

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Parameter
Name Description
index int
Returns
Type Description
ListGatewaysResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGateways(int index, Gateway value)

public ListGatewaysResponse.Builder setGateways(int index, Gateway value)

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Parameters
Name Description
index int
value Gateway
Returns
Type Description
ListGatewaysResponse.Builder

setGateways(int index, Gateway.Builder builderForValue)

public ListGatewaysResponse.Builder setGateways(int index, Gateway.Builder builderForValue)

List of Gateway resources.

repeated .google.cloud.networkservices.v1.Gateway gateways = 1;

Parameters
Name Description
index int
builderForValue Gateway.Builder
Returns
Type Description
ListGatewaysResponse.Builder

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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