Class CreateVpnConnectionRequest.Builder (0.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateVpnConnectionRequest build()
Returns
TypeDescription
CreateVpnConnectionRequest

buildPartial()

public CreateVpnConnectionRequest buildPartial()
Returns
TypeDescription
CreateVpnConnectionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVpnConnectionId()

public CreateVpnConnectionRequest.Builder clearVpnConnectionId()

Required. The VPN connection identifier.

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

Returns
TypeDescription
CreateVpnConnectionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateVpnConnectionRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateVpnConnectionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
VpnConnection.Builder

getVpnConnectionId()

public String getVpnConnectionId()

Required. The VPN connection identifier.

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

Returns
TypeDescription
String

The vpnConnectionId.

getVpnConnectionIdBytes()

public ByteString getVpnConnectionIdBytes()

Required. The VPN connection identifier.

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

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

Whether the vpnConnection field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateVpnConnectionRequest other)

public CreateVpnConnectionRequest.Builder mergeFrom(CreateVpnConnectionRequest other)
Parameter
NameDescription
otherCreateVpnConnectionRequest
Returns
TypeDescription
CreateVpnConnectionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateVpnConnectionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVpnConnection
Returns
TypeDescription
CreateVpnConnectionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateVpnConnectionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The requestId to set.

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

The bytes for requestId to set.

Returns
TypeDescription
CreateVpnConnectionRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateVpnConnectionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVpnConnection
Returns
TypeDescription
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
NameDescription
builderForValueVpnConnection.Builder
Returns
TypeDescription
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
NameDescription
valueString

The vpnConnectionId to set.

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

The bytes for vpnConnectionId to set.

Returns
TypeDescription
CreateVpnConnectionRequest.Builder

This builder for chaining.