Class OSPolicy.Resource.RepositoryResource.ZypperRepository.Builder (2.5.6)

public static final class OSPolicy.Resource.RepositoryResource.ZypperRepository.Builder extends GeneratedMessageV3.Builder<OSPolicy.Resource.RepositoryResource.ZypperRepository.Builder> implements OSPolicy.Resource.RepositoryResource.ZypperRepositoryOrBuilder

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

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

Inheritance

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

Static Methods

getDescriptor()

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

Methods

addAllGpgKeys(Iterable<String> values)

public OSPolicy.Resource.RepositoryResource.ZypperRepository.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.ZypperRepository.Builder

This builder for chaining.

addGpgKeys(String value)

public OSPolicy.Resource.RepositoryResource.ZypperRepository.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.ZypperRepository.Builder

This builder for chaining.

addGpgKeysBytes(ByteString value)

public OSPolicy.Resource.RepositoryResource.ZypperRepository.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.ZypperRepository.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearBaseUrl()

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

Required. The location of the repository directory.

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

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.ZypperRepository.Builder

This builder for chaining.

clearDisplayName()

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

The display name of the repository.

string display_name = 2;

Returns
Type