Class GuestPolicies.YumRepository.Builder

    • Method Detail

      • 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.Builder<GuestPolicies.YumRepository.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.GeneratedMessageV3.Builder<GuestPolicies.YumRepository.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public GuestPolicies.YumRepository.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.YumRepository.Builder>
        Throws:
        IOException
      • getId

        public String getId()
         Required. A one word, unique name for this repository. This is
         the `repo id` in the Yum 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.YumRepositoryOrBuilder
        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 Yum 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.YumRepositoryOrBuilder
        Returns:
        The bytes for id.
      • setId

        public GuestPolicies.YumRepository.Builder setId​(String value)
         Required. A one word, unique name for this repository. This is
         the `repo id` in the Yum 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

        public GuestPolicies.YumRepository.Builder clearId()
         Required. A one word, unique name for this repository. This is
         the `repo id` in the Yum 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.YumRepository.Builder setIdBytes​(com.google.protobuf.ByteString value)
         Required. A one word, unique name for this repository. This is
         the `repo id` in the Yum 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.
      • setDisplayName

        public GuestPolicies.YumRepository.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.YumRepository.Builder clearDisplayName()
         The display name of the repository.
         
        string display_name = 2;
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public GuestPolicies.YumRepository.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.
      • 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.YumRepositoryOrBuilder
        Returns:
        The bytes for baseUrl.
      • setBaseUrl

        public GuestPolicies.YumRepository.Builder setBaseUrl​(String value)
         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

        public GuestPolicies.YumRepository.Builder 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.YumRepository.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.YumRepositoryOrBuilder
        Returns:
        A list containing the gpgKeys.
      • getGpgKeys

        public String getGpgKeys​(int index)
         URIs of GPG keys.
         
        repeated string gpg_keys = 4;
        Specified by:
        getGpgKeys in interface GuestPolicies.YumRepositoryOrBuilder
        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.YumRepositoryOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the gpgKeys at the given index.
      • setGpgKeys

        public GuestPolicies.YumRepository.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

        public GuestPolicies.YumRepository.Builder addGpgKeys​(String value)
         URIs of GPG keys.
         
        repeated string gpg_keys = 4;
        Parameters:
        value - The gpgKeys to add.
        Returns:
        This builder for chaining.
      • addGpgKeysBytes

        public GuestPolicies.YumRepository.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.
      • mergeUnknownFields

        public final GuestPolicies.YumRepository.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.YumRepository.Builder>