Class AptArtifact.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AptArtifact.Builder>
-
- com.google.devtools.artifactregistry.v1.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.GeneratedMessageV3.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 typegoogle.devtools.artifactregistry.v1.AptArtifact
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AptArtifact.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AptArtifact
build()
AptArtifact
buildPartial()
AptArtifact.Builder
clear()
AptArtifact.Builder
clearArchitecture()
Output only.AptArtifact.Builder
clearComponent()
Output only.AptArtifact.Builder
clearControlFile()
Output only.AptArtifact.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AptArtifact.Builder
clearName()
Output only.AptArtifact.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AptArtifact.Builder
clearPackageName()
Output only.AptArtifact.Builder
clearPackageType()
Output only.AptArtifact.Builder
clone()
String
getArchitecture()
Output only.com.google.protobuf.ByteString
getArchitectureBytes()
Output only.String
getComponent()
Output only.com.google.protobuf.ByteString
getComponentBytes()
Output only.com.google.protobuf.ByteString
getControlFile()
Output only.AptArtifact
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.String
getPackageName()
Output only.com.google.protobuf.ByteString
getPackageNameBytes()
Output only.AptArtifact.PackageType
getPackageType()
Output only.int
getPackageTypeValue()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AptArtifact.Builder
mergeFrom(AptArtifact other)
AptArtifact.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AptArtifact.Builder
mergeFrom(com.google.protobuf.Message other)
AptArtifact.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AptArtifact.Builder
setArchitecture(String value)
Output only.AptArtifact.Builder
setArchitectureBytes(com.google.protobuf.ByteString value)
Output only.AptArtifact.Builder
setComponent(String value)
Output only.AptArtifact.Builder
setComponentBytes(com.google.protobuf.ByteString value)
Output only.AptArtifact.Builder
setControlFile(com.google.protobuf.ByteString value)
Output only.AptArtifact.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AptArtifact.Builder
setName(String value)
Output only.AptArtifact.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.AptArtifact.Builder
setPackageName(String value)
Output only.AptArtifact.Builder
setPackageNameBytes(com.google.protobuf.ByteString value)
Output only.AptArtifact.Builder
setPackageType(AptArtifact.PackageType value)
Output only.AptArtifact.Builder
setPackageTypeValue(int value)
Output only.AptArtifact.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AptArtifact.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AptArtifact.Builder>
-
clear
public AptArtifact.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AptArtifact.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AptArtifact.Builder>
-
getDefaultInstanceForType
public AptArtifact getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AptArtifact build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AptArtifact buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AptArtifact.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AptArtifact.Builder>
-
setField
public AptArtifact.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AptArtifact.Builder>
-
clearField
public AptArtifact.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AptArtifact.Builder>
-
clearOneof
public AptArtifact.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AptArtifact.Builder>
-
setRepeatedField
public AptArtifact.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AptArtifact.Builder>
-
addRepeatedField
public AptArtifact.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AptArtifact.Builder>
-
mergeFrom
public AptArtifact.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AptArtifact.Builder>
-
mergeFrom
public AptArtifact.Builder mergeFrom(AptArtifact other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AptArtifact.Builder>
-
mergeFrom
public AptArtifact.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 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:
getNameBytes
in interfaceAptArtifactOrBuilder
- 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 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:
getPackageNameBytes
in interfaceAptArtifactOrBuilder
- 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.v1.AptArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getPackageTypeValue
in interfaceAptArtifactOrBuilder
- 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.v1.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.v1.AptArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getPackageType
in interfaceAptArtifactOrBuilder
- Returns:
- The packageType.
-
setPackageType
public AptArtifact.Builder setPackageType(AptArtifact.PackageType value)
Output only. An artifact is a binary or source package.
.google.devtools.artifactregistry.v1.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.v1.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 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:
getArchitectureBytes
in interfaceAptArtifactOrBuilder
- 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 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:
getComponentBytes
in interfaceAptArtifactOrBuilder
- 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 interfaceAptArtifactOrBuilder
- 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.
-
setUnknownFields
public final AptArtifact.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AptArtifact.Builder>
-
mergeUnknownFields
public final AptArtifact.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AptArtifact.Builder>
-
-