Class CreateVpnConnectionRequest.Builder (0.39.0)

public static final class CreateVpnConnectionRequest.Builder extends GeneratedMessageV3.Builder<CreateVpnConnectionRequest.Builder> implements CreateVpnConnectionRequestOrBuilder

Creates a VPN connection.

Protobuf type google.cloud.edgecontainer.v1.CreateVpnConnectionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateVpnConnectionRequest build()
Returns
Type Description
CreateVpnConnectionRequest

buildPartial()

public CreateVpnConnectionRequest buildPartial()
Returns
Type Description
CreateVpnConnectionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateVpnConnectionRequest.Builder clearParent()

Required. The parent location where this vpn connection will be created.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateVpnConnectionRequest.Builder

This builder for chaining.

clearRequestId()

public CreateVpnConnectionRequest.Builder clearRequestId()

A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is only idempotent if request_id is provided.

string request_id = 4;

Returns
Type Description
CreateVpnConnectionRequest.Builder

This builder for chaining.

clearVpnConnection()

public CreateVpnConnectionRequest.Builder clearVpnConnection()

Required. The VPN connection to create.

.google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateVpnConnectionRequest.Builder

clearVpnConnectionId()

public CreateVpnConnectionRequest.Builder clearVpnConnectionId()

Required. The VPN connection identifier.

string vpn_connection_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateVpnConnectionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateVpnConnectionRequest getDefaultInstanceForType()
Returns
Type Description
CreateVpnConnectionRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent location where this vpn connection will be created.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent location where this vpn connection will be created.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is only idempotent if request_id is provided.

string request_id = 4;

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is only idempotent if request_id is provided.

string request_id = 4;

Returns
Type Description
ByteString

The bytes for requestId.

getVpnConnection()

public VpnConnection getVpnConnection()

Required. The VPN connection to create.

.google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VpnConnection

The vpnConnection.

getVpnConnectionBuilder()

public VpnConnection.Builder getVpnConnectionBuilder()

Required. The VPN connection to create.

.google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VpnConnection.Builder

getVpnConnectionId()

public String getVpnConnectionId()

Required. The VPN connection identifier.

string vpn_connection_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The vpnConnectionId.

getVpnConnectionIdBytes()

public ByteString getVpnConnectionIdBytes()

Required. The VPN connection identifier.

string vpn_connection_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for vpnConnectionId.

getVpnConnectionOrBuilder()

public VpnConnectionOrBuilder getVpnConnectionOrBuilder()

Required. The VPN connection to create.

.google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VpnConnectionOrBuilder

hasVpnConnection()

public boolean hasVpnConnection()

Required. The VPN connection to create.

.google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the vpnConnection field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateVpnConnectionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVpnConnection(VpnConnection value)

public CreateVpnConnectionRequest.Builder mergeVpnConnection(VpnConnection value)

Required. The VPN connection to create.

.google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value VpnConnection
Returns
Type Description
CreateVpnConnectionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateVpnConnectionRequest.Builder setParent(String value)

Required. The parent location where this vpn connection will be created.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateVpnConnectionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateVpnConnectionRequest.Builder setParentBytes(ByteString value)

Required. The parent location where this vpn connection will be created.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateVpnConnectionRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateVpnConnectionRequest.Builder setRequestId(String value)

A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is only idempotent if request_id is provided.

string request_id = 4;

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateVpnConnectionRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateVpnConnectionRequest.Builder setRequestIdBytes(ByteString value)

A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is only idempotent if request_id is provided.

string request_id = 4;

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateVpnConnectionRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVpnConnection(VpnConnection value)

public CreateVpnConnectionRequest.Builder setVpnConnection(VpnConnection value)

Required. The VPN connection to create.

.google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value VpnConnection
Returns
Type Description
CreateVpnConnectionRequest.Builder

setVpnConnection(VpnConnection.Builder builderForValue)

public CreateVpnConnectionRequest.Builder setVpnConnection(VpnConnection.Builder builderForValue)

Required. The VPN connection to create.

.google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue VpnConnection.Builder
Returns
Type Description
CreateVpnConnectionRequest.Builder

setVpnConnectionId(String value)

public CreateVpnConnectionRequest.Builder setVpnConnectionId(String value)

Required. The VPN connection identifier.

string vpn_connection_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The vpnConnectionId to set.

Returns
Type Description
CreateVpnConnectionRequest.Builder

This builder for chaining.

setVpnConnectionIdBytes(ByteString value)

public CreateVpnConnectionRequest.Builder setVpnConnectionIdBytes(ByteString value)

Required. The VPN connection identifier.

string vpn_connection_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for vpnConnectionId to set.

Returns
Type Description
CreateVpnConnectionRequest.Builder

This builder for chaining.