Class GuestPolicies.PackageRepository.Builder (2.55.0)

public static final class GuestPolicies.PackageRepository.Builder extends GeneratedMessageV3.Builder<GuestPolicies.PackageRepository.Builder> implements GuestPolicies.PackageRepositoryOrBuilder

A package repository.

Protobuf type google.cloud.osconfig.v1beta.PackageRepository

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GuestPolicies.PackageRepository.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GuestPolicies.PackageRepository.Builder
Overrides

build()

public GuestPolicies.PackageRepository build()
Returns
Type Description
GuestPolicies.PackageRepository

buildPartial()

public GuestPolicies.PackageRepository buildPartial()
Returns
Type Description
GuestPolicies.PackageRepository

clear()

public GuestPolicies.PackageRepository.Builder clear()
Returns
Type Description
GuestPolicies.PackageRepository.Builder
Overrides

clearApt()

public GuestPolicies.PackageRepository.Builder clearApt()

An Apt Repository.

.google.cloud.osconfig.v1beta.AptRepository apt = 1;

Returns
Type Description
GuestPolicies.PackageRepository.Builder

clearField(Descriptors.FieldDescriptor field)

public GuestPolicies.PackageRepository.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GuestPolicies.PackageRepository.Builder
Overrides

clearGoo()

public GuestPolicies.PackageRepository.Builder clearGoo()

A Goo Repository.

.google.cloud.osconfig.v1beta.GooRepository goo = 4;

Returns
Type Description
GuestPolicies.PackageRepository.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public GuestPolicies.PackageRepository.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GuestPolicies.PackageRepository.Builder
Overrides

clearRepository()

public GuestPolicies.PackageRepository.Builder clearRepository()
Returns
Type Description
GuestPolicies.PackageRepository.Builder

clearYum()

public GuestPolicies.PackageRepository.Builder clearYum()

A Yum Repository.

.google.cloud.osconfig.v1beta.YumRepository yum = 2;

Returns
Type Description
GuestPolicies.PackageRepository.Builder

clearZypper()

public GuestPolicies.PackageRepository.Builder clearZypper()

A Zypper Repository.

.google.cloud.osconfig.v1beta.ZypperRepository zypper = 3;

Returns
Type Description
GuestPolicies.PackageRepository.Builder

clone()

public GuestPolicies.PackageRepository.Builder clone()
Returns
Type Description
GuestPolicies.PackageRepository.Builder
Overrides

getApt()

public GuestPolicies.AptRepository getApt()

An Apt Repository.

.google.cloud.osconfig.v1beta.AptRepository apt = 1;

Returns
Type Description
GuestPolicies.AptRepository

The apt.

getAptBuilder()

public GuestPolicies.AptRepository.Builder getAptBuilder()

An Apt Repository.

.google.cloud.osconfig.v1beta.AptRepository apt = 1;

Returns
Type Description
GuestPolicies.AptRepository.Builder

getAptOrBuilder()

public GuestPolicies.AptRepositoryOrBuilder getAptOrBuilder()

An Apt Repository.

.google.cloud.osconfig.v1beta.AptRepository apt = 1;

Returns
Type Description
GuestPolicies.AptRepositoryOrBuilder

getDefaultInstanceForType()

public GuestPolicies.PackageRepository getDefaultInstanceForType()
Returns
Type Description
GuestPolicies.PackageRepository

getDescriptorForType()

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

getGoo()

public GuestPolicies.GooRepository getGoo()

A Goo Repository.

.google.cloud.osconfig.v1beta.GooRepository goo = 4;

Returns
Type Description
GuestPolicies.GooRepository

The goo.

getGooBuilder()

public GuestPolicies.GooRepository.Builder getGooBuilder()

A Goo Repository.

.google.cloud.osconfig.v1beta.GooRepository goo = 4;

Returns
Type Description
GuestPolicies.GooRepository.Builder

getGooOrBuilder()

public GuestPolicies.GooRepositoryOrBuilder getGooOrBuilder()

A Goo Repository.

.google.cloud.osconfig.v1beta.GooRepository goo = 4;

Returns
Type Description
GuestPolicies.GooRepositoryOrBuilder

