Class Volume.Builder

  • All Implemented Interfaces:
    VolumeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Volume

    public static final class Volume.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
    implements VolumeOrBuilder
     Volume represents a named volume in a container.
     
    Protobuf type google.cloud.run.v2.Volume
    • 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<Volume.Builder>
      • clear

        public Volume.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.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<Volume.Builder>
      • getDefaultInstanceForType

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

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

        public Volume buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Volume.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • setField

        public Volume.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                       Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • clearField

        public Volume.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • clearOneof

        public Volume.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • setRepeatedField

        public Volume.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<Volume.Builder>
      • addRepeatedField

        public Volume.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<Volume.Builder>
      • mergeFrom

        public Volume.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Volume.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • mergeFrom

        public Volume.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<Volume.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Required. Volume's name.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getName in interface VolumeOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. Volume's name.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNameBytes in interface VolumeOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Volume.Builder setName​(String value)
         Required. Volume's name.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Volume.Builder clearName()
         Required. Volume's name.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Volume.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. Volume's name.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasSecret

        public boolean hasSecret()
         Secret represents a secret that should populate this volume.
         
        .google.cloud.run.v2.SecretVolumeSource secret = 2;
        Specified by:
        hasSecret in interface VolumeOrBuilder
        Returns:
        Whether the secret field is set.
      • getSecret

        public SecretVolumeSource getSecret()
         Secret represents a secret that should populate this volume.
         
        .google.cloud.run.v2.SecretVolumeSource secret = 2;
        Specified by:
        getSecret in interface VolumeOrBuilder
        Returns:
        The secret.
      • setSecret

        public Volume.Builder setSecret​(SecretVolumeSource value)
         Secret represents a secret that should populate this volume.
         
        .google.cloud.run.v2.SecretVolumeSource secret = 2;
      • setSecret

        public Volume.Builder setSecret​(SecretVolumeSource.Builder builderForValue)
         Secret represents a secret that should populate this volume.
         
        .google.cloud.run.v2.SecretVolumeSource secret = 2;
      • mergeSecret

        public Volume.Builder mergeSecret​(SecretVolumeSource value)
         Secret represents a secret that should populate this volume.
         
        .google.cloud.run.v2.SecretVolumeSource secret = 2;
      • clearSecret

        public Volume.Builder clearSecret()
         Secret represents a secret that should populate this volume.
         
        .google.cloud.run.v2.SecretVolumeSource secret = 2;
      • getSecretBuilder

        public SecretVolumeSource.Builder getSecretBuilder()
         Secret represents a secret that should populate this volume.
         
        .google.cloud.run.v2.SecretVolumeSource secret = 2;
      • hasCloudSqlInstance

        public boolean hasCloudSqlInstance()
         For Cloud SQL volumes, contains the specific instances that should be
         mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
         more information on how to connect Cloud SQL and Cloud Run.
         
        .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;
        Specified by:
        hasCloudSqlInstance in interface VolumeOrBuilder
        Returns:
        Whether the cloudSqlInstance field is set.
      • getCloudSqlInstance

        public CloudSqlInstance getCloudSqlInstance()
         For Cloud SQL volumes, contains the specific instances that should be
         mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
         more information on how to connect Cloud SQL and Cloud Run.
         
        .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;
        Specified by:
        getCloudSqlInstance in interface VolumeOrBuilder
        Returns:
        The cloudSqlInstance.
      • setCloudSqlInstance

        public Volume.Builder setCloudSqlInstance​(CloudSqlInstance value)
         For Cloud SQL volumes, contains the specific instances that should be
         mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
         more information on how to connect Cloud SQL and Cloud Run.
         
        .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;
      • setCloudSqlInstance

        public Volume.Builder setCloudSqlInstance​(CloudSqlInstance.Builder builderForValue)
         For Cloud SQL volumes, contains the specific instances that should be
         mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
         more information on how to connect Cloud SQL and Cloud Run.
         
        .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;
      • mergeCloudSqlInstance

        public Volume.Builder mergeCloudSqlInstance​(CloudSqlInstance value)
         For Cloud SQL volumes, contains the specific instances that should be
         mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
         more information on how to connect Cloud SQL and Cloud Run.
         
        .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;
      • clearCloudSqlInstance

        public Volume.Builder clearCloudSqlInstance()
         For Cloud SQL volumes, contains the specific instances that should be
         mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
         more information on how to connect Cloud SQL and Cloud Run.
         
        .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;
      • getCloudSqlInstanceBuilder

        public CloudSqlInstance.Builder getCloudSqlInstanceBuilder()
         For Cloud SQL volumes, contains the specific instances that should be
         mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
         more information on how to connect Cloud SQL and Cloud Run.
         
        .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;
      • getCloudSqlInstanceOrBuilder

        public CloudSqlInstanceOrBuilder getCloudSqlInstanceOrBuilder()
         For Cloud SQL volumes, contains the specific instances that should be
         mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
         more information on how to connect Cloud SQL and Cloud Run.
         
        .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;
        Specified by:
        getCloudSqlInstanceOrBuilder in interface VolumeOrBuilder
      • setUnknownFields

        public final Volume.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<Volume.Builder>
      • mergeUnknownFields

        public final Volume.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<Volume.Builder>