Class VpnConnection.VpcProject.Builder (0.52.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public VpnConnection.VpcProject.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

public VpnConnection.VpcProject.Builder clone()
Returns
Type Description
VpnConnection.VpcProject.Builder
Overrides

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public VpnConnection.VpcProject.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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