Class ListVpnConnectionsResponse.Builder (0.24.0)

public static final class ListVpnConnectionsResponse.Builder extends GeneratedMessageV3.Builder<ListVpnConnectionsResponse.Builder> implements ListVpnConnectionsResponseOrBuilder

List of VPN connections in a location.

Protobuf type google.cloud.edgecontainer.v1.ListVpnConnectionsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListVpnConnectionsResponse.Builder

This builder for chaining.

addAllVpnConnections(Iterable<? extends VpnConnection> values)

public ListVpnConnectionsResponse.Builder addAllVpnConnections(Iterable<? extends VpnConnection> values)

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.edgecontainer.v1.VpnConnection>
Returns
TypeDescription
ListVpnConnectionsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListVpnConnectionsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListVpnConnectionsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListVpnConnectionsResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListVpnConnectionsResponse.Builder

This builder for chaining.

addVpnConnections(VpnConnection value)

public ListVpnConnectionsResponse.Builder addVpnConnections(VpnConnection value)

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Parameter
NameDescription
valueVpnConnection
Returns
TypeDescription
ListVpnConnectionsResponse.Builder

addVpnConnections(VpnConnection.Builder builderForValue)

public ListVpnConnectionsResponse.Builder addVpnConnections(VpnConnection.Builder builderForValue)

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Parameter
NameDescription
builderForValueVpnConnection.Builder
Returns
TypeDescription
ListVpnConnectionsResponse.Builder

addVpnConnections(int index, VpnConnection value)

public ListVpnConnectionsResponse.Builder addVpnConnections(int index, VpnConnection value)

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Parameters
NameDescription
indexint
valueVpnConnection
Returns
TypeDescription
ListVpnConnectionsResponse.Builder

addVpnConnections(int index, VpnConnection.Builder builderForValue)

public ListVpnConnectionsResponse.Builder addVpnConnections(int index, VpnConnection.Builder builderForValue)

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Parameters
NameDescription
indexint
builderForValueVpnConnection.Builder
Returns
TypeDescription
ListVpnConnectionsResponse.Builder

addVpnConnectionsBuilder()

public VpnConnection.Builder addVpnConnectionsBuilder()

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Returns
TypeDescription
VpnConnection.Builder

addVpnConnectionsBuilder(int index)

public VpnConnection.Builder addVpnConnectionsBuilder(int index)

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VpnConnection.Builder

build()

public ListVpnConnectionsResponse build()
Returns
TypeDescription
ListVpnConnectionsResponse

buildPartial()

public ListVpnConnectionsResponse buildPartial()
Returns
TypeDescription
ListVpnConnectionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListVpnConnectionsResponse.Builder clearNextPageToken()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
TypeDescription
ListVpnConnectionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListVpnConnectionsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListVpnConnectionsResponse.Builder

This builder for chaining.

clearVpnConnections()

public ListVpnConnectionsResponse.Builder clearVpnConnections()

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Returns
TypeDescription
ListVpnConnectionsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListVpnConnectionsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListVpnConnectionsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the unreachable.

getVpnConnections(int index)

public VpnConnection getVpnConnections(int index)

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VpnConnection

getVpnConnectionsBuilder(int index)

public VpnConnection.Builder getVpnConnectionsBuilder(int index)

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VpnConnection.Builder

getVpnConnectionsBuilderList()

public List<VpnConnection.Builder> getVpnConnectionsBuilderList()

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Returns
TypeDescription
List<Builder>

getVpnConnectionsCount()

public int getVpnConnectionsCount()

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Returns
TypeDescription
int

getVpnConnectionsList()

public List<VpnConnection> getVpnConnectionsList()

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Returns
TypeDescription
List<VpnConnection>

getVpnConnectionsOrBuilder(int index)

public VpnConnectionOrBuilder getVpnConnectionsOrBuilder(int index)

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VpnConnectionOrBuilder

getVpnConnectionsOrBuilderList()

public List<? extends VpnConnectionOrBuilder> getVpnConnectionsOrBuilderList()

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Returns
TypeDescription
List<? extends com.google.cloud.edgecontainer.v1.VpnConnectionOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListVpnConnectionsResponse other)

public ListVpnConnectionsResponse.Builder mergeFrom(ListVpnConnectionsResponse other)
Parameter
NameDescription
otherListVpnConnectionsResponse
Returns
TypeDescription
ListVpnConnectionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeVpnConnections(int index)

public ListVpnConnectionsResponse.Builder removeVpnConnections(int index)

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListVpnConnectionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListVpnConnectionsResponse.Builder setNextPageToken(String value)

A token to retrieve next page of results.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListVpnConnectionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListVpnConnectionsResponse.Builder setNextPageTokenBytes(ByteString value)

A token to retrieve next page of results.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListVpnConnectionsResponse.Builder

This builder for chaining.

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

public ListVpnConnectionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListVpnConnectionsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListVpnConnectionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListVpnConnectionsResponse.Builder
Overrides

setUnreachable(int index, String value)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListVpnConnectionsResponse.Builder

This builder for chaining.

setVpnConnections(int index, VpnConnection value)

public ListVpnConnectionsResponse.Builder setVpnConnections(int index, VpnConnection value)

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Parameters
NameDescription
indexint
valueVpnConnection
Returns
TypeDescription
ListVpnConnectionsResponse.Builder

setVpnConnections(int index, VpnConnection.Builder builderForValue)

public ListVpnConnectionsResponse.Builder setVpnConnections(int index, VpnConnection.Builder builderForValue)

VpnConnections in the location.

repeated .google.cloud.edgecontainer.v1.VpnConnection vpn_connections = 1;

Parameters
NameDescription
indexint
builderForValueVpnConnection.Builder
Returns
TypeDescription
ListVpnConnectionsResponse.Builder