Class VpnConnection.VpcProject.Builder (0.80.0)

public static final class VpnConnection.VpcProject.Builder extends GeneratedMessage.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
Type Description
Descriptor

Methods

build()

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

buildPartial()

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

clear()

public VpnConnection.VpcProject.Builder clear()
Returns
Type Description
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
Type Description
VpnConnection.VpcProject.Builder

This builder for chaining.

clearServiceAccount() (deprecated)

public VpnConnection.VpcProject.Builder clearServiceAccount()

Deprecated. google.cloud.edgecontainer.v1.VpnConnection.VpcProject.service_account is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=680

Optional. Deprecated: do not use.

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

Returns
Type Description
VpnConnection.VpcProject.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for projectId.

getServiceAccount() (deprecated)

public String getServiceAccount()

Deprecated. google.cloud.edgecontainer.v1.VpnConnection.VpcProject.service_account is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=680

Optional. Deprecated: do not use.

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

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes() (deprecated)

public ByteString getServiceAccountBytes()

Deprecated. google.cloud.edgecontainer.v1.VpnConnection.VpcProject.service_account is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=680

Optional. Deprecated: do not use.

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

Returns
Type Description
ByteString

The bytes for serviceAccount.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VpnConnection.VpcProject other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public VpnConnection.VpcProject.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value String

The projectId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
VpnConnection.VpcProject.Builder

This builder for chaining.

setServiceAccount(String value) (deprecated)

public VpnConnection.VpcProject.Builder setServiceAccount(String value)

Deprecated. google.cloud.edgecontainer.v1.VpnConnection.VpcProject.service_account is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=680

Optional. Deprecated: do not use.

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

Parameter
Name Description
value String

The serviceAccount to set.

Returns
Type Description
VpnConnection.VpcProject.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value) (deprecated)

public VpnConnection.VpcProject.Builder setServiceAccountBytes(ByteString value)

Deprecated. google.cloud.edgecontainer.v1.VpnConnection.VpcProject.service_account is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=680

Optional. Deprecated: do not use.

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

Parameter
Name Description
value ByteString

The bytes for serviceAccount to set.

Returns
Type Description
VpnConnection.VpcProject.Builder

This builder for chaining.