Class GuestPolicies.ZypperRepository

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.osconfig.v1beta.GuestPolicies.ZypperRepository
All Implemented Interfaces:
GuestPolicies.ZypperRepositoryOrBuilder, 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.ZypperRepository extends com.google.protobuf.GeneratedMessage implements GuestPolicies.ZypperRepositoryOrBuilder
 Represents a single Zypper package repository. This repository is added to a
 repo file that is stored at `/etc/zypp/repos.d/google_osconfig.repo`.
 
Protobuf type google.cloud.osconfig.v1beta.ZypperRepository
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
    • getId

      public String getId()
       Required. A one word, unique name for this repository. This is
       the `repo id` in the zypper config file and also the `display_name` if
       `display_name` is omitted. This id is also used as the unique identifier
       when checking for guest policy conflicts.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getId in interface GuestPolicies.ZypperRepositoryOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Required. A one word, unique name for this repository. This is
       the `repo id` in the zypper config file and also the `display_name` if
       `display_name` is omitted. This id is also used as the unique identifier
       when checking for guest policy conflicts.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIdBytes in interface GuestPolicies.ZypperRepositoryOrBuilder
      Returns:
      The bytes for id.
    • getDisplayName

      public String getDisplayName()
       The display name of the repository.
       
      string display_name = 2;
      Specified by:
      getDisplayName in interface GuestPolicies.ZypperRepositoryOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The display name of the repository.
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface GuestPolicies.ZypperRepositoryOrBuilder
      Returns:
      The bytes for displayName.
    • getBaseUrl

      public String getBaseUrl()
       Required. The location of the repository directory.
       
      string base_url = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBaseUrl in interface GuestPolicies.ZypperRepositoryOrBuilder
      Returns:
      The baseUrl.
    • getBaseUrlBytes

      public com.google.protobuf.ByteString getBaseUrlBytes()
       Required. The location of the repository directory.
       
      string base_url = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBaseUrlBytes in interface GuestPolicies.ZypperRepositoryOrBuilder
      Returns:
      The bytes for baseUrl.
    • getGpgKeysList

      public com.google.protobuf.ProtocolStringList getGpgKeysList()
       URIs of GPG keys.
       
      repeated string gpg_keys = 4;
      Specified by:
      getGpgKeysList in interface GuestPolicies.ZypperRepositoryOrBuilder
      Returns:
      A list containing the gpgKeys.
    • getGpgKeysCount

      public int getGpgKeysCount()
       URIs of GPG keys.
       
      repeated string gpg_keys = 4;
      Specified by:
      getGpgKeysCount in interface GuestPolicies.ZypperRepositoryOrBuilder
      Returns:
      The count of gpgKeys.
    • getGpgKeys

      public String getGpgKeys(int index)
       URIs of GPG keys.
       
      repeated string gpg_keys = 4;
      Specified by:
      getGpgKeys in interface GuestPolicies.ZypperRepositoryOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The gpgKeys at the given index.
    • getGpgKeysBytes

      public com.google.protobuf.ByteString getGpgKeysBytes(int index)
       URIs of GPG keys.
       
      repeated string gpg_keys = 4;
      Specified by:
      getGpgKeysBytes in interface GuestPolicies.ZypperRepositoryOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the gpgKeys at the given index.
    • 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.ZypperRepository parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static GuestPolicies.ZypperRepository 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.ZypperRepository parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

      public static GuestPolicies.ZypperRepository.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.ZypperRepository.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GuestPolicies.ZypperRepository getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GuestPolicies.ZypperRepository> parser()
    • getParserForType

      public com.google.protobuf.Parser<GuestPolicies.ZypperRepository> 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.ZypperRepository getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder