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.htmlProtobuf type
google.devtools.artifactregistry.v1beta2.AptArtifact-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.intOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AptArtifact other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setArchitecture(String value) Output only.setArchitectureBytes(com.google.protobuf.ByteString value) Output only.setComponent(String value) Output only.setComponentBytes(com.google.protobuf.ByteString value) Output only.setControlFile(com.google.protobuf.ByteString value) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setPackageName(String value) Output only.setPackageNameBytes(com.google.protobuf.ByteString value) Output only.Output only.setPackageTypeValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AptArtifact.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AptArtifact.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AptArtifact.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AptArtifact.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AptArtifact.Builder>- Throws:
IOException
-
getName
Output only. The Artifact Registry resource name of the artifact.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceAptArtifactOrBuilder- 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:
getNameBytesin interfaceAptArtifactOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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
Output only. The Apt package name of the artifact.
string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPackageNamein interfaceAptArtifactOrBuilder- 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:
getPackageNameBytesin interfaceAptArtifactOrBuilder- Returns:
- The bytes for packageName.
-
setPackageName
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
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
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:
getPackageTypeValuein interfaceAptArtifactOrBuilder- Returns:
- The enum numeric value on the wire for packageType.
-
setPackageTypeValue
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
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:
getPackageTypein interfaceAptArtifactOrBuilder- Returns:
- The packageType.
-
setPackageType
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
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
Output only. Operating system architecture of the artifact.
string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getArchitecturein interfaceAptArtifactOrBuilder- 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:
getArchitectureBytesin interfaceAptArtifactOrBuilder- Returns:
- The bytes for architecture.
-
setArchitecture
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
Output only. Operating system architecture of the artifact.
string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setArchitectureBytes
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
Output only. Repository component of the artifact.
string component = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getComponentin interfaceAptArtifactOrBuilder- 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:
getComponentBytesin interfaceAptArtifactOrBuilder- Returns:
- The bytes for component.
-
setComponent
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
Output only. Repository component of the artifact.
string component = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setComponentBytes
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:
getControlFilein interfaceAptArtifactOrBuilder- Returns:
- The controlFile.
-
setControlFile
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
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.
-