Class AptArtifact.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AptArtifact.Builder>
com.google.devtools.artifactregistry.v1beta2.AptArtifact.Builder
All Implemented Interfaces:
AptArtifactOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AptArtifact

public static final class AptArtifact.Builder extends com.google.protobuf.GeneratedMessage.Builder<AptArtifact.Builder> implements AptArtifactOrBuilder
 A detailed representation of an Apt artifact. Information in the record
 is derived from the archive's control file.
 See https://www.debian.org/doc/debian-policy/ch-controlfields.html
 
Protobuf type google.devtools.artifactregistry.v1beta2.AptArtifact
  • 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<AptArtifact.Builder>
    • clear

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

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

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

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

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

      public AptArtifact.Builder mergeFrom(AptArtifact other)
    • isInitialized

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

      public AptArtifact.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<AptArtifact.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 AptArtifactOrBuilder
      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 AptArtifactOrBuilder
      Returns:
      The bytes for name.
    • setName

      public AptArtifact.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 AptArtifact.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 AptArtifact.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 Apt package name of the artifact.
       
      string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPackageName in interface AptArtifactOrBuilder
      Returns:
      The packageName.
    • getPackageNameBytes

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

      public AptArtifact.Builder setPackageName(String value)
       Output only. The Apt 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 AptArtifact.Builder clearPackageName()
       Output only. The Apt package name of the artifact.
       
      string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setPackageNameBytes

      public AptArtifact.Builder setPackageNameBytes(com.google.protobuf.ByteString value)
       Output only. The Apt 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.AptArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPackageTypeValue in interface AptArtifactOrBuilder
      Returns:
      The enum numeric value on the wire for packageType.
    • setPackageTypeValue

      public AptArtifact.Builder setPackageTypeValue(int value)
       Output only. An artifact is a binary or source package.
       
      .google.devtools.artifactregistry.v1beta2.AptArtifact.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 AptArtifact.PackageType getPackageType()
       Output only. An artifact is a binary or source package.
       
      .google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPackageType in interface AptArtifactOrBuilder
      Returns:
      The packageType.
    • setPackageType

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

      public AptArtifact.Builder clearPackageType()
       Output only. An artifact is a binary or source package.
       
      .google.devtools.artifactregistry.v1beta2.AptArtifact.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 AptArtifactOrBuilder
      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 AptArtifactOrBuilder
      Returns:
      The bytes for architecture.
    • setArchitecture

      public AptArtifact.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 AptArtifact.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 AptArtifact.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.
    • getComponent

      public String getComponent()
       Output only. Repository component of the artifact.
       
      string component = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getComponent in interface AptArtifactOrBuilder
      Returns:
      The component.
    • getComponentBytes

      public com.google.protobuf.ByteString getComponentBytes()
       Output only. Repository component of the artifact.
       
      string component = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getComponentBytes in interface AptArtifactOrBuilder
      Returns:
      The bytes for component.
    • setComponent

      public AptArtifact.Builder setComponent(String value)
       Output only. Repository component of the artifact.
       
      string component = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The component to set.
      Returns:
      This builder for chaining.
    • clearComponent

      public AptArtifact.Builder clearComponent()
       Output only. Repository component of the artifact.
       
      string component = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setComponentBytes

      public AptArtifact.Builder setComponentBytes(com.google.protobuf.ByteString value)
       Output only. Repository component of the artifact.
       
      string component = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for component to set.
      Returns:
      This builder for chaining.
    • getControlFile

      public com.google.protobuf.ByteString getControlFile()
       Output only. Contents of the artifact's control metadata file.
       
      bytes control_file = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getControlFile in interface AptArtifactOrBuilder
      Returns:
      The controlFile.
    • setControlFile

      public AptArtifact.Builder setControlFile(com.google.protobuf.ByteString value)
       Output only. Contents of the artifact's control metadata file.
       
      bytes control_file = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The controlFile to set.
      Returns:
      This builder for chaining.
    • clearControlFile

      public AptArtifact.Builder clearControlFile()
       Output only. Contents of the artifact's control metadata file.
       
      bytes control_file = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.