Class VpnConnection.Details.Builder (0.51.0)

public static final class VpnConnection.Details.Builder extends GeneratedMessageV3.Builder<VpnConnection.Details.Builder> implements VpnConnection.DetailsOrBuilder

The created connection details.

Protobuf type google.cloud.edgecontainer.v1.VpnConnection.Details

Static Methods

getDescriptor()

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

Methods

addAllCloudVpns(Iterable<? extends VpnConnection.Details.CloudVpn> values)

public VpnConnection.Details.Builder addAllCloudVpns(Iterable<? extends VpnConnection.Details.CloudVpn> values)

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn>
Returns
Type Description
VpnConnection.Details.Builder

addCloudVpns(VpnConnection.Details.CloudVpn value)

public VpnConnection.Details.Builder addCloudVpns(VpnConnection.Details.CloudVpn value)

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Parameter
Name Description
value VpnConnection.Details.CloudVpn
Returns
Type Description
VpnConnection.Details.Builder

addCloudVpns(VpnConnection.Details.CloudVpn.Builder builderForValue)

public VpnConnection.Details.Builder addCloudVpns(VpnConnection.Details.CloudVpn.Builder builderForValue)

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Parameter
Name Description
builderForValue VpnConnection.Details.CloudVpn.Builder
Returns
Type Description
VpnConnection.Details.Builder

addCloudVpns(int index, VpnConnection.Details.CloudVpn value)

public VpnConnection.Details.Builder addCloudVpns(int index, VpnConnection.Details.CloudVpn value)

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Parameters
Name Description
index int
value VpnConnection.Details.CloudVpn
Returns
Type Description
VpnConnection.Details.Builder

addCloudVpns(int index, VpnConnection.Details.CloudVpn.Builder builderForValue)

public VpnConnection.Details.Builder addCloudVpns(int index, VpnConnection.Details.CloudVpn.Builder builderForValue)

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Parameters
Name Description
index int
builderForValue VpnConnection.Details.CloudVpn.Builder
Returns
Type Description
VpnConnection.Details.Builder

addCloudVpnsBuilder()

public VpnConnection.Details.CloudVpn.Builder addCloudVpnsBuilder()

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Returns
Type Description
VpnConnection.Details.CloudVpn.Builder

addCloudVpnsBuilder(int index)

public VpnConnection.Details.CloudVpn.Builder addCloudVpnsBuilder(int index)

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Parameter
Name Description
index int
Returns
Type Description
VpnConnection.Details.CloudVpn.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VpnConnection.Details build()
Returns
Type Description
VpnConnection.Details

buildPartial()

public VpnConnection.Details buildPartial()
Returns
Type Description
VpnConnection.Details

clear()

public VpnConnection.Details.Builder clear()
Returns
Type Description
VpnConnection.Details.Builder
Overrides

clearCloudRouter()

public VpnConnection.Details.Builder clearCloudRouter()

The Cloud Router info.

.google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;

Returns
Type Description
VpnConnection.Details.Builder

clearCloudVpns()

public VpnConnection.Details.Builder clearCloudVpns()

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Returns
Type Description
VpnConnection.Details.Builder

clearError()

public VpnConnection.Details.Builder clearError()

The error message. This is only populated when state=ERROR.

string error = 2;

Returns
Type Description
VpnConnection.Details.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public VpnConnection.Details.Builder clearState()

The state of this connection.

.google.cloud.edgecontainer.v1.VpnConnection.Details.State state = 1;

Returns
Type Description
VpnConnection.Details.Builder

This builder for chaining.

clone()

public VpnConnection.Details.Builder clone()
Returns
Type Description
VpnConnection.Details.Builder
Overrides

getCloudRouter()

public VpnConnection.Details.CloudRouter getCloudRouter()

The Cloud Router info.

.google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;

Returns
Type Description
VpnConnection.Details.CloudRouter

The cloudRouter.

getCloudRouterBuilder()

public VpnConnection.Details.CloudRouter.Builder getCloudRouterBuilder()

The Cloud Router info.

.google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;

Returns
Type Description
VpnConnection.Details.CloudRouter.Builder

getCloudRouterOrBuilder()

public VpnConnection.Details.CloudRouterOrBuilder getCloudRouterOrBuilder()

The Cloud Router info.

.google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;

Returns
Type Description
VpnConnection.Details.CloudRouterOrBuilder

getCloudVpns(int index)

public VpnConnection.Details.CloudVpn getCloudVpns(int index)

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Parameter
Name Description
index int
Returns
Type Description
VpnConnection.Details.CloudVpn

getCloudVpnsBuilder(int index)

public VpnConnection.Details.CloudVpn.Builder getCloudVpnsBuilder(int index)

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Parameter
Name Description
index int
Returns
Type Description
VpnConnection.Details.CloudVpn.Builder

getCloudVpnsBuilderList()

public List<VpnConnection.Details.CloudVpn.Builder> getCloudVpnsBuilderList()

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Returns
Type Description
List<Builder>

getCloudVpnsCount()

