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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public VpnConnection.VpcProject.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public VpnConnection.VpcProject build()
Returns
buildPartial()
public VpnConnection.VpcProject buildPartial()
Returns
clear()
public VpnConnection.VpcProject.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public VpnConnection.VpcProject.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public VpnConnection.VpcProject.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public VpnConnection.VpcProject.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public VpnConnection.VpcProject getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
Type | Description |
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
Type | Description |
ByteString | The bytes for serviceAccount.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(VpnConnection.VpcProject other)
public VpnConnection.VpcProject.Builder mergeFrom(VpnConnection.VpcProject other)
Parameter
Returns
public VpnConnection.VpcProject.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public VpnConnection.VpcProject.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VpnConnection.VpcProject.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public VpnConnection.VpcProject.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public VpnConnection.VpcProject.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Name | Description |
value | String
The serviceAccount to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for serviceAccount to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final VpnConnection.VpcProject.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides