Class VpnConnection.VpcProject.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
      • getDefaultInstanceForType

        public VpnConnection.VpcProject getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public VpnConnection.VpcProject build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public VpnConnection.VpcProject buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public VpnConnection.VpcProject.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface VpnConnection.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 interface VpnConnection.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 interface VpnConnection.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 interface VpnConnection.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>
      • mergeUnknownFields

        public final VpnConnection.VpcProject.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.VpcProject.Builder>