Class OSPolicy.Resource.RepositoryResource.Builder (2.15.0)

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

A resource that manages a package repository.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearApt()

public OSPolicy.Resource.RepositoryResource.Builder clearApt()

An Apt Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository apt = 1;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGoo()

public OSPolicy.Resource.RepositoryResource.Builder clearGoo()

A Goo Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository goo = 4;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRepository()

public OSPolicy.Resource.RepositoryResource.Builder clearRepository()
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

clearYum()

public OSPolicy.Resource.RepositoryResource.Builder clearYum()

A Yum Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository yum = 2;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

clearZypper()

public OSPolicy.Resource.RepositoryResource.Builder clearZypper()

A Zypper Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository zypper = 3;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

clone()

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

getApt()

public OSPolicy.Resource.RepositoryResource.AptRepository getApt()

An Apt Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository apt = 1;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.AptRepository

The apt.

getAptBuilder()

public OSPolicy.Resource.RepositoryResource.AptRepository.Builder getAptBuilder()

An Apt Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository apt = 1;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.AptRepository.Builder

getAptOrBuilder()

public OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilder getAptOrBuilder()

An Apt Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository apt = 1;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilder

getDefaultInstanceForType()

public OSPolicy.Resource.RepositoryResource getDefaultInstanceForType()
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGoo()

public OSPolicy.Resource.RepositoryResource.GooRepository getGoo()

A Goo Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository goo = 4;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.GooRepository

The goo.

getGooBuilder()