Class VpnConnection.VpcProject.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
- com.google.cloud.edgecontainer.v1.VpnConnection.VpcProject.Builder
-
- All Implemented Interfaces:
VpnConnection.VpcProjectOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VpnConnection.VpcProject
public static final class VpnConnection.VpcProject.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder> implements VpnConnection.VpcProjectOrBuilder
Project detail of the VPC network.
Protobuf typegoogle.cloud.edgecontainer.v1.VpnConnection.VpcProject
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VpnConnection.VpcProject.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VpnConnection.VpcProjectbuild()VpnConnection.VpcProjectbuildPartial()VpnConnection.VpcProject.Builderclear()VpnConnection.VpcProject.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)VpnConnection.VpcProject.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)VpnConnection.VpcProject.BuilderclearProjectId()The project of the VPC to connect to.VpnConnection.VpcProject.BuilderclearServiceAccount()Optional.VpnConnection.VpcProject.Builderclone()VpnConnection.VpcProjectgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetProjectId()The project of the VPC to connect to.com.google.protobuf.ByteStringgetProjectIdBytes()The project of the VPC to connect to.StringgetServiceAccount()Optional.com.google.protobuf.ByteStringgetServiceAccountBytes()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()VpnConnection.VpcProject.BuildermergeFrom(VpnConnection.VpcProject other)VpnConnection.VpcProject.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)VpnConnection.VpcProject.BuildermergeFrom(com.google.protobuf.Message other)VpnConnection.VpcProject.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VpnConnection.VpcProject.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VpnConnection.VpcProject.BuildersetProjectId(String value)The project of the VPC to connect to.VpnConnection.VpcProject.BuildersetProjectIdBytes(com.google.protobuf.ByteString value)The project of the VPC to connect to.VpnConnection.VpcProject.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)VpnConnection.VpcProject.BuildersetServiceAccount(String value)Optional.VpnConnection.VpcProject.BuildersetServiceAccountBytes(com.google.protobuf.ByteString value)Optional.VpnConnection.VpcProject.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
clear
public VpnConnection.VpcProject.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
getDefaultInstanceForType
public VpnConnection.VpcProject getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public VpnConnection.VpcProject build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VpnConnection.VpcProject buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VpnConnection.VpcProject.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
setField
public VpnConnection.VpcProject.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
clearField
public VpnConnection.VpcProject.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
clearOneof
public VpnConnection.VpcProject.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
setRepeatedField
public VpnConnection.VpcProject.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
addRepeatedField
public VpnConnection.VpcProject.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
mergeFrom
public VpnConnection.VpcProject.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VpnConnection.VpcProject.Builder>
-
mergeFrom
public VpnConnection.VpcProject.Builder mergeFrom(VpnConnection.VpcProject other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
mergeFrom
public VpnConnection.VpcProject.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VpnConnection.VpcProject.Builder>- Throws:
IOException
-
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;- Specified by:
getProjectIdin interfaceVpnConnection.VpcProjectOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.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;- Specified by:
getProjectIdBytesin interfaceVpnConnection.VpcProjectOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
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;- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setProjectIdBytes
public VpnConnection.VpcProject.Builder setProjectIdBytes(com.google.protobuf.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;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getServiceAccountin interfaceVpnConnection.VpcProjectOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.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];- Specified by:
getServiceAccountBytesin interfaceVpnConnection.VpcProjectOrBuilder- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
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];- Parameters:
value- The serviceAccount to set.- Returns:
- 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:
- This builder for chaining.
-
setServiceAccountBytes
public VpnConnection.VpcProject.Builder setServiceAccountBytes(com.google.protobuf.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];- Parameters:
value- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final VpnConnection.VpcProject.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
mergeUnknownFields
public final VpnConnection.VpcProject.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
-