Class GuestPolicies.EffectiveGuestPolicy.Builder (2.4.3)

public static final class GuestPolicies.EffectiveGuestPolicy.Builder extends GeneratedMessageV3.Builder<GuestPolicies.EffectiveGuestPolicy.Builder> implements GuestPolicies.EffectiveGuestPolicyOrBuilder

The effective guest policy that applies to a VM instance.

Protobuf type google.cloud.osconfig.v1beta.EffectiveGuestPolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllPackageRepositories(Iterable<? extends GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository> values)

public GuestPolicies.EffectiveGuestPolicy.Builder addAllPackageRepositories(Iterable<? extends GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository> values)

List of package repository configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository>
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

addAllPackages(Iterable<? extends GuestPolicies.EffectiveGuestPolicy.SourcedPackage> values)

public GuestPolicies.EffectiveGuestPolicy.Builder addAllPackages(Iterable<? extends GuestPolicies.EffectiveGuestPolicy.SourcedPackage> values)

List of package configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.EffectiveGuestPolicy.SourcedPackage>
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

addAllSoftwareRecipes(Iterable<? extends GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe> values)

public GuestPolicies.EffectiveGuestPolicy.Builder addAllSoftwareRecipes(Iterable<? extends GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe> values)

List of recipes assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe>
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

addPackageRepositories(GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository value)

public GuestPolicies.EffectiveGuestPolicy.Builder addPackageRepositories(GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository value)

List of package repository configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;

Parameter
NameDescription
valueGuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

addPackageRepositories(GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository.Builder builderForValue)

public GuestPolicies.EffectiveGuestPolicy.Builder addPackageRepositories(GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository.Builder builderForValue)

List of package repository configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;

Parameter
NameDescription
builderForValueGuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository.Builder
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

addPackageRepositories(int index, GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository value)

public GuestPolicies.EffectiveGuestPolicy.Builder addPackageRepositories(int index, GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository value)

List of package repository configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;

Parameters
NameDescription
indexint
valueGuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

addPackageRepositories(int index, GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository.Builder builderForValue)

public GuestPolicies.EffectiveGuestPolicy.Builder addPackageRepositories(int index, GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository.Builder builderForValue)

List of package repository configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;

Parameters
NameDescription
indexint
builderForValueGuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository.Builder
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

addPackageRepositoriesBuilder()

public GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository.Builder addPackageRepositoriesBuilder()

List of package repository configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;

Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository.Builder

addPackageRepositoriesBuilder(int index)

public GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository.Builder addPackageRepositoriesBuilder(int index)

List of package repository configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository.Builder

addPackages(GuestPolicies.EffectiveGuestPolicy.SourcedPackage value)

public GuestPolicies.EffectiveGuestPolicy.Builder addPackages(GuestPolicies.EffectiveGuestPolicy.SourcedPackage value)

List of package configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;

Parameter
NameDescription
valueGuestPolicies.EffectiveGuestPolicy.SourcedPackage
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

addPackages(GuestPolicies.EffectiveGuestPolicy.SourcedPackage.Builder builderForValue)

public GuestPolicies.EffectiveGuestPolicy.Builder addPackages(GuestPolicies.EffectiveGuestPolicy.SourcedPackage.Builder builderForValue)

List of package configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;

Parameter
NameDescription
builderForValueGuestPolicies.EffectiveGuestPolicy.SourcedPackage.Builder
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

addPackages(int index, GuestPolicies.EffectiveGuestPolicy.SourcedPackage value)

public GuestPolicies.EffectiveGuestPolicy.Builder addPackages(int index, GuestPolicies.EffectiveGuestPolicy.SourcedPackage value)

List of package configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;

Parameters
NameDescription
indexint
valueGuestPolicies.EffectiveGuestPolicy.SourcedPackage
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

addPackages(int index, GuestPolicies.EffectiveGuestPolicy.SourcedPackage.Builder builderForValue)

public GuestPolicies.EffectiveGuestPolicy.Builder addPackages(int index, GuestPolicies.EffectiveGuestPolicy.SourcedPackage.Builder builderForValue)

List of package configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;

Parameters
NameDescription
indexint
builderForValueGuestPolicies.EffectiveGuestPolicy.SourcedPackage.Builder
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

addPackagesBuilder()

public GuestPolicies.EffectiveGuestPolicy.SourcedPackage.Builder addPackagesBuilder()

List of package configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;

Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedPackage.Builder

addPackagesBuilder(int index)

public GuestPolicies.EffectiveGuestPolicy.SourcedPackage.Builder addPackagesBuilder(int index)

List of package configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedPackage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSoftwareRecipes(GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe value)

public GuestPolicies.EffectiveGuestPolicy.Builder addSoftwareRecipes(GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe value)

List of recipes assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;

Parameter
NameDescription
valueGuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

addSoftwareRecipes(GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder builderForValue)

public GuestPolicies.EffectiveGuestPolicy.Builder addSoftwareRecipes(GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder builderForValue)

List of recipes assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;

Parameter
NameDescription
builderForValueGuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

addSoftwareRecipes(int index, GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe value)

public GuestPolicies.EffectiveGuestPolicy.Builder addSoftwareRecipes(int index, GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe value)

List of recipes assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;

Parameters
NameDescription
indexint
valueGuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

addSoftwareRecipes(int index, GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder builderForValue)

public GuestPolicies.EffectiveGuestPolicy.Builder addSoftwareRecipes(int index, GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder builderForValue)

List of recipes assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;

Parameters
NameDescription
indexint
builderForValueGuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

addSoftwareRecipesBuilder()

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder addSoftwareRecipesBuilder()

List of recipes assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;

Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder

addSoftwareRecipesBuilder(int index)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder addSoftwareRecipesBuilder(int index)

List of recipes assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPackageRepositories()

public GuestPolicies.EffectiveGuestPolicy.Builder clearPackageRepositories()

List of package repository configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;

Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

clearPackages()

public GuestPolicies.EffectiveGuestPolicy.Builder clearPackages()

List of package configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;

Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

clearSoftwareRecipes()

public GuestPolicies.EffectiveGuestPolicy.Builder clearSoftwareRecipes()

List of recipes assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;

Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.Builder

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPackageRepositories(int index)

public GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository getPackageRepositories(int index)

List of package repository configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription