Package com.google.cloud.osconfig.v1beta
Class GuestPolicies.AptRepository.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.AptRepository.Builder>
com.google.cloud.osconfig.v1beta.GuestPolicies.AptRepository.Builder
- All Implemented Interfaces:
GuestPolicies.AptRepositoryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GuestPolicies.AptRepository
public static final class GuestPolicies.AptRepository.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.AptRepository.Builder>
implements GuestPolicies.AptRepositoryOrBuilder
Represents a single Apt package repository. This repository is added to a repo file that is stored at `/etc/apt/sources.list.d/google_osconfig.list`.Protobuf type
google.cloud.osconfig.v1beta.AptRepository-
Method Summary
Modifier and TypeMethodDescriptionaddAllComponents(Iterable<String> values) Required.addComponents(String value) Required.addComponentsBytes(com.google.protobuf.ByteString value) Required.build()clear()Type of archive files in this repository.Required.Required.URI of the key file for this repository.clearUri()Required.Type of archive files in this repository.intType of archive files in this repository.getComponents(int index) Required.com.google.protobuf.ByteStringgetComponentsBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.URI of the key file for this repository.com.google.protobuf.ByteStringURI of the key file for this repository.getUri()Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Type of archive files in this repository.setArchiveTypeValue(int value) Type of archive files in this repository.setComponents(int index, String value) Required.setDistribution(String value) Required.setDistributionBytes(com.google.protobuf.ByteString value) Required.URI of the key file for this repository.setGpgKeyBytes(com.google.protobuf.ByteString value) URI of the key file for this repository.Required.setUriBytes(com.google.protobuf.ByteString value) Required.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<GuestPolicies.AptRepository.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<GuestPolicies.AptRepository.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<GuestPolicies.AptRepository.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<GuestPolicies.AptRepository.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GuestPolicies.AptRepository.Builder>
-
mergeFrom
public GuestPolicies.AptRepository.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<GuestPolicies.AptRepository.Builder>- Throws:
IOException
-
getArchiveTypeValue
public int getArchiveTypeValue()Type of archive files in this repository. The default behavior is DEB.
.google.cloud.osconfig.v1beta.AptRepository.ArchiveType archive_type = 1;- Specified by:
getArchiveTypeValuein interfaceGuestPolicies.AptRepositoryOrBuilder- Returns:
- The enum numeric value on the wire for archiveType.
-
setArchiveTypeValue
Type of archive files in this repository. The default behavior is DEB.
.google.cloud.osconfig.v1beta.AptRepository.ArchiveType archive_type = 1;- Parameters:
value- The enum numeric value on the wire for archiveType to set.- Returns:
- This builder for chaining.
-
getArchiveType
Type of archive files in this repository. The default behavior is DEB.
.google.cloud.osconfig.v1beta.AptRepository.ArchiveType archive_type = 1;- Specified by:
getArchiveTypein interfaceGuestPolicies.AptRepositoryOrBuilder- Returns:
- The archiveType.
-
setArchiveType
public GuestPolicies.AptRepository.Builder setArchiveType(GuestPolicies.AptRepository.ArchiveType value) Type of archive files in this repository. The default behavior is DEB.
.google.cloud.osconfig.v1beta.AptRepository.ArchiveType archive_type = 1;- Parameters:
value- The archiveType to set.- Returns:
- This builder for chaining.
-
clearArchiveType
Type of archive files in this repository. The default behavior is DEB.
.google.cloud.osconfig.v1beta.AptRepository.ArchiveType archive_type = 1;- Returns:
- This builder for chaining.
-
getUri
Required. URI for this repository.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getUriin interfaceGuestPolicies.AptRepositoryOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()Required. URI for this repository.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getUriBytesin interfaceGuestPolicies.AptRepositoryOrBuilder- Returns:
- The bytes for uri.
-
setUri
Required. URI for this repository.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
Required. URI for this repository.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setUriBytes
Required. URI for this repository.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getDistribution
Required. Distribution of this repository.
string distribution = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDistributionin interfaceGuestPolicies.AptRepositoryOrBuilder- Returns:
- The distribution.
-
getDistributionBytes
public com.google.protobuf.ByteString getDistributionBytes()Required. Distribution of this repository.
string distribution = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDistributionBytesin interfaceGuestPolicies.AptRepositoryOrBuilder- Returns:
- The bytes for distribution.
-
setDistribution
Required. Distribution of this repository.
string distribution = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The distribution to set.- Returns:
- This builder for chaining.
-
clearDistribution
Required. Distribution of this repository.
string distribution = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDistributionBytes
public GuestPolicies.AptRepository.Builder setDistributionBytes(com.google.protobuf.ByteString value) Required. Distribution of this repository.
string distribution = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for distribution to set.- Returns:
- This builder for chaining.
-
getComponentsList
public com.google.protobuf.ProtocolStringList getComponentsList()Required. List of components for this repository. Must contain at least one item.
repeated string components = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getComponentsListin interfaceGuestPolicies.AptRepositoryOrBuilder- Returns:
- A list containing the components.
-
getComponentsCount
public int getComponentsCount()Required. List of components for this repository. Must contain at least one item.
repeated string components = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getComponentsCountin interfaceGuestPolicies.AptRepositoryOrBuilder- Returns:
- The count of components.
-
getComponents
Required. List of components for this repository. Must contain at least one item.
repeated string components = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getComponentsin interfaceGuestPolicies.AptRepositoryOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The components at the given index.
-
getComponentsBytes
public com.google.protobuf.ByteString getComponentsBytes(int index) Required. List of components for this repository. Must contain at least one item.
repeated string components = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getComponentsBytesin interfaceGuestPolicies.AptRepositoryOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the components at the given index.
-
setComponents
Required. List of components for this repository. Must contain at least one item.
repeated string components = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The components to set.- Returns:
- This builder for chaining.
-
addComponents
Required. List of components for this repository. Must contain at least one item.
repeated string components = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The components to add.- Returns:
- This builder for chaining.
-
addAllComponents
Required. List of components for this repository. Must contain at least one item.
repeated string components = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The components to add.- Returns:
- This builder for chaining.
-
clearComponents
Required. List of components for this repository. Must contain at least one item.
repeated string components = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
addComponentsBytes
Required. List of components for this repository. Must contain at least one item.
repeated string components = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes of the components to add.- Returns:
- This builder for chaining.
-
getGpgKey
URI of the key file for this repository. The agent maintains a keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg` containing all the keys in any applied guest policy.
string gpg_key = 5;- Specified by:
getGpgKeyin interfaceGuestPolicies.AptRepositoryOrBuilder- Returns:
- The gpgKey.
-
getGpgKeyBytes
public com.google.protobuf.ByteString getGpgKeyBytes()URI of the key file for this repository. The agent maintains a keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg` containing all the keys in any applied guest policy.
string gpg_key = 5;- Specified by:
getGpgKeyBytesin interfaceGuestPolicies.AptRepositoryOrBuilder- Returns:
- The bytes for gpgKey.
-
setGpgKey
URI of the key file for this repository. The agent maintains a keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg` containing all the keys in any applied guest policy.
string gpg_key = 5;- Parameters:
value- The gpgKey to set.- Returns:
- This builder for chaining.
-
clearGpgKey
URI of the key file for this repository. The agent maintains a keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg` containing all the keys in any applied guest policy.
string gpg_key = 5;- Returns:
- This builder for chaining.
-
setGpgKeyBytes
URI of the key file for this repository. The agent maintains a keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg` containing all the keys in any applied guest policy.
string gpg_key = 5;- Parameters:
value- The bytes for gpgKey to set.- Returns:
- This builder for chaining.
-