getRepositoryCase()

public GuestPolicies.PackageRepository.RepositoryCase getRepositoryCase()
Returns
Type Description
GuestPolicies.PackageRepository.RepositoryCase

getYum()

public GuestPolicies.YumRepository getYum()

A Yum Repository.

.google.cloud.osconfig.v1beta.YumRepository yum = 2;

Returns
Type Description
GuestPolicies.YumRepository

The yum.

getYumBuilder()

public GuestPolicies.YumRepository.Builder getYumBuilder()

A Yum Repository.

.google.cloud.osconfig.v1beta.YumRepository yum = 2;

Returns
Type Description
GuestPolicies.YumRepository.Builder

getYumOrBuilder()

public GuestPolicies.YumRepositoryOrBuilder getYumOrBuilder()

A Yum Repository.

.google.cloud.osconfig.v1beta.YumRepository yum = 2;

Returns
Type Description
GuestPolicies.YumRepositoryOrBuilder

getZypper()

public GuestPolicies.ZypperRepository getZypper()

A Zypper Repository.

.google.cloud.osconfig.v1beta.ZypperRepository zypper = 3;

Returns
Type Description
GuestPolicies.ZypperRepository

The zypper.

getZypperBuilder()

public GuestPolicies.ZypperRepository.Builder getZypperBuilder()

A Zypper Repository.

.google.cloud.osconfig.v1beta.ZypperRepository zypper = 3;

Returns
Type Description
GuestPolicies.ZypperRepository.Builder

getZypperOrBuilder()

public GuestPolicies.ZypperRepositoryOrBuilder getZypperOrBuilder()

A Zypper Repository.

.google.cloud.osconfig.v1beta.ZypperRepository zypper = 3;

Returns
Type Description
GuestPolicies.ZypperRepositoryOrBuilder

hasApt()

public boolean hasApt()

An Apt Repository.

.google.cloud.osconfig.v1beta.AptRepository apt = 1;

Returns
Type Description
boolean

Whether the apt field is set.

hasGoo()

public boolean hasGoo()

A Goo Repository.

.google.cloud.osconfig.v1beta.GooRepository goo = 4;

Returns
Type Description
boolean

Whether the goo field is set.

hasYum()

public boolean hasYum()

A Yum Repository.

.google.cloud.osconfig.v1beta.YumRepository yum = 2;

Returns
Type Description
boolean

Whether the yum field is set.

hasZypper()

public boolean hasZypper()

A Zypper Repository.

.google.cloud.osconfig.v1beta.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(GuestPolicies.AptRepository value)

public GuestPolicies.PackageRepository.Builder mergeApt(GuestPolicies.AptRepository value)

An Apt Repository.

.google.cloud.osconfig.v1beta.AptRepository apt = 1;

Parameter
Name Description
value GuestPolicies.AptRepository
Returns
Type Description
GuestPolicies.PackageRepository.Builder

mergeFrom(GuestPolicies.PackageRepository other)

public GuestPolicies.PackageRepository.Builder mergeFrom(GuestPolicies.PackageRepository other)
Parameter
Name Description
other GuestPolicies.PackageRepository
Returns
Type Description
GuestPolicies.PackageRepository.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GuestPolicies.PackageRepository.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GuestPolicies.PackageRepository.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GuestPolicies.PackageRepository.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GuestPolicies.PackageRepository.Builder
Overrides

mergeGoo(GuestPolicies.GooRepository value)

public GuestPolicies.PackageRepository.Builder mergeGoo(GuestPolicies.GooRepository value)

A Goo Repository.

.google.cloud.osconfig.v1beta.GooRepository goo = 4;

Parameter
Name Description
value GuestPolicies.GooRepository
Returns
Type Description
GuestPolicies.PackageRepository.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.PackageRepository.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GuestPolicies.PackageRepository.Builder
Overrides

mergeYum(GuestPolicies.YumRepository value)

public GuestPolicies.PackageRepository.Builder mergeYum(GuestPolicies.YumRepository value)

A Yum Repository.

.google.cloud.osconfig.v1beta.YumRepository yum = 2;

