Class ListGatewaysResponse.Builder (2.24.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.apigateway.v1.Gateway>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The unreachableLocations to add.

Returns
TypeDescription
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
NameDescription
valueGateway
Returns
TypeDescription
ListGatewaysResponse.Builder

addGateways(Gateway.Builder builderForValue)

public ListGatewaysResponse.Builder addGateways(Gateway.Builder builderForValue)

Gateways.

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

Parameter
NameDescription
builderForValueGateway.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueGateway
Returns
TypeDescription
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
NameDescription
indexint
builderForValueGateway.Builder
Returns
TypeDescription
ListGatewaysResponse.Builder

addGatewaysBuilder()

public Gateway.Builder addGatewaysBuilder()

Gateways.

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

Returns
TypeDescription
Gateway.Builder

addGatewaysBuilder(int index)

public Gateway.Builder addGatewaysBuilder(int index)

Gateways.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Gateway.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachableLocations(String value)

public ListGatewaysResponse.Builder addUnreachableLocations(String value)

Locations that could not be reached.

repeated string unreachable_locations = 3;

Parameter
NameDescription
valueString

The unreachableLocations to add.

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

The bytes of the unreachableLocations to add.

Returns
TypeDescription
ListGatewaysResponse.Builder

This builder for chaining.

build()

public ListGatewaysResponse build()
Returns
TypeDescription
ListGatewaysResponse

buildPartial()

public ListGatewaysResponse buildPartial()
Returns
TypeDescription
ListGatewaysResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListGatewaysResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListGatewaysResponse.Builder
Overrides

clearGateways()

public ListGatewaysResponse.Builder clearGateways()

Gateways.

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

Returns
TypeDescription
ListGatewaysResponse.Builder

clearNextPageToken()

public ListGatewaysResponse.Builder clearNextPageToken()

Next page token.

string next_page_token = 2;

Returns
TypeDescription
ListGatewaysResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListGatewaysResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListGatewaysResponse.Builder
Overrides

clearUnreachableLocations()

public ListGatewaysResponse.Builder clearUnreachableLocations()

Locations that could not be reached.

repeated string unreachable_locations = 3;

Returns
TypeDescription
ListGatewaysResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListGatewaysResponse getDefaultInstanceForType()
Returns
TypeDescription
ListGatewaysResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGateways(int index)

public Gateway getGateways(int index)

Gateways.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Gateway

getGatewaysBuilder(int index)

public Gateway.Builder getGatewaysBuilder(int index)

Gateways.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Gateway.Builder

getGatewaysBuilderList()

public List<Gateway.Builder> getGatewaysBuilderList()

Gateways.

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

Returns
TypeDescription
List<Builder>

getGatewaysCount()

public int getGatewaysCount()

Gateways.

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

Returns
TypeDescription
int

getGatewaysList()

public List<Gateway> getGatewaysList()

Gateways.

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

Returns
TypeDescription
List<Gateway>

getGatewaysOrBuilder(int index)

public GatewayOrBuilder getGatewaysOrBuilder(int index)

Gateways.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
GatewayOrBuilder

getGatewaysOrBuilderList()

public List<? extends GatewayOrBuilder> getGatewaysOrBuilderList()

Gateways.

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

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

getNextPageToken()

public String getNextPageToken()

Next page token.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Next page token.

string next_page_token = 2;

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

The index of the element to return.

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

The index of the value to return.

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

The count of unreachableLocations.

getUnreachableLocationsList()

public ProtocolStringList getUnreachableLocationsList()

Locations that could not be reached.

repeated string unreachable_locations = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the unreachableLocations.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListGatewaysResponse other)

public ListGatewaysResponse.Builder mergeFrom(ListGatewaysResponse other)
Parameter
NameDescription
otherListGatewaysResponse
Returns
TypeDescription
ListGatewaysResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListGatewaysResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListGatewaysResponse.Builder
Overrides

removeGateways(int index)

public ListGatewaysResponse.Builder removeGateways(int index)

Gateways.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListGatewaysResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListGatewaysResponse.Builder setNextPageToken(String value)

Next page token.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListGatewaysResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListGatewaysResponse.Builder setNextPageTokenBytes(ByteString value)

Next page token.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListGatewaysResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachableLocations to set.

Returns
TypeDescription
ListGatewaysResponse.Builder

This builder for chaining.