Class GuestPolicies.AptRepository

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.osconfig.v1beta.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.GeneratedMessage 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:
  • Field Details

  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • 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 interface GuestPolicies.AptRepositoryOrBuilder
      Returns:
      The archiveType.
    • getUri

      public String getUri()
       Required. URI for this repository.
       
      string uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUri in interface GuestPolicies.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 interface GuestPolicies.AptRepositoryOrBuilder
      Returns:
      The bytes for uri.
    • getDistribution

      public String getDistribution()
       Required. Distribution of this repository.
       
      string distribution = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDistribution in interface GuestPolicies.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 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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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
    • parseFrom

      public static GuestPolicies.AptRepository parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GuestPolicies.AptRepository parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GuestPolicies.AptRepository parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GuestPolicies.AptRepository parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GuestPolicies.AptRepository parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GuestPolicies.AptRepository parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static GuestPolicies.AptRepository.Builder newBuilder()
    • newBuilder

    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GuestPolicies.AptRepository getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GuestPolicies.AptRepository> parser()
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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