Parameter
Name Description
value GuestPolicies.YumRepository
Returns
Type Description
GuestPolicies.PackageRepository.Builder

mergeZypper(GuestPolicies.ZypperRepository value)

public GuestPolicies.PackageRepository.Builder mergeZypper(GuestPolicies.ZypperRepository value)

A Zypper Repository.

.google.cloud.osconfig.v1beta.ZypperRepository zypper = 3;

Parameter
Name Description
value GuestPolicies.ZypperRepository
Returns
Type Description
GuestPolicies.PackageRepository.Builder

setApt(GuestPolicies.AptRepository value)

public GuestPolicies.PackageRepository.Builder setApt(GuestPolicies.AptRepository value)

An Apt Repository.

.google.cloud.osconfig.v1beta.AptRepository apt = 1;

Parameter
Name Description
value GuestPolicies.AptRepository
Returns
Type Description
GuestPolicies.PackageRepository.Builder

setApt(GuestPolicies.AptRepository.Builder builderForValue)

public GuestPolicies.PackageRepository.Builder setApt(GuestPolicies.AptRepository.Builder builderForValue)

An Apt Repository.

.google.cloud.osconfig.v1beta.AptRepository apt = 1;

Parameter
Name Description
builderForValue GuestPolicies.AptRepository.Builder
Returns
Type Description
GuestPolicies.PackageRepository.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GuestPolicies.PackageRepository.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GuestPolicies.PackageRepository.Builder
Overrides

setGoo(GuestPolicies.GooRepository value)

public GuestPolicies.PackageRepository.Builder setGoo(GuestPolicies.GooRepository value)

A Goo Repository.

.google.cloud.osconfig.v1beta.GooRepository goo = 4;

Parameter
Name Description
value GuestPolicies.GooRepository
Returns
Type Description
GuestPolicies.PackageRepository.Builder

setGoo(GuestPolicies.GooRepository.Builder builderForValue)

public GuestPolicies.PackageRepository.Builder setGoo(GuestPolicies.GooRepository.Builder builderForValue)

A Goo Repository.

.google.cloud.osconfig.v1beta.GooRepository goo = 4;

Parameter
Name Description
builderForValue GuestPolicies.GooRepository.Builder
Returns
Type Description
GuestPolicies.PackageRepository.Builder

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

public GuestPolicies.PackageRepository.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GuestPolicies.PackageRepository.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.PackageRepository.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GuestPolicies.PackageRepository.Builder
Overrides

setYum(GuestPolicies.YumRepository value)

public GuestPolicies.PackageRepository.Builder setYum(GuestPolicies.YumRepository value)

A Yum Repository.

.google.cloud.osconfig.v1beta.YumRepository yum = 2;

Parameter
Name Description
value GuestPolicies.YumRepository
Returns
Type Description
GuestPolicies.PackageRepository.Builder

setYum(GuestPolicies.YumRepository.Builder builderForValue)

public GuestPolicies.PackageRepository.Builder setYum(GuestPolicies.YumRepository.Builder builderForValue)

A Yum Repository.

.google.cloud.osconfig.v1beta.YumRepository yum = 2;

Parameter
Name Description
builderForValue GuestPolicies.YumRepository.Builder
Returns
Type Description
GuestPolicies.PackageRepository.Builder

setZypper(GuestPolicies.ZypperRepository value)

public GuestPolicies.PackageRepository.Builder setZypper(GuestPolicies.ZypperRepository value)

A Zypper Repository.

.google.cloud.osconfig.v1beta.ZypperRepository zypper = 3;

Parameter
Name Description
value GuestPolicies.ZypperRepository
Returns
Type Description
GuestPolicies.PackageRepository.Builder

setZypper(GuestPolicies.ZypperRepository.Builder builderForValue)

public GuestPolicies.PackageRepository.Builder setZypper(GuestPolicies.ZypperRepository.Builder builderForValue)

A Zypper Repository.

.google.cloud.osconfig.v1beta.ZypperRepository zypper = 3;

Parameter
Name Description
builderForValue GuestPolicies.ZypperRepository.Builder
Returns
Type Description
GuestPolicies.PackageRepository.Builder