Class VpnConnection.Details.Builder (0.12.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn>
Returns
TypeDescription
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
NameDescription
valueVpnConnection.Details.CloudVpn
Returns
TypeDescription
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
NameDescription
builderForValueVpnConnection.Details.CloudVpn.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueVpnConnection.Details.CloudVpn
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVpnConnection.Details.CloudVpn.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
VpnConnection.Details.CloudVpn.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VpnConnection.Details build()
Returns
TypeDescription
VpnConnection.Details

buildPartial()

public VpnConnection.Details buildPartial()
Returns
TypeDescription
VpnConnection.Details

clear()

public VpnConnection.Details.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
VpnConnection.Details.Builder

clearError()

public VpnConnection.Details.Builder clearError()

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

string error = 2;

Returns
TypeDescription
VpnConnection.Details.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public VpnConnection.Details.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
VpnConnection.Details.Builder

This builder for chaining.

clone()

public VpnConnection.Details.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpnOrBuilder>

getDefaultInstanceForType()

public VpnConnection.Details getDefaultInstanceForType()
Returns
TypeDescription
VpnConnection.Details

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getError()

public String getError()

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

string error = 2;

Returns
TypeDescription
String

The error.

getErrorBytes()

public ByteString getErrorBytes()

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

string error = 2;

Returns
TypeDescription
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
TypeDescription
VpnConnection.Details.State

The state.

getStateValue()

public int getStateValue()

The state of this connection.

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

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

Whether the cloudRouter field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueVpnConnection.Details.CloudRouter
Returns
TypeDescription
VpnConnection.Details.Builder

mergeFrom(VpnConnection.Details other)

public VpnConnection.Details.Builder mergeFrom(VpnConnection.Details other)
Parameter
NameDescription
otherVpnConnection.Details
Returns
TypeDescription
VpnConnection.Details.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VpnConnection.Details.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueVpnConnection.Details.CloudRouter
Returns
TypeDescription
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
NameDescription
builderForValueVpnConnection.Details.CloudRouter.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueVpnConnection.Details.CloudVpn
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVpnConnection.Details.CloudVpn.Builder
Returns
TypeDescription
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
NameDescription
valueString

The error to set.

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

The bytes for error to set.

Returns
TypeDescription
VpnConnection.Details.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VpnConnection.Details.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueVpnConnection.Details.State

The state to set.

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

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

Returns
TypeDescription
VpnConnection.Details.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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