Class ContainerImage.Builder

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

    public static final class ContainerImage.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ContainerImage.Builder>
    implements ContainerImageOrBuilder
     Definition of a container image for starting a notebook instance with the
     environment installed in a container.
     
    Protobuf type google.cloud.notebooks.v1beta1.ContainerImage
    • 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<ContainerImage.Builder>
      • clear

        public ContainerImage.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<ContainerImage.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<ContainerImage.Builder>
      • getDefaultInstanceForType

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

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

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

        public ContainerImage.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<ContainerImage.Builder>
      • setField

        public ContainerImage.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<ContainerImage.Builder>
      • clearField

        public ContainerImage.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<ContainerImage.Builder>
      • clearOneof

        public ContainerImage.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<ContainerImage.Builder>
      • setRepeatedField

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

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

        public ContainerImage.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<ContainerImage.Builder>
      • isInitialized

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

        public ContainerImage.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<ContainerImage.Builder>
        Throws:
        IOException
      • getRepository

        public String getRepository()
         Required. The path to the container image repository. For example:
         `gcr.io/{project_id}/{image_name}`
         
        string repository = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRepository in interface ContainerImageOrBuilder
        Returns:
        The repository.
      • getRepositoryBytes

        public com.google.protobuf.ByteString getRepositoryBytes()
         Required. The path to the container image repository. For example:
         `gcr.io/{project_id}/{image_name}`
         
        string repository = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRepositoryBytes in interface ContainerImageOrBuilder
        Returns:
        The bytes for repository.
      • setRepository

        public ContainerImage.Builder setRepository​(String value)
         Required. The path to the container image repository. For example:
         `gcr.io/{project_id}/{image_name}`
         
        string repository = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The repository to set.
        Returns:
        This builder for chaining.
      • clearRepository

        public ContainerImage.Builder clearRepository()
         Required. The path to the container image repository. For example:
         `gcr.io/{project_id}/{image_name}`
         
        string repository = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setRepositoryBytes

        public ContainerImage.Builder setRepositoryBytes​(com.google.protobuf.ByteString value)
         Required. The path to the container image repository. For example:
         `gcr.io/{project_id}/{image_name}`
         
        string repository = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for repository to set.
        Returns:
        This builder for chaining.
      • getTag

        public String getTag()
         The tag of the container image. If not specified, this defaults
         to the latest tag.
         
        string tag = 2;
        Specified by:
        getTag in interface ContainerImageOrBuilder
        Returns:
        The tag.
      • getTagBytes

        public com.google.protobuf.ByteString getTagBytes()
         The tag of the container image. If not specified, this defaults
         to the latest tag.
         
        string tag = 2;
        Specified by:
        getTagBytes in interface ContainerImageOrBuilder
        Returns:
        The bytes for tag.
      • setTag

        public ContainerImage.Builder setTag​(String value)
         The tag of the container image. If not specified, this defaults
         to the latest tag.
         
        string tag = 2;
        Parameters:
        value - The tag to set.
        Returns:
        This builder for chaining.
      • clearTag

        public ContainerImage.Builder clearTag()
         The tag of the container image. If not specified, this defaults
         to the latest tag.
         
        string tag = 2;
        Returns:
        This builder for chaining.
      • setTagBytes

        public ContainerImage.Builder setTagBytes​(com.google.protobuf.ByteString value)
         The tag of the container image. If not specified, this defaults
         to the latest tag.
         
        string tag = 2;
        Parameters:
        value - The bytes for tag to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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