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.GeneratedMessageV3.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.GeneratedMessageV3.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 typegoogle.cloud.osconfig.v1beta.AptRepository
-
-
Method Summary
-
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<GuestPolicies.AptRepository.Builder>
-
clear
public GuestPolicies.AptRepository.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<GuestPolicies.AptRepository.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<GuestPolicies.AptRepository.Builder>
-
getDefaultInstanceForType
public GuestPolicies.AptRepository getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GuestPolicies.AptRepository build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GuestPolicies.AptRepository buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GuestPolicies.AptRepository.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<GuestPolicies.AptRepository.Builder>
-
setField
public GuestPolicies.AptRepository.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<GuestPolicies.AptRepository.Builder>
-
clearField
public GuestPolicies.AptRepository.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<GuestPolicies.AptRepository.Builder>
-
clearOneof
public GuestPolicies.AptRepository.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<GuestPolicies.AptRepository.Builder>
-
setRepeatedField
public GuestPolicies.AptRepository.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<GuestPolicies.AptRepository.Builder>
-
addRepeatedField
public GuestPolicies.AptRepository.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<GuestPolicies.AptRepository.Builder>
-
mergeFrom
public GuestPolicies.AptRepository.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GuestPolicies.AptRepository.Builder>
-
mergeFrom
public GuestPolicies.AptRepository.Builder mergeFrom(GuestPolicies.AptRepository other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.AptRepository.Builder>
-
mergeFrom
public GuestPolicies.AptRepository.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<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:
getArchiveTypeValue
in interfaceGuestPolicies.AptRepositoryOrBuilder
- Returns:
- The enum numeric value on the wire for archiveType.
-
setArchiveTypeValue
public GuestPolicies.AptRepository.Builder setArchiveTypeValue(int 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 enum numeric value on the wire for archiveType to set.- Returns:
- This builder for chaining.
-
getArchiveType
public GuestPolicies.AptRepository.ArchiveType getArchiveType()
Type of archive files in this repository. The default behavior is DEB.
.google.cloud.osconfig.v1beta.AptRepository.ArchiveType archive_type = 1;
- Specified by:
getArchiveType
in 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
public GuestPolicies.AptRepository.Builder 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
public String getUri()
Required. URI for this repository.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getUri
in 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:
getUriBytes
in interfaceGuestPolicies.AptRepositoryOrBuilder
- Returns:
- The bytes for uri.
-
setUri
public GuestPolicies.AptRepository.Builder setUri(String value)
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
public GuestPolicies.AptRepository.Builder clearUri()
Required. URI for this repository.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setUriBytes
public GuestPolicies.AptRepository.Builder setUriBytes(com.google.protobuf.ByteString value)
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
public String getDistribution()
Required. Distribution of this repository.
string distribution = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getDistribution
in 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:
getDistributionBytes
in interfaceGuestPolicies.AptRepositoryOrBuilder
- Returns:
- The bytes for distribution.
-
setDistribution
public GuestPolicies.AptRepository.Builder setDistribution(String value)
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
public GuestPolicies.AptRepository.Builder 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:
getComponentsList
in 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:
getComponentsCount
in interfaceGuestPolicies.AptRepositoryOrBuilder
- Returns:
- The count of components.
-
getComponents
public String getComponents(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:
getComponents
in 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:
getComponentsBytes
in interfaceGuestPolicies.AptRepositoryOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the components at the given index.
-
setComponents
public GuestPolicies.AptRepository.Builder setComponents(int index, String value)
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
public GuestPolicies.AptRepository.Builder addComponents(String value)
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
public GuestPolicies.AptRepository.Builder addAllComponents(Iterable<String> values)
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
public GuestPolicies.AptRepository.Builder 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
public GuestPolicies.AptRepository.Builder addComponentsBytes(com.google.protobuf.ByteString value)
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
public String 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:
getGpgKey
in 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:
getGpgKeyBytes
in interfaceGuestPolicies.AptRepositoryOrBuilder
- Returns:
- The bytes for gpgKey.
-
setGpgKey
public GuestPolicies.AptRepository.Builder setGpgKey(String value)
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
public GuestPolicies.AptRepository.Builder 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
public GuestPolicies.AptRepository.Builder setGpgKeyBytes(com.google.protobuf.ByteString value)
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.
-
setUnknownFields
public final GuestPolicies.AptRepository.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.AptRepository.Builder>
-
mergeUnknownFields
public final GuestPolicies.AptRepository.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.AptRepository.Builder>
-
-