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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VpnConnection.VpcProject
build()
VpnConnection.VpcProject
buildPartial()
VpnConnection.VpcProject.Builder
clear()
VpnConnection.VpcProject.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
VpnConnection.VpcProject.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
VpnConnection.VpcProject.Builder
clearProjectId()
The project of the VPC to connect to.VpnConnection.VpcProject.Builder
clearServiceAccount()
Optional.VpnConnection.VpcProject.Builder
clone()
VpnConnection.VpcProject
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getProjectId()
The project of the VPC to connect to.com.google.protobuf.ByteString
getProjectIdBytes()
The project of the VPC to connect to.String
getServiceAccount()
Optional.com.google.protobuf.ByteString
getServiceAccountBytes()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
VpnConnection.VpcProject.Builder
mergeFrom(VpnConnection.VpcProject other)
VpnConnection.VpcProject.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
VpnConnection.VpcProject.Builder
mergeFrom(com.google.protobuf.Message other)
VpnConnection.VpcProject.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
VpnConnection.VpcProject.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VpnConnection.VpcProject.Builder
setProjectId(String value)
The project of the VPC to connect to.VpnConnection.VpcProject.Builder
setProjectIdBytes(com.google.protobuf.ByteString value)
The project of the VPC to connect to.VpnConnection.VpcProject.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
VpnConnection.VpcProject.Builder
setServiceAccount(String value)
Optional.VpnConnection.VpcProject.Builder
setServiceAccountBytes(com.google.protobuf.ByteString value)
Optional.VpnConnection.VpcProject.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
clear
public VpnConnection.VpcProject.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
getDefaultInstanceForType
public VpnConnection.VpcProject getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public VpnConnection.VpcProject build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VpnConnection.VpcProject buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VpnConnection.VpcProject.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
setField
public VpnConnection.VpcProject.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
clearField
public VpnConnection.VpcProject.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
clearOneof
public VpnConnection.VpcProject.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
addRepeatedField
public VpnConnection.VpcProject.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
mergeFrom
public VpnConnection.VpcProject.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VpnConnection.VpcProject.Builder>
-
mergeFrom
public VpnConnection.VpcProject.Builder mergeFrom(VpnConnection.VpcProject other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getProjectId
in 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:
getProjectIdBytes
in 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:
getServiceAccount
in 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:
getServiceAccountBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
mergeUnknownFields
public final VpnConnection.VpcProject.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
-
-