public int getCloudVpnsCount()

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Returns
Type Description
int

getCloudVpnsList()

public List<VpnConnection.Details.CloudVpn> getCloudVpnsList()

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Returns
Type Description
List<CloudVpn>

getCloudVpnsOrBuilder(int index)

public VpnConnection.Details.CloudVpnOrBuilder getCloudVpnsOrBuilder(int index)

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Parameter
Name Description
index int
Returns
Type Description
VpnConnection.Details.CloudVpnOrBuilder

getCloudVpnsOrBuilderList()

public List<? extends VpnConnection.Details.CloudVpnOrBuilder> getCloudVpnsOrBuilderList()

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Returns
Type Description
List<? extends com.google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpnOrBuilder>

getDefaultInstanceForType()

public VpnConnection.Details getDefaultInstanceForType()
Returns
Type Description
VpnConnection.Details

getDescriptorForType()

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

getError()

public String getError()

The error message. This is only populated when state=ERROR.

string error = 2;

Returns
Type Description
String

The error.

getErrorBytes()

public ByteString getErrorBytes()

The error message. This is only populated when state=ERROR.

string error = 2;

Returns
Type Description
ByteString

The bytes for error.

getState()

public VpnConnection.Details.State getState()

The state of this connection.

.google.cloud.edgecontainer.v1.VpnConnection.Details.State state = 1;

Returns
Type Description
VpnConnection.Details.State

The state.

getStateValue()

public int getStateValue()

The state of this connection.

.google.cloud.edgecontainer.v1.VpnConnection.Details.State state = 1;

Returns
Type Description
int

The enum numeric value on the wire for state.

hasCloudRouter()

public boolean hasCloudRouter()

The Cloud Router info.

.google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;

Returns
Type Description
boolean

Whether the cloudRouter field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCloudRouter(VpnConnection.Details.CloudRouter value)

public VpnConnection.Details.Builder mergeCloudRouter(VpnConnection.Details.CloudRouter value)

The Cloud Router info.

.google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;

Parameter
Name Description
value VpnConnection.Details.CloudRouter
Returns
Type Description
VpnConnection.Details.Builder

mergeFrom(VpnConnection.Details other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCloudVpns(int index)

public VpnConnection.Details.Builder removeCloudVpns(int index)

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Parameter
Name Description
index int
Returns
Type Description
VpnConnection.Details.Builder

setCloudRouter(VpnConnection.Details.CloudRouter value)

public VpnConnection.Details.Builder setCloudRouter(VpnConnection.Details.CloudRouter value)

The Cloud Router info.

.google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;

Parameter
Name Description
value VpnConnection.Details.CloudRouter
Returns
Type Description
VpnConnection.Details.Builder

setCloudRouter(VpnConnection.Details.CloudRouter.Builder builderForValue)

public VpnConnection.Details.Builder setCloudRouter(VpnConnection.Details.CloudRouter.Builder builderForValue)

The Cloud Router info.

.google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;

Parameter
Name Description
builderForValue VpnConnection.Details.CloudRouter.Builder
Returns
Type Description
VpnConnection.Details.Builder

setCloudVpns(int index, VpnConnection.Details.CloudVpn value)

public VpnConnection.Details.Builder setCloudVpns(int index, VpnConnection.Details.CloudVpn value)

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Parameters
Name Description
index int
value VpnConnection.Details.CloudVpn
Returns
Type Description
VpnConnection.Details.Builder

setCloudVpns(int index, VpnConnection.Details.CloudVpn.Builder builderForValue)

public VpnConnection.Details.Builder setCloudVpns(int index, VpnConnection.Details.CloudVpn.Builder builderForValue)

Each connection has multiple Cloud VPN gateways.

repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;

Parameters
Name Description
index int
builderForValue VpnConnection.Details.CloudVpn.Builder
Returns
Type Description
VpnConnection.Details.Builder

setError(String value)

public VpnConnection.Details.Builder setError(String value)

The error message. This is only populated when state=ERROR.

string error = 2;

Parameter
Name Description
value String

The error to set.

Returns
Type Description
VpnConnection.Details.Builder

This builder for chaining.

setErrorBytes(ByteString value)

public VpnConnection.Details.Builder setErrorBytes(ByteString value)

The error message. This is only populated when state=ERROR.

string error = 2;

Parameter
Name Description
value ByteString

The bytes for error to set.

Returns
Type Description
VpnConnection.Details.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setState(VpnConnection.Details.State value)

public VpnConnection.Details.Builder setState(VpnConnection.Details.State value)

The state of this connection.

.google.cloud.edgecontainer.v1.VpnConnection.Details.State state = 1;

Parameter
Name Description
value VpnConnection.Details.State

The state to set.

Returns
Type Description
VpnConnection.Details.Builder

This builder for chaining.

setStateValue(int value)

public VpnConnection.Details.Builder setStateValue(int value)

The state of this connection.

.google.cloud.edgecontainer.v1.VpnConnection.Details.State state = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
VpnConnection.Details.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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