Class GuestPolicies.PackageRepository.Builder (2.32.0)

See more code actions.
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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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
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()
Overrides

clearApt()

public GuestPolicies.PackageRepository.Builder clearApt()

An Apt Repository.

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

clearField(Descriptors.FieldDescriptor field)

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

clearGoo()

public GuestPolicies.PackageRepository.Builder clearGoo()

A Goo Repository.

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRepository()

public GuestPolicies.PackageRepository.Builder clearRepository()

clearYum()

public GuestPolicies.PackageRepository.Builder clearYum()

A Yum Repository.

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

clearZypper()

public GuestPolicies.PackageRepository.Builder clearZypper()

A Zypper Repository.

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

clone()

public GuestPolicies.PackageRepository.Builder clone()
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;

getAptOrBuilder()

public GuestPolicies.AptRepositoryOrBuilder getAptOrBuilder()

An Apt Repository.

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

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;

getGooOrBuilder()

public GuestPolicies.GooRepositoryOrBuilder getGooOrBuilder()

A Goo Repository.

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

getRepositoryCase()

public GuestPolicies.PackageRepository.RepositoryCase getRepositoryCase()

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;

getYumOrBuilder()

public GuestPolicies.YumRepositoryOrBuilder getYumOrBuilder()

A Yum Repository.

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

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;

getZypperOrBuilder()

public GuestPolicies.ZypperRepositoryOrBuilder getZypperOrBuilder()

A Zypper Repository.

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

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

mergeFrom(GuestPolicies.PackageRepository other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.PackageRepository.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
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

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

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.PackageRepository.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
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

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

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

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