Class 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.GeneratedMessageV3
    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:
    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
      • 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.
      • 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.
      • 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.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.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
      • newBuilderForType

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

        public GuestPolicies.ZypperRepository.Builder 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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