Class YumArtifact.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<YumArtifact.Builder>
com.google.devtools.artifactregistry.v1beta2.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.GeneratedMessage.Builder<YumArtifact.Builder> implements YumArtifactOrBuilder
 A detailed representation of a Yum artifact.
 
Protobuf type google.devtools.artifactregistry.v1beta2.YumArtifact
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public YumArtifact.Builder mergeFrom(YumArtifact other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.