public static final class OSPolicy.Resource.RepositoryResource.AptRepository extends com.google.protobuf.GeneratedMessageV3 implements OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilder
Represents a single apt package repository. These will be added to a repo file that will be managed at `/etc/apt/sources.list.d/google_osconfig.list`.Protobuf type
google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository| Modifier and Type | Class and Description |
|---|---|
static class |
OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType
Type of archive.
|
static class |
OSPolicy.Resource.RepositoryResource.AptRepository.Builder
Represents a single apt package repository.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ARCHIVE_TYPE_FIELD_NUMBER |
static int |
COMPONENTS_FIELD_NUMBER |
static int |
DISTRIBUTION_FIELD_NUMBER |
static int |
GPG_KEY_FIELD_NUMBER |
static int |
URI_FIELD_NUMBER |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ARCHIVE_TYPE_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
public static final int DISTRIBUTION_FIELD_NUMBER
public static final int COMPONENTS_FIELD_NUMBER
public static final int GPG_KEY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getArchiveTypeValue()
Required. Type of archive files in this repository.
.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType archive_type = 1 [(.google.api.field_behavior) = REQUIRED];
getArchiveTypeValue in interface OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilderpublic OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType getArchiveType()
Required. Type of archive files in this repository.
.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType archive_type = 1 [(.google.api.field_behavior) = REQUIRED];
getArchiveType in interface OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilderpublic String getUri()
Required. URI for this repository.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];getUri in interface OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
Required. URI for this repository.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];getUriBytes in interface OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilderpublic String getDistribution()
Required. Distribution of this repository.
string distribution = 3 [(.google.api.field_behavior) = REQUIRED];getDistribution in interface OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilderpublic com.google.protobuf.ByteString getDistributionBytes()
Required. Distribution of this repository.
string distribution = 3 [(.google.api.field_behavior) = REQUIRED];getDistributionBytes in interface OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilderpublic 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];getComponentsList in interface OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilderpublic int getComponentsCount()
Required. List of components for this repository. Must contain at least one item.
repeated string components = 4 [(.google.api.field_behavior) = REQUIRED];getComponentsCount in interface OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilderpublic 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];getComponents in interface OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilderindex - The index of the element to return.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];getComponentsBytes in interface OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilderindex - The index of the value to return.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`.
string gpg_key = 5;getGpgKey in interface OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilderpublic 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`.
string gpg_key = 5;getGpgKeyBytes in interface OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static OSPolicy.Resource.RepositoryResource.AptRepository parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.Resource.RepositoryResource.AptRepository parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.Resource.RepositoryResource.AptRepository parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.Resource.RepositoryResource.AptRepository parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.Resource.RepositoryResource.AptRepository parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.Resource.RepositoryResource.AptRepository parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.Resource.RepositoryResource.AptRepository parseFrom(InputStream input) throws IOException
IOExceptionpublic static OSPolicy.Resource.RepositoryResource.AptRepository parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OSPolicy.Resource.RepositoryResource.AptRepository parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static OSPolicy.Resource.RepositoryResource.AptRepository parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OSPolicy.Resource.RepositoryResource.AptRepository parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static OSPolicy.Resource.RepositoryResource.AptRepository parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic OSPolicy.Resource.RepositoryResource.AptRepository.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static OSPolicy.Resource.RepositoryResource.AptRepository.Builder newBuilder()
public static OSPolicy.Resource.RepositoryResource.AptRepository.Builder newBuilder(OSPolicy.Resource.RepositoryResource.AptRepository prototype)
public OSPolicy.Resource.RepositoryResource.AptRepository.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected OSPolicy.Resource.RepositoryResource.AptRepository.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static OSPolicy.Resource.RepositoryResource.AptRepository getDefaultInstance()
public static com.google.protobuf.Parser<OSPolicy.Resource.RepositoryResource.AptRepository> parser()
public com.google.protobuf.Parser<OSPolicy.Resource.RepositoryResource.AptRepository> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public OSPolicy.Resource.RepositoryResource.AptRepository getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.