Class VpnConnection.VpcProject.Builder (0.31.0)

public static final class VpnConnection.VpcProject.Builder extends GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder> implements VpnConnection.VpcProjectOrBuilder

Project detail of the VPC network.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public VpnConnection.VpcProject.Builder clear()
Returns
TypeDescription
VpnConnection.VpcProject.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public VpnConnection.VpcProject.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VpnConnection.VpcProject.Builder
Overrides

clearProjectId()

public VpnConnection.VpcProject.Builder clearProjectId()

The project of the VPC to connect to. If not specified, it is the same as the cluster project.

string project_id = 1;

Returns
TypeDescription
VpnConnection.VpcProject.Builder

This builder for chaining.

clearServiceAccount()

public VpnConnection.VpcProject.Builder clearServiceAccount()

Optional. The service account in the VPC project configured by user. It is used to create/delete Cloud Router and Cloud HA VPNs for VPN connection. If this SA is changed during/after a VPN connection is created, you need to remove the Cloud Router and Cloud VPN resources in |project_id|. It is in the form of service-{project_number}@gcp-sa-edgecontainer.iam.gserviceaccount.com.

string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
VpnConnection.VpcProject.Builder

This builder for chaining.

clone()

public VpnConnection.VpcProject.Builder clone()
Returns
TypeDescription
VpnConnection.VpcProject.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProjectId()

public String getProjectId()

The project of the VPC to connect to. If not specified, it is the same as the cluster project.

string project_id = 1;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

The project of the VPC to connect to. If not specified, it is the same as the cluster project.

string project_id = 1;

Returns
TypeDescription
ByteString

The bytes for projectId.

getServiceAccount()

public String getServiceAccount()

Optional. The service account in the VPC project configured by user. It is used to create/delete Cloud Router and Cloud HA VPNs for VPN connection. If this SA is changed during/after a VPN connection is created, you need to remove the Cloud Router and Cloud VPN resources in |project_id|. It is in the form of service-{project_number}@gcp-sa-edgecontainer.iam.gserviceaccount.com.

string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

Optional. The service account in the VPC project configured by user. It is used to create/delete Cloud Router and Cloud HA VPNs for VPN connection. If this SA is changed during/after a VPN connection is created, you need to remove the Cloud Router and Cloud VPN resources in |project_id|. It is in the form of service-{project_number}@gcp-sa-edgecontainer.iam.gserviceaccount.com.

string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for serviceAccount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VpnConnection.VpcProject other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VpnConnection.VpcProject.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VpnConnection.VpcProject.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setProjectId(String value)

public VpnConnection.VpcProject.Builder setProjectId(String value)

The project of the VPC to connect to. If not specified, it is the same as the cluster project.

string project_id = 1;

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
VpnConnection.VpcProject.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public VpnConnection.VpcProject.Builder setProjectIdBytes(ByteString value)

The project of the VPC to connect to. If not specified, it is the same as the cluster project.

string project_id = 1;

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
VpnConnection.VpcProject.Builder

This builder for chaining.

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

public VpnConnection.VpcProject.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VpnConnection.VpcProject.Builder
Overrides

setServiceAccount(String value)

public VpnConnection.VpcProject.Builder setServiceAccount(String value)

Optional. The service account in the VPC project configured by user. It is used to create/delete Cloud Router and Cloud HA VPNs for VPN connection. If this SA is changed during/after a VPN connection is created, you need to remove the Cloud Router and Cloud VPN resources in |project_id|. It is in the form of service-{project_number}@gcp-sa-edgecontainer.iam.gserviceaccount.com.

string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The serviceAccount to set.

Returns
TypeDescription
VpnConnection.VpcProject.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public VpnConnection.VpcProject.Builder setServiceAccountBytes(ByteString value)

Optional. The service account in the VPC project configured by user. It is used to create/delete Cloud Router and Cloud HA VPNs for VPN connection. If this SA is changed during/after a VPN connection is created, you need to remove the Cloud Router and Cloud VPN resources in |project_id|. It is in the form of service-{project_number}@gcp-sa-edgecontainer.iam.gserviceaccount.com.

string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for serviceAccount to set.

Returns
TypeDescription
VpnConnection.VpcProject.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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