Package com.google.cloud.osconfig.v1beta
Class GuestPolicies.YumRepository.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.YumRepository.Builder>
com.google.cloud.osconfig.v1beta.GuestPolicies.YumRepository.Builder
- All Implemented Interfaces:
GuestPolicies.YumRepositoryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GuestPolicies.YumRepository
public static final class GuestPolicies.YumRepository.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.YumRepository.Builder>
implements GuestPolicies.YumRepositoryOrBuilder
Represents a single Yum package repository. This repository is added to a repo file that is stored at `/etc/yum.repos.d/google_osconfig.repo`.Protobuf type
google.cloud.osconfig.v1beta.YumRepository-
Method Summary
Modifier and TypeMethodDescriptionaddAllGpgKeys(Iterable<String> values) URIs of GPG keys.addGpgKeys(String value) URIs of GPG keys.addGpgKeysBytes(com.google.protobuf.ByteString value) URIs of GPG keys.build()clear()Required.The display name of the repository.URIs of GPG keys.clearId()Required.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe display name of the repository.com.google.protobuf.ByteStringThe display name of the repository.getGpgKeys(int index) URIs of GPG keys.com.google.protobuf.ByteStringgetGpgKeysBytes(int index) URIs of GPG keys.intURIs of GPG keys.com.google.protobuf.ProtocolStringListURIs of GPG keys.getId()Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBaseUrl(String value) Required.setBaseUrlBytes(com.google.protobuf.ByteString value) Required.setDisplayName(String value) The display name of the repository.setDisplayNameBytes(com.google.protobuf.ByteString value) The display name of the repository.setGpgKeys(int index, String value) URIs of GPG keys.Required.setIdBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GuestPolicies.YumRepository.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GuestPolicies.YumRepository.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GuestPolicies.YumRepository.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GuestPolicies.YumRepository.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GuestPolicies.YumRepository.Builder>
-
mergeFrom
public GuestPolicies.YumRepository.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GuestPolicies.YumRepository.Builder>- Throws:
IOException
-
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:
getIdin interfaceGuestPolicies.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:
getIdBytesin interfaceGuestPolicies.YumRepositoryOrBuilder- Returns:
- The bytes for id.
-
setId
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
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
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.
-
getDisplayName
The display name of the repository.
string display_name = 2;- Specified by:
getDisplayNamein interfaceGuestPolicies.YumRepositoryOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The display name of the repository.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceGuestPolicies.YumRepositoryOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
The display name of the repository.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
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.
-
getBaseUrl
Required. The location of the repository directory.
string base_url = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBaseUrlin interfaceGuestPolicies.YumRepositoryOrBuilder- 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:
getBaseUrlBytesin interfaceGuestPolicies.YumRepositoryOrBuilder- 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
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:
getGpgKeysListin interfaceGuestPolicies.YumRepositoryOrBuilder- Returns:
- A list containing the gpgKeys.
-
getGpgKeysCount
public int getGpgKeysCount()URIs of GPG keys.
repeated string gpg_keys = 4;- Specified by:
getGpgKeysCountin interfaceGuestPolicies.YumRepositoryOrBuilder- Returns:
- The count of gpgKeys.
-
getGpgKeys
URIs of GPG keys.
repeated string gpg_keys = 4;- Specified by:
getGpgKeysin interfaceGuestPolicies.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:
getGpgKeysBytesin interfaceGuestPolicies.YumRepositoryOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the gpgKeys at the given index.
-
setGpgKeys
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
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
URIs of GPG keys.
repeated string gpg_keys = 4;- Parameters:
value- The bytes of the gpgKeys to add.- Returns:
- This builder for chaining.
-