Class ListGatewaysResponse.Builder (2.42.0)

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

Response message for ApiGatewayService.ListGateways

Protobuf type google.cloud.apigateway.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)

Gateways.

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

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

addAllUnreachableLocations(Iterable<String> values)

public ListGatewaysResponse.Builder addAllUnreachableLocations(Iterable<String> values)

Locations that could not be reached.

repeated string unreachable_locations = 3;

Parameter
Name Description
values Iterable<String>

The unreachableLocations to add.

Returns
Type Description
ListGatewaysResponse.Builder

This builder for chaining.

addGateways(Gateway value)

public ListGatewaysResponse.Builder addGateways(Gateway value)

Gateways.

repeated .google.cloud.apigateway.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)

Gateways.

repeated .google.cloud.apigateway.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)

Gateways.

repeated .google.cloud.apigateway.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)

Gateways.

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

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

addGatewaysBuilder()

public Gateway.Builder addGatewaysBuilder()

Gateways.

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

Returns
Type Description
Gateway.Builder

addGatewaysBuilder(int index)

public Gateway.Builder addGatewaysBuilder(int index)

Gateways.

repeated .google.cloud.apigateway.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

addUnreachableLocations(String value)

public ListGatewaysResponse.Builder addUnreachableLocations(String value)

Locations that could not be reached.

repeated string unreachable_locations = 3;

Parameter
Name Description
value String

The unreachableLocations to add.

Returns
Type Description
ListGatewaysResponse.Builder

This builder for chaining.

addUnreachableLocationsBytes(ByteString value)

public ListGatewaysResponse.Builder addUnreachableLocationsBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable_locations = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachableLocations to add.

Returns
Type Description
ListGatewaysResponse.Builder

This builder for chaining.

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

Gateways.

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

Returns
Type Description
ListGatewaysResponse.Builder

clearNextPageToken()

public ListGatewaysResponse.Builder clearNextPageToken()

Next 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

clearUnreachableLocations()

public ListGatewaysResponse.Builder clearUnreachableLocations()

Locations that could not be reached.

repeated string unreachable_locations = 3;

Returns
Type Description
ListGatewaysResponse.Builder

This builder for chaining.

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)

Gateways.

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

Parameter
Name Description
index int
Returns
Type Description
Gateway

getGatewaysBuilder(int index)

public Gateway.Builder getGatewaysBuilder(int index)

Gateways.

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

Parameter
Name Description
index int
Returns
Type Description
Gateway.Builder

getGatewaysBuilderList()

public List<Gateway.Builder> getGatewaysBuilderList()

Gateways.

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

Returns
Type Description
List<Builder>

getGatewaysCount()

public int getGatewaysCount()

Gateways.

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

Returns
Type Description
int

getGatewaysList()

public List<Gateway> getGatewaysList()

Gateways.

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

Returns
Type Description
List<Gateway>

getGatewaysOrBuilder(int index)

public GatewayOrBuilder getGatewaysOrBuilder(int index)

Gateways.

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

Parameter
Name Description
index int
Returns
Type Description
GatewayOrBuilder

getGatewaysOrBuilderList()

public List<? extends GatewayOrBuilder> getGatewaysOrBuilderList()

Gateways.

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

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

getNextPageToken()

public String getNextPageToken()

Next page token.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Next page token.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachableLocations(int index)

public String getUnreachableLocations(int index)

Locations that could not be reached.

repeated string unreachable_locations = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachableLocations at the given index.

getUnreachableLocationsBytes(int index)

public ByteString getUnreachableLocationsBytes(int index)

Locations that could not be reached.

repeated string unreachable_locations = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachableLocations at the given index.

getUnreachableLocationsCount()

public int getUnreachableLocationsCount()

Locations that could not be reached.

repeated string unreachable_locations = 3;

Returns
Type Description
int

The count of unreachableLocations.

getUnreachableLocationsList()

public ProtocolStringList getUnreachableLocationsList()

Locations that could not be reached.

repeated string unreachable_locations = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachableLocations.

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)

Gateways.

repeated .google.cloud.apigateway.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)

Gateways.

repeated .google.cloud.apigateway.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)

Gateways.

repeated .google.cloud.apigateway.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)

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

Next 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

setUnreachableLocations(int index, String value)

public ListGatewaysResponse.Builder setUnreachableLocations(int index, String value)

Locations that could not be reached.

repeated string unreachable_locations = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachableLocations to set.

Returns
Type Description
ListGatewaysResponse.Builder

This builder for chaining.