Class GuestPolicies.AptRepository

  • All Implemented Interfaces:
    GuestPolicies.AptRepositoryOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    GuestPolicies

    public static final class GuestPolicies.AptRepository
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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 interface GuestPolicies.AptRepositoryOrBuilder
        Returns:
        The enum numeric value on the wire for archiveType.
      • getUriBytes

        public com.google.protobuf.ByteString getUriBytes()
         Required. URI for this repository.
         
        string uri = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getUriBytes in interface GuestPolicies.AptRepositoryOrBuilder
        Returns:
        The bytes for uri.
      • getDistributionBytes

        public com.google.protobuf.ByteString getDistributionBytes()
         Required. Distribution of this repository.
         
        string distribution = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDistributionBytes in interface GuestPolicies.AptRepositoryOrBuilder
        Returns:
        The bytes for distribution.
      • 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 interface GuestPolicies.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 interface GuestPolicies.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 interface GuestPolicies.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 interface GuestPolicies.AptRepositoryOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the components at the given index.
      • 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 interface GuestPolicies.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 interface GuestPolicies.AptRepositoryOrBuilder
        Returns:
        The bytes for gpgKey.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static GuestPolicies.AptRepository parseFrom​(ByteBuffer data)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GuestPolicies.AptRepository parseFrom​(ByteBuffer data,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GuestPolicies.AptRepository parseFrom​(com.google.protobuf.ByteString data)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GuestPolicies.AptRepository parseFrom​(com.google.protobuf.ByteString data,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GuestPolicies.AptRepository parseFrom​(byte[] data)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GuestPolicies.AptRepository parseFrom​(byte[] data,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public GuestPolicies.AptRepository.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public GuestPolicies.AptRepository.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected GuestPolicies.AptRepository.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<GuestPolicies.AptRepository> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public GuestPolicies.AptRepository getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder