Class YumArtifact.Builder

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

    public static final class YumArtifact.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<YumArtifact.Builder>
    implements YumArtifactOrBuilder
     A detailed representation of a Yum artifact.
     
    Protobuf type google.devtools.artifactregistry.v1beta2.YumArtifact
    • 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<YumArtifact.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public String getName()
         Output only. The Artifact Registry resource name of the artifact.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface YumArtifactOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The Artifact Registry resource name of the artifact.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface YumArtifactOrBuilder
        Returns:
        The bytes for name.
      • setName

        public YumArtifact.Builder setName​(String value)
         Output only. The Artifact Registry resource name of the artifact.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public YumArtifact.Builder clearName()
         Output only. The Artifact Registry resource name of the artifact.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public YumArtifact.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The Artifact Registry resource name of the artifact.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getPackageName

        public String getPackageName()
         Output only. The yum package name of the artifact.
         
        string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPackageName in interface YumArtifactOrBuilder
        Returns:
        The packageName.
      • getPackageNameBytes

        public com.google.protobuf.ByteString getPackageNameBytes()
         Output only. The yum package name of the artifact.
         
        string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPackageNameBytes in interface YumArtifactOrBuilder
        Returns:
        The bytes for packageName.
      • setPackageName

        public YumArtifact.Builder setPackageName​(String value)
         Output only. The yum package name of the artifact.
         
        string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The packageName to set.
        Returns:
        This builder for chaining.
      • clearPackageName

        public YumArtifact.Builder clearPackageName()
         Output only. The yum package name of the artifact.
         
        string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setPackageNameBytes

        public YumArtifact.Builder setPackageNameBytes​(com.google.protobuf.ByteString value)
         Output only. The yum package name of the artifact.
         
        string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for packageName to set.
        Returns:
        This builder for chaining.
      • getPackageTypeValue

        public int getPackageTypeValue()
         Output only. An artifact is a binary or source package.
         
        .google.devtools.artifactregistry.v1beta2.YumArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPackageTypeValue in interface YumArtifactOrBuilder
        Returns:
        The enum numeric value on the wire for packageType.
      • setPackageTypeValue

        public YumArtifact.Builder setPackageTypeValue​(int value)
         Output only. An artifact is a binary or source package.
         
        .google.devtools.artifactregistry.v1beta2.YumArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for packageType to set.
        Returns:
        This builder for chaining.
      • getPackageType

        public YumArtifact.PackageType getPackageType()
         Output only. An artifact is a binary or source package.
         
        .google.devtools.artifactregistry.v1beta2.YumArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPackageType in interface YumArtifactOrBuilder
        Returns:
        The packageType.
      • setPackageType

        public YumArtifact.Builder setPackageType​(YumArtifact.PackageType value)
         Output only. An artifact is a binary or source package.
         
        .google.devtools.artifactregistry.v1beta2.YumArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The packageType to set.
        Returns:
        This builder for chaining.
      • clearPackageType

        public YumArtifact.Builder clearPackageType()
         Output only. An artifact is a binary or source package.
         
        .google.devtools.artifactregistry.v1beta2.YumArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getArchitecture

        public String getArchitecture()
         Output only. Operating system architecture of the artifact.
         
        string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getArchitecture in interface YumArtifactOrBuilder
        Returns:
        The architecture.
      • getArchitectureBytes

        public com.google.protobuf.ByteString getArchitectureBytes()
         Output only. Operating system architecture of the artifact.
         
        string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getArchitectureBytes in interface YumArtifactOrBuilder
        Returns:
        The bytes for architecture.
      • setArchitecture

        public YumArtifact.Builder setArchitecture​(String value)
         Output only. Operating system architecture of the artifact.
         
        string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The architecture to set.
        Returns:
        This builder for chaining.
      • clearArchitecture

        public YumArtifact.Builder clearArchitecture()
         Output only. Operating system architecture of the artifact.
         
        string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setArchitectureBytes

        public YumArtifact.Builder setArchitectureBytes​(com.google.protobuf.ByteString value)
         Output only. Operating system architecture of the artifact.
         
        string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for architecture to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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