Class OSPolicy.Resource.RepositoryResource.YumRepository.Builder (2.15.0)

public static final class OSPolicy.Resource.RepositoryResource.YumRepository.Builder extends GeneratedMessageV3.Builder<OSPolicy.Resource.RepositoryResource.YumRepository.Builder> implements OSPolicy.Resource.RepositoryResource.YumRepositoryOrBuilder

Represents a single yum package repository. These are added to a repo file that is managed at /etc/yum.repos.d/google_osconfig.repo.

Protobuf type google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > OSPolicy.Resource.RepositoryResource.YumRepository.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllGpgKeys(Iterable<String> values)

public OSPolicy.Resource.RepositoryResource.YumRepository.Builder addAllGpgKeys(Iterable<String> values)

URIs of GPG keys.

repeated string gpg_keys = 4;

Parameter
NameDescription
valuesIterable<String>

The gpgKeys to add.

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository.Builder

This builder for chaining.

addGpgKeys(String value)

public OSPolicy.Resource.RepositoryResource.YumRepository.Builder addGpgKeys(String value)

URIs of GPG keys.

repeated string gpg_keys = 4;

Parameter
NameDescription
valueString

The gpgKeys to add.

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository.Builder

This builder for chaining.

addGpgKeysBytes(ByteString value)

public OSPolicy.Resource.RepositoryResource.YumRepository.Builder addGpgKeysBytes(ByteString value)

URIs of GPG keys.

repeated string gpg_keys = 4;

Parameter
NameDescription
valueByteString

The bytes of the gpgKeys to add.

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OSPolicy.Resource.RepositoryResource.YumRepository.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository.Builder
Overrides

build()

public OSPolicy.Resource.RepositoryResource.YumRepository build()
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository

buildPartial()

public OSPolicy.Resource.RepositoryResource.YumRepository buildPartial()
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository

clear()

public OSPolicy.Resource.RepositoryResource.YumRepository.Builder clear()
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository.Builder
Overrides

clearBaseUrl()

public OSPolicy.Resource.RepositoryResource.YumRepository.Builder clearBaseUrl()

Required. The location of the repository directory.

string base_url = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository.Builder

This builder for chaining.

clearDisplayName()

public OSPolicy.Resource.RepositoryResource.YumRepository.Builder clearDisplayName()

The display name of the repository.

string display_name = 2;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OSPolicy.Resource.RepositoryResource.YumRepository.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository.Builder
Overrides

clearGpgKeys()

public OSPolicy.Resource.RepositoryResource.YumRepository.Builder clearGpgKeys()

URIs of GPG keys.

repeated string gpg_keys = 4;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository.Builder

This builder for chaining.

clearId()

public OSPolicy.Resource.RepositoryResource.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 resource conflicts.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OSPolicy.Resource.RepositoryResource.YumRepository.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository.Builder
Overrides

clone()

public OSPolicy.Resource.RepositoryResource.YumRepository.Builder clone()
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository.Builder
Overrides

getBaseUrl()

public String getBaseUrl()

Required. The location of the repository directory.

string base_url = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The baseUrl.

getBaseUrlBytes()

public ByteString getBaseUrlBytes()

Required. The location of the repository directory.

string base_url = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for baseUrl.