Class ListVpnConnectionsResponse.Builder (0.49.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
Type Description
Descriptor

Methods

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.edgecontainer.v1.VpnConnection>
Returns
Type Description
ListVpnConnectionsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListVpnConnectionsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
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
Name Description
value VpnConnection
Returns
Type Description
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
Name Description
builderForValue VpnConnection.Builder
Returns
Type Description
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
Name Description
index int
value VpnConnection
Returns
Type Description
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
Name Description
index int
builderForValue VpnConnection.Builder
Returns
Type Description
ListVpnConnectionsResponse.Builder

addVpnConnectionsBuilder()

public VpnConnection.Builder addVpnConnectionsBuilder()

VpnConnections in the location.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
VpnConnection.Builder

build()

public ListVpnConnectionsResponse build()
Returns
Type Description
ListVpnConnectionsResponse

buildPartial()

public ListVpnConnectionsResponse buildPartial()
Returns
Type Description
ListVpnConnectionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListVpnConnectionsResponse.Builder clearNextPageToken()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
Type Description
ListVpnConnectionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListVpnConnectionsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
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
Type Description
ListVpnConnectionsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListVpnConnectionsResponse getDefaultInstanceForType()
Returns
Type Description
ListVpnConnectionsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

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)

Locations that could not be reached.

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

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
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
Name Description
index int
Returns
Type Description
VpnConnection

getVpnConnectionsBuilder(int index)

public VpnConnection.Builder getVpnConnectionsBuilder(int index)

VpnConnections in the location.

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

Parameter
Name Description
index int
Returns
Type Description
VpnConnection.Builder

getVpnConnectionsBuilderList()

public List<VpnConnection.Builder> getVpnConnectionsBuilderList()

VpnConnections in the location.

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

Returns
Type Description
List<Builder>

getVpnConnectionsCount()

public int getVpnConnectionsCount()

VpnConnections in the location.

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

Returns
Type Description
int

getVpnConnectionsList()

public List<VpnConnection> getVpnConnectionsList()

VpnConnections in the location.

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

Returns
Type Description
List<VpnConnection>

getVpnConnectionsOrBuilder(int index)

public VpnConnectionOrBuilder getVpnConnectionsOrBuilder(int index)

VpnConnections in the location.

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

Parameter
Name Description
index int
Returns
Type Description
VpnConnectionOrBuilder

getVpnConnectionsOrBuilderList()

public List<? extends VpnConnectionOrBuilder> getVpnConnectionsOrBuilderList()

VpnConnections in the location.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListVpnConnectionsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListVpnConnectionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
ListVpnConnectionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListVpnConnectionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListVpnConnectionsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListVpnConnectionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
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
Name Description
index int
value VpnConnection
Returns
Type Description
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
Name Description
index int
builderForValue VpnConnection.Builder
Returns
Type Description
ListVpnConnectionsResponse.Builder