Class GuestPolicies.ZypperRepository.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.ZypperRepository.Builder>
com.google.cloud.osconfig.v1beta.GuestPolicies.ZypperRepository.Builder
All Implemented Interfaces:
GuestPolicies.ZypperRepositoryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GuestPolicies.ZypperRepository

public static final class GuestPolicies.ZypperRepository.Builder extends com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.ZypperRepository.Builder> 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
  • 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.Builder<GuestPolicies.ZypperRepository.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.ZypperRepository.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.ZypperRepository.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public GuestPolicies.ZypperRepository.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GuestPolicies.ZypperRepository.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.ZypperRepository.Builder>
    • mergeFrom

      public GuestPolicies.ZypperRepository.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GuestPolicies.ZypperRepository.Builder>
      Throws:
      IOException
    • 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.
    • setId

       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];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

       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];
      Returns:
      This builder for chaining.
    • setIdBytes

      public GuestPolicies.ZypperRepository.Builder setIdBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDisplayName

      public GuestPolicies.ZypperRepository.Builder setDisplayName(String value)
       The display name of the repository.
       
      string display_name = 2;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public GuestPolicies.ZypperRepository.Builder clearDisplayName()
       The display name of the repository.
       
      string display_name = 2;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public GuestPolicies.ZypperRepository.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The display name of the repository.
       
      string display_name = 2;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • 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.
    • setBaseUrl

       Required. The location of the repository directory.
       
      string base_url = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The baseUrl to set.
      Returns:
      This builder for chaining.
    • clearBaseUrl

       Required. The location of the repository directory.
       
      string base_url = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setBaseUrlBytes

      public GuestPolicies.ZypperRepository.Builder setBaseUrlBytes(com.google.protobuf.ByteString value)
       Required. The location of the repository directory.
       
      string base_url = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for baseUrl to set.
      Returns:
      This builder for chaining.
    • 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.
    • setGpgKeys

      public GuestPolicies.ZypperRepository.Builder setGpgKeys(int index, String value)
       URIs of GPG keys.
       
      repeated string gpg_keys = 4;
      Parameters:
      index - The index to set the value at.
      value - The gpgKeys to set.
      Returns:
      This builder for chaining.
    • addGpgKeys

       URIs of GPG keys.
       
      repeated string gpg_keys = 4;
      Parameters:
      value - The gpgKeys to add.
      Returns:
      This builder for chaining.
    • addAllGpgKeys

      public GuestPolicies.ZypperRepository.Builder addAllGpgKeys(Iterable<String> values)
       URIs of GPG keys.
       
      repeated string gpg_keys = 4;
      Parameters:
      values - The gpgKeys to add.
      Returns:
      This builder for chaining.
    • clearGpgKeys

       URIs of GPG keys.
       
      repeated string gpg_keys = 4;
      Returns:
      This builder for chaining.
    • addGpgKeysBytes

      public GuestPolicies.ZypperRepository.Builder addGpgKeysBytes(com.google.protobuf.ByteString value)
       URIs of GPG keys.
       
      repeated string gpg_keys = 4;
      Parameters:
      value - The bytes of the gpgKeys to add.
      Returns:
      This builder for chaining.