Class GuestPolicies.PackageRepository.Builder (2.32.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GuestPolicies.PackageRepository.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GuestPolicies.PackageRepository.Builder
Overrides

build()

public GuestPolicies.PackageRepository build()
Returns
TypeDescription
GuestPolicies.PackageRepository

buildPartial()

public GuestPolicies.PackageRepository buildPartial()
Returns
TypeDescription
GuestPolicies.PackageRepository

clear()

public GuestPolicies.PackageRepository.Builder clear()
Returns
TypeDescription
GuestPolicies.PackageRepository.Builder
Overrides

clearApt()

public GuestPolicies.PackageRepository.Builder clearApt()

An Apt Repository.

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

Returns
TypeDescription
GuestPolicies.PackageRepository.Builder

clearField(Descriptors.FieldDescriptor field)

public GuestPolicies.PackageRepository.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GuestPolicies.PackageRepository.Builder
Overrides

clearGoo()

public GuestPolicies.PackageRepository.Builder clearGoo()

A Goo Repository.

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

Returns
TypeDescription
GuestPolicies.PackageRepository.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public GuestPolicies.PackageRepository.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GuestPolicies.PackageRepository.Builder
Overrides

clearRepository()

public GuestPolicies.PackageRepository.Builder clearRepository()
Returns
TypeDescription
GuestPolicies.PackageRepository.Builder

clearYum()

public GuestPolicies.PackageRepository.Builder clearYum()

A Yum Repository.

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

Returns
TypeDescription
GuestPolicies.PackageRepository.Builder

clearZypper()

public GuestPolicies.PackageRepository.Builder clearZypper()

A Zypper Repository.

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

Returns
TypeDescription
GuestPolicies.PackageRepository.Builder

clone()

public GuestPolicies.PackageRepository.Builder clone()
Returns
TypeDescription
GuestPolicies.PackageRepository.Builder
Overrides

getApt()

public GuestPolicies.AptRepository getApt()

An Apt Repository.

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

Returns
TypeDescription
GuestPolicies.AptRepository

The apt.

getAptBuilder()

public GuestPolicies.AptRepository.Builder getAptBuilder()

An Apt Repository.

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

Returns
TypeDescription
GuestPolicies.AptRepository.Builder

getAptOrBuilder()

public GuestPolicies.AptRepositoryOrBuilder getAptOrBuilder()

An Apt Repository.

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

Returns
TypeDescription
GuestPolicies.AptRepositoryOrBuilder

getDefaultInstanceForType()

public GuestPolicies.PackageRepository getDefaultInstanceForType()
Returns
TypeDescription
GuestPolicies.PackageRepository

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGoo()

public GuestPolicies.GooRepository getGoo()

A Goo Repository.

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

Returns
TypeDescription
GuestPolicies.GooRepository

The goo.

getGooBuilder()

public GuestPolicies.GooRepository.Builder getGooBuilder()

A Goo Repository.

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

Returns
TypeDescription
GuestPolicies.GooRepository.Builder

getGooOrBuilder()

public GuestPolicies.GooRepositoryOrBuilder getGooOrBuilder()

A Goo Repository.

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

Returns
TypeDescription
GuestPolicies.GooRepositoryOrBuilder

getRepositoryCase()

public GuestPolicies.PackageRepository.RepositoryCase getRepositoryCase()
Returns
TypeDescription
GuestPolicies.PackageRepository.RepositoryCase

getYum()

public GuestPolicies.YumRepository getYum()

A Yum Repository.

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

Returns
TypeDescription
GuestPolicies.YumRepository

The yum.

getYumBuilder()

public GuestPolicies.YumRepository.Builder getYumBuilder()

A Yum Repository.

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

Returns
TypeDescription
GuestPolicies.YumRepository.Builder

getYumOrBuilder()

public GuestPolicies.YumRepositoryOrBuilder getYumOrBuilder()

A Yum Repository.

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

Returns
TypeDescription
GuestPolicies.YumRepositoryOrBuilder

getZypper()

public GuestPolicies.ZypperRepository getZypper()

A Zypper Repository.

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

Returns
TypeDescription
GuestPolicies.ZypperRepository

The zypper.

getZypperBuilder()

public GuestPolicies.ZypperRepository.Builder getZypperBuilder()

A Zypper Repository.

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

Returns
TypeDescription
GuestPolicies.ZypperRepository.Builder

getZypperOrBuilder()

public GuestPolicies.ZypperRepositoryOrBuilder getZypperOrBuilder()

A Zypper Repository.

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

Returns
TypeDescription
GuestPolicies.ZypperRepositoryOrBuilder

hasApt()

public boolean hasApt()

An Apt Repository.

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

Returns
TypeDescription
boolean

Whether the apt field is set.

hasGoo()

public boolean hasGoo()

A Goo Repository.

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

Returns
TypeDescription
boolean

Whether the goo field is set.

hasYum()

public boolean hasYum()

A Yum Repository.

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

Returns
TypeDescription
boolean

Whether the yum field is set.

hasZypper()

public boolean hasZypper()

A Zypper Repository.

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

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

An Apt Repository.

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

Parameter
NameDescription
valueGuestPolicies.AptRepository
Returns
TypeDescription
GuestPolicies.PackageRepository.Builder

mergeFrom(GuestPolicies.PackageRepository other)

public GuestPolicies.PackageRepository.Builder mergeFrom(GuestPolicies.PackageRepository other)
Parameter
NameDescription
otherGuestPolicies.PackageRepository
Returns
TypeDescription
GuestPolicies.PackageRepository.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public GuestPolicies.PackageRepository.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueGuestPolicies.GooRepository
Returns
TypeDescription
GuestPolicies.PackageRepository.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.PackageRepository.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueGuestPolicies.YumRepository
Returns
TypeDescription
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
NameDescription
valueGuestPolicies.ZypperRepository
Returns
TypeDescription
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
NameDescription
valueGuestPolicies.AptRepository
Returns
TypeDescription
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
NameDescription
builderForValueGuestPolicies.AptRepository.Builder
Returns
TypeDescription
GuestPolicies.PackageRepository.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GuestPolicies.PackageRepository.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueGuestPolicies.GooRepository
Returns
TypeDescription
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
NameDescription
builderForValueGuestPolicies.GooRepository.Builder
Returns
TypeDescription
GuestPolicies.PackageRepository.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.PackageRepository.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueGuestPolicies.YumRepository
Returns
TypeDescription
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
NameDescription
builderForValueGuestPolicies.YumRepository.Builder
Returns
TypeDescription
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
NameDescription
valueGuestPolicies.ZypperRepository
Returns
TypeDescription
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
NameDescription
builderForValueGuestPolicies.ZypperRepository.Builder
Returns
TypeDescription
GuestPolicies.PackageRepository.Builder