Class OSPolicy.Resource.RepositoryResource.Builder (2.32.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()

public OSPolicy.Resource.RepositoryResource.GooRepository.Builder getGooBuilder()

A Goo Repository.

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

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.GooRepository.Builder

getGooOrBuilder()

public OSPolicy.Resource.RepositoryResource.GooRepositoryOrBuilder getGooOrBuilder()

A Goo Repository.

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

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.GooRepositoryOrBuilder

getRepositoryCase()

public OSPolicy.Resource.RepositoryResource.RepositoryCase getRepositoryCase()
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.RepositoryCase

getYum()

public OSPolicy.Resource.RepositoryResource.YumRepository getYum()

A Yum Repository.

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

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository

The yum.

getYumBuilder()

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

A Yum Repository.

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

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository.Builder

getYumOrBuilder()

public OSPolicy.Resource.RepositoryResource.YumRepositoryOrBuilder getYumOrBuilder()

A Yum Repository.

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

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepositoryOrBuilder

getZypper()

public OSPolicy.Resource.RepositoryResource.ZypperRepository getZypper()

A Zypper Repository.

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

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.ZypperRepository

The zypper.

getZypperBuilder()

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

A Zypper Repository.

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

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.ZypperRepository.Builder

getZypperOrBuilder()

public OSPolicy.Resource.RepositoryResource.ZypperRepositoryOrBuilder getZypperOrBuilder()

A Zypper Repository.

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

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.ZypperRepositoryOrBuilder

hasApt()

public boolean hasApt()

An Apt Repository.

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

Returns
TypeDescription
boolean

Whether the apt field is set.

hasGoo()

public boolean hasGoo()

A Goo Repository.

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

Returns
TypeDescription
boolean

Whether the goo field is set.

hasYum()

public boolean hasYum()

A Yum Repository.

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

Returns
TypeDescription
boolean

Whether the yum field is set.

hasZypper()

public boolean hasZypper()

A Zypper Repository.

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

Returns
TypeDescription
boolean

Whether the zypper field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeApt(OSPolicy.Resource.RepositoryResource.AptRepository value)

public OSPolicy.Resource.RepositoryResource.Builder mergeApt(OSPolicy.Resource.RepositoryResource.AptRepository value)

An Apt Repository.

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

Parameter
NameDescription
valueOSPolicy.Resource.RepositoryResource.AptRepository
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

mergeFrom(OSPolicy.Resource.RepositoryResource other)

public OSPolicy.Resource.RepositoryResource.Builder mergeFrom(OSPolicy.Resource.RepositoryResource other)
Parameter
NameDescription
otherOSPolicy.Resource.RepositoryResource
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OSPolicy.Resource.RepositoryResource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public OSPolicy.Resource.RepositoryResource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder
Overrides

mergeGoo(OSPolicy.Resource.RepositoryResource.GooRepository value)

public OSPolicy.Resource.RepositoryResource.Builder mergeGoo(OSPolicy.Resource.RepositoryResource.GooRepository value)

A Goo Repository.

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

Parameter
NameDescription
valueOSPolicy.Resource.RepositoryResource.GooRepository
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicy.Resource.RepositoryResource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder
Overrides

mergeYum(OSPolicy.Resource.RepositoryResource.YumRepository value)

public OSPolicy.Resource.RepositoryResource.Builder mergeYum(OSPolicy.Resource.RepositoryResource.YumRepository value)

A Yum Repository.

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

Parameter
NameDescription
valueOSPolicy.Resource.RepositoryResource.YumRepository
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

mergeZypper(OSPolicy.Resource.RepositoryResource.ZypperRepository value)

public OSPolicy.Resource.RepositoryResource.Builder mergeZypper(OSPolicy.Resource.RepositoryResource.ZypperRepository value)

A Zypper Repository.

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

Parameter
NameDescription
valueOSPolicy.Resource.RepositoryResource.ZypperRepository
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

setApt(OSPolicy.Resource.RepositoryResource.AptRepository value)

public OSPolicy.Resource.RepositoryResource.Builder setApt(OSPolicy.Resource.RepositoryResource.AptRepository value)

An Apt Repository.

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

Parameter
NameDescription
valueOSPolicy.Resource.RepositoryResource.AptRepository
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

setApt(OSPolicy.Resource.RepositoryResource.AptRepository.Builder builderForValue)

public OSPolicy.Resource.RepositoryResource.Builder setApt(OSPolicy.Resource.RepositoryResource.AptRepository.Builder builderForValue)

An Apt Repository.

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

Parameter
NameDescription
builderForValueOSPolicy.Resource.RepositoryResource.AptRepository.Builder
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGoo(OSPolicy.Resource.RepositoryResource.GooRepository value)

public OSPolicy.Resource.RepositoryResource.Builder setGoo(OSPolicy.Resource.RepositoryResource.GooRepository value)

A Goo Repository.

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

Parameter
NameDescription
valueOSPolicy.Resource.RepositoryResource.GooRepository
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

setGoo(OSPolicy.Resource.RepositoryResource.GooRepository.Builder builderForValue)

public OSPolicy.Resource.RepositoryResource.Builder setGoo(OSPolicy.Resource.RepositoryResource.GooRepository.Builder builderForValue)

A Goo Repository.

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

Parameter
NameDescription
builderForValueOSPolicy.Resource.RepositoryResource.GooRepository.Builder
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

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

setUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicy.Resource.RepositoryResource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder
Overrides

setYum(OSPolicy.Resource.RepositoryResource.YumRepository value)

public OSPolicy.Resource.RepositoryResource.Builder setYum(OSPolicy.Resource.RepositoryResource.YumRepository value)

A Yum Repository.

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

Parameter
NameDescription
valueOSPolicy.Resource.RepositoryResource.YumRepository
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

setYum(OSPolicy.Resource.RepositoryResource.YumRepository.Builder builderForValue)

public OSPolicy.Resource.RepositoryResource.Builder setYum(OSPolicy.Resource.RepositoryResource.YumRepository.Builder builderForValue)

A Yum Repository.

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

Parameter
NameDescription
builderForValueOSPolicy.Resource.RepositoryResource.YumRepository.Builder
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

setZypper(OSPolicy.Resource.RepositoryResource.ZypperRepository value)

public OSPolicy.Resource.RepositoryResource.Builder setZypper(OSPolicy.Resource.RepositoryResource.ZypperRepository value)

A Zypper Repository.

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

Parameter
NameDescription
valueOSPolicy.Resource.RepositoryResource.ZypperRepository
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

setZypper(OSPolicy.Resource.RepositoryResource.ZypperRepository.Builder builderForValue)

public OSPolicy.Resource.RepositoryResource.Builder setZypper(OSPolicy.Resource.RepositoryResource.ZypperRepository.Builder builderForValue)

A Zypper Repository.

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

Parameter
NameDescription
builderForValueOSPolicy.Resource.RepositoryResource.ZypperRepository.Builder
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder