Class OSPolicy.Resource.RepositoryResource.Builder (2.57.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OSPolicy.Resource.RepositoryResource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OSPolicy.Resource.RepositoryResource.Builder
Overrides

build()

public OSPolicy.Resource.RepositoryResource build()
Returns
Type Description
OSPolicy.Resource.RepositoryResource

buildPartial()

public OSPolicy.Resource.RepositoryResource buildPartial()
Returns
Type Description
OSPolicy.Resource.RepositoryResource

clear()

public OSPolicy.Resource.RepositoryResource.Builder clear()
Returns
Type Description
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
Type Description
OSPolicy.Resource.RepositoryResource.Builder

clearField(Descriptors.FieldDescriptor field)

public OSPolicy.Resource.RepositoryResource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
OSPolicy.Resource.RepositoryResource.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public OSPolicy.Resource.RepositoryResource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OSPolicy.Resource.RepositoryResource.Builder
Overrides

clearRepository()

public OSPolicy.Resource.RepositoryResource.Builder clearRepository()
Returns
Type Description
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
Type Description
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
Type Description
OSPolicy.Resource.RepositoryResource.Builder

clone()

public OSPolicy.Resource.RepositoryResource.Builder clone()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilder

getDefaultInstanceForType()

public OSPolicy.Resource.RepositoryResource getDefaultInstanceForType()
Returns
Type Description
OSPolicy.Resource.RepositoryResource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGoo()

public OSPolicy.Resource.RepositoryResource.GooRepository getGoo()

A Goo Repository.

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

Returns
Type Description
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
Type Description
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
Type Description
OSPolicy.Resource.RepositoryResource.GooRepositoryOrBuilder

getRepositoryCase()

public OSPolicy.Resource.RepositoryResource.RepositoryCase getRepositoryCase()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
OSPolicy.Resource.RepositoryResource.ZypperRepositoryOrBuilder

hasApt()

public boolean hasApt()

An Apt Repository.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the zypper field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value OSPolicy.Resource.RepositoryResource.AptRepository
Returns
Type Description
OSPolicy.Resource.RepositoryResource.Builder

mergeFrom(OSPolicy.Resource.RepositoryResource other)

public OSPolicy.Resource.RepositoryResource.Builder mergeFrom(OSPolicy.Resource.RepositoryResource other)
Parameter
Name Description
other OSPolicy.Resource.RepositoryResource
Returns
Type Description
OSPolicy.Resource.RepositoryResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OSPolicy.Resource.RepositoryResource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OSPolicy.Resource.RepositoryResource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OSPolicy.Resource.RepositoryResource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value OSPolicy.Resource.RepositoryResource.GooRepository
Returns
Type Description
OSPolicy.Resource.RepositoryResource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicy.Resource.RepositoryResource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value OSPolicy.Resource.RepositoryResource.YumRepository
Returns
Type Description
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
Name Description
value OSPolicy.Resource.RepositoryResource.ZypperRepository
Returns
Type Description
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
Name Description
value OSPolicy.Resource.RepositoryResource.AptRepository
Returns
Type Description
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
Name Description
builderForValue OSPolicy.Resource.RepositoryResource.AptRepository.Builder
Returns
Type Description
OSPolicy.Resource.RepositoryResource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public OSPolicy.Resource.RepositoryResource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value OSPolicy.Resource.RepositoryResource.GooRepository
Returns
Type Description
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
Name Description
builderForValue OSPolicy.Resource.RepositoryResource.GooRepository.Builder
Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OSPolicy.Resource.RepositoryResource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicy.Resource.RepositoryResource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value OSPolicy.Resource.RepositoryResource.YumRepository
Returns
Type Description
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
Name Description
builderForValue OSPolicy.Resource.RepositoryResource.YumRepository.Builder
Returns
Type Description
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
Name Description
value OSPolicy.Resource.RepositoryResource.ZypperRepository
Returns
Type Description
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
Name Description
builderForValue OSPolicy.Resource.RepositoryResource.ZypperRepository.Builder
Returns
Type Description
OSPolicy.Resource.RepositoryResource.Builder