- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.6
- 2.4.3
- 2.3.2
public static final class GuestPolicies.GuestPolicy.Builder extends GeneratedMessageV3.Builder<GuestPolicies.GuestPolicy.Builder> implements GuestPolicies.GuestPolicyOrBuilder
An OS Config resource representing a guest configuration policy. These policies represent the desired state for VM instance guest environments including packages to install or remove, package repository configurations, and software to install.
Protobuf type google.cloud.osconfig.v1beta.GuestPolicy
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GuestPolicies.GuestPolicy.BuilderImplements
GuestPolicies.GuestPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllPackageRepositories(Iterable<? extends GuestPolicies.PackageRepository> values)
public GuestPolicies.GuestPolicy.Builder addAllPackageRepositories(Iterable<? extends GuestPolicies.PackageRepository> values)
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Name | Description |
values | Iterable<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.PackageRepository> |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
addAllPackages(Iterable<? extends GuestPolicies.Package> values)
public GuestPolicies.GuestPolicy.Builder addAllPackages(Iterable<? extends GuestPolicies.Package> values)
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Name | Description |
values | Iterable<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.Package> |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
addAllRecipes(Iterable<? extends GuestPolicies.SoftwareRecipe> values)
public GuestPolicies.GuestPolicy.Builder addAllRecipes(Iterable<? extends GuestPolicies.SoftwareRecipe> values)
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Name | Description |
values | Iterable<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.SoftwareRecipe> |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
addPackageRepositories(GuestPolicies.PackageRepository value)
public GuestPolicies.GuestPolicy.Builder addPackageRepositories(GuestPolicies.PackageRepository value)
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Name | Description |
value | GuestPolicies.PackageRepository |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
addPackageRepositories(GuestPolicies.PackageRepository.Builder builderForValue)
public GuestPolicies.GuestPolicy.Builder addPackageRepositories(GuestPolicies.PackageRepository.Builder builderForValue)
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Name | Description |
builderForValue | GuestPolicies.PackageRepository.Builder |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
addPackageRepositories(int index, GuestPolicies.PackageRepository value)
public GuestPolicies.GuestPolicy.Builder addPackageRepositories(int index, GuestPolicies.PackageRepository value)
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Name | Description |
index | int |
value | GuestPolicies.PackageRepository |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
addPackageRepositories(int index, GuestPolicies.PackageRepository.Builder builderForValue)
public GuestPolicies.GuestPolicy.Builder addPackageRepositories(int index, GuestPolicies.PackageRepository.Builder builderForValue)
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Name | Description |
index | int |
builderForValue | GuestPolicies.PackageRepository.Builder |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
addPackageRepositoriesBuilder()
public GuestPolicies.PackageRepository.Builder addPackageRepositoriesBuilder()
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Type | Description |
GuestPolicies.PackageRepository.Builder |
addPackageRepositoriesBuilder(int index)
public GuestPolicies.PackageRepository.Builder addPackageRepositoriesBuilder(int index)
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Name | Description |
index | int |
Type | Description |
GuestPolicies.PackageRepository.Builder |
addPackages(GuestPolicies.Package value)
public GuestPolicies.GuestPolicy.Builder addPackages(GuestPolicies.Package value)
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Name | Description |
value | GuestPolicies.Package |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
addPackages(GuestPolicies.Package.Builder builderForValue)
public GuestPolicies.GuestPolicy.Builder addPackages(GuestPolicies.Package.Builder builderForValue)
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Name | Description |
builderForValue | GuestPolicies.Package.Builder |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
addPackages(int index, GuestPolicies.Package value)
public GuestPolicies.GuestPolicy.Builder addPackages(int index, GuestPolicies.Package value)
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Name | Description |
index | int |
value | GuestPolicies.Package |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
addPackages(int index, GuestPolicies.Package.Builder builderForValue)
public GuestPolicies.GuestPolicy.Builder addPackages(int index, GuestPolicies.Package.Builder builderForValue)
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Name | Description |
index | int |
builderForValue | GuestPolicies.Package.Builder |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
addPackagesBuilder()
public GuestPolicies.Package.Builder addPackagesBuilder()
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Type | Description |
GuestPolicies.Package.Builder |
addPackagesBuilder(int index)
public GuestPolicies.Package.Builder addPackagesBuilder(int index)
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Name | Description |
index | int |
Type | Description |
GuestPolicies.Package.Builder |
addRecipes(GuestPolicies.SoftwareRecipe value)
public GuestPolicies.GuestPolicy.Builder addRecipes(GuestPolicies.SoftwareRecipe value)
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Name | Description |
value | GuestPolicies.SoftwareRecipe |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
addRecipes(GuestPolicies.SoftwareRecipe.Builder builderForValue)
public GuestPolicies.GuestPolicy.Builder addRecipes(GuestPolicies.SoftwareRecipe.Builder builderForValue)
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Name | Description |
builderForValue | GuestPolicies.SoftwareRecipe.Builder |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
addRecipes(int index, GuestPolicies.SoftwareRecipe value)
public GuestPolicies.GuestPolicy.Builder addRecipes(int index, GuestPolicies.SoftwareRecipe value)
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Name | Description |
index | int |
value | GuestPolicies.SoftwareRecipe |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
addRecipes(int index, GuestPolicies.SoftwareRecipe.Builder builderForValue)
public GuestPolicies.GuestPolicy.Builder addRecipes(int index, GuestPolicies.SoftwareRecipe.Builder builderForValue)
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Name | Description |
index | int |
builderForValue | GuestPolicies.SoftwareRecipe.Builder |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
addRecipesBuilder()
public GuestPolicies.SoftwareRecipe.Builder addRecipesBuilder()
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Type | Description |
GuestPolicies.SoftwareRecipe.Builder |
addRecipesBuilder(int index)
public GuestPolicies.SoftwareRecipe.Builder addRecipesBuilder(int index)
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Name | Description |
index | int |
Type | Description |
GuestPolicies.SoftwareRecipe.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GuestPolicies.GuestPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
build()
public GuestPolicies.GuestPolicy build()
Type | Description |
GuestPolicies.GuestPolicy |
buildPartial()
public GuestPolicies.GuestPolicy buildPartial()
Type | Description |
GuestPolicies.GuestPolicy |
clear()
public GuestPolicies.GuestPolicy.Builder clear()
Type | Description |
GuestPolicies.GuestPolicy.Builder |
clearAssignment()
public GuestPolicies.GuestPolicy.Builder clearAssignment()
Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service handles assignment conflicts.
.google.cloud.osconfig.v1beta.Assignment assignment = 6 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
GuestPolicies.GuestPolicy.Builder |
clearCreateTime()
public GuestPolicies.GuestPolicy.Builder clearCreateTime()
Output only. Time this guest policy was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
GuestPolicies.GuestPolicy.Builder |
clearDescription()
public GuestPolicies.GuestPolicy.Builder clearDescription()
Description of the guest policy. Length of the description is limited to 1024 characters.
string description = 2;
Type | Description |
GuestPolicies.GuestPolicy.Builder | This builder for chaining. |
clearEtag()
public GuestPolicies.GuestPolicy.Builder clearEtag()
The etag for this guest policy. If this is provided on update, it must match the server's etag.
string etag = 10;
Type | Description |
GuestPolicies.GuestPolicy.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public GuestPolicies.GuestPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
clearName()
public GuestPolicies.GuestPolicy.Builder clearName()
Required. Unique name of the resource in this project using one of the following
forms:
projects/{project_number}/guestPolicies/{guest_policy_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
GuestPolicies.GuestPolicy.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public GuestPolicies.GuestPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
clearPackageRepositories()
public GuestPolicies.GuestPolicy.Builder clearPackageRepositories()
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Type | Description |
GuestPolicies.GuestPolicy.Builder |
clearPackages()
public GuestPolicies.GuestPolicy.Builder clearPackages()
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Type | Description |
GuestPolicies.GuestPolicy.Builder |
clearRecipes()
public GuestPolicies.GuestPolicy.Builder clearRecipes()
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Type | Description |
GuestPolicies.GuestPolicy.Builder |
clearUpdateTime()
public GuestPolicies.GuestPolicy.Builder clearUpdateTime()
Output only. Last time this guest policy was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
GuestPolicies.GuestPolicy.Builder |
clone()
public GuestPolicies.GuestPolicy.Builder clone()
Type | Description |
GuestPolicies.GuestPolicy.Builder |
getAssignment()
public GuestPolicies.Assignment getAssignment()
Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service handles assignment conflicts.
.google.cloud.osconfig.v1beta.Assignment assignment = 6 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
GuestPolicies.Assignment | The assignment. |
getAssignmentBuilder()
public GuestPolicies.Assignment.Builder getAssignmentBuilder()
Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service handles assignment conflicts.
.google.cloud.osconfig.v1beta.Assignment assignment = 6 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
GuestPolicies.Assignment.Builder |
getAssignmentOrBuilder()
public GuestPolicies.AssignmentOrBuilder getAssignmentOrBuilder()
Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service handles assignment conflicts.
.google.cloud.osconfig.v1beta.Assignment assignment = 6 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
GuestPolicies.AssignmentOrBuilder |
getCreateTime()
public Timestamp getCreateTime()
Output only. Time this guest policy was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. Time this guest policy was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time this guest policy was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public GuestPolicies.GuestPolicy getDefaultInstanceForType()
Type | Description |
GuestPolicies.GuestPolicy |
getDescription()
public String getDescription()
Description of the guest policy. Length of the description is limited to 1024 characters.
string description = 2;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Description of the guest policy. Length of the description is limited to 1024 characters.
string description = 2;
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEtag()
public String getEtag()
The etag for this guest policy. If this is provided on update, it must match the server's etag.
string etag = 10;
Type | Description |
String | The etag. |
getEtagBytes()
public ByteString getEtagBytes()
The etag for this guest policy. If this is provided on update, it must match the server's etag.
string etag = 10;
Type | Description |
ByteString | The bytes for etag. |
getName()
public String getName()
Required. Unique name of the resource in this project using one of the following
forms:
projects/{project_number}/guestPolicies/{guest_policy_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Required. Unique name of the resource in this project using one of the following
forms:
projects/{project_number}/guestPolicies/{guest_policy_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for name. |
getPackageRepositories(int index)
public GuestPolicies.PackageRepository getPackageRepositories(int index)
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Name | Description |
index | int |
Type | Description |
GuestPolicies.PackageRepository |
getPackageRepositoriesBuilder(int index)
public GuestPolicies.PackageRepository.Builder getPackageRepositoriesBuilder(int index)
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Name | Description |
index | int |
Type | Description |
GuestPolicies.PackageRepository.Builder |
getPackageRepositoriesBuilderList()
public List<GuestPolicies.PackageRepository.Builder> getPackageRepositoriesBuilderList()
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Type | Description |
List<Builder> |
getPackageRepositoriesCount()
public int getPackageRepositoriesCount()
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Type | Description |
int |
getPackageRepositoriesList()
public List<GuestPolicies.PackageRepository> getPackageRepositoriesList()
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Type | Description |
List<PackageRepository> |
getPackageRepositoriesOrBuilder(int index)
public GuestPolicies.PackageRepositoryOrBuilder getPackageRepositoriesOrBuilder(int index)
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Name | Description |
index | int |
Type | Description |
GuestPolicies.PackageRepositoryOrBuilder |
getPackageRepositoriesOrBuilderList()
public List<? extends GuestPolicies.PackageRepositoryOrBuilder> getPackageRepositoriesOrBuilderList()
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Type | Description |
List<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.PackageRepositoryOrBuilder> |
getPackages(int index)
public GuestPolicies.Package getPackages(int index)
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Name | Description |
index | int |
Type | Description |
GuestPolicies.Package |
getPackagesBuilder(int index)
public GuestPolicies.Package.Builder getPackagesBuilder(int index)
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Name | Description |
index | int |
Type | Description |
GuestPolicies.Package.Builder |
getPackagesBuilderList()
public List<GuestPolicies.Package.Builder> getPackagesBuilderList()
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Type | Description |
List<Builder> |
getPackagesCount()
public int getPackagesCount()
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Type | Description |
int |
getPackagesList()
public List<GuestPolicies.Package> getPackagesList()
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Type | Description |
List<Package> |
getPackagesOrBuilder(int index)
public GuestPolicies.PackageOrBuilder getPackagesOrBuilder(int index)
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Name | Description |
index | int |
Type | Description |
GuestPolicies.PackageOrBuilder |
getPackagesOrBuilderList()
public List<? extends GuestPolicies.PackageOrBuilder> getPackagesOrBuilderList()
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Type | Description |
List<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.PackageOrBuilder> |
getRecipes(int index)
public GuestPolicies.SoftwareRecipe getRecipes(int index)
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Name | Description |
index | int |
Type | Description |
GuestPolicies.SoftwareRecipe |
getRecipesBuilder(int index)
public GuestPolicies.SoftwareRecipe.Builder getRecipesBuilder(int index)
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Name | Description |
index | int |
Type | Description |
GuestPolicies.SoftwareRecipe.Builder |
getRecipesBuilderList()
public List<GuestPolicies.SoftwareRecipe.Builder> getRecipesBuilderList()
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Type | Description |
List<Builder> |
getRecipesCount()
public int getRecipesCount()
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Type | Description |
int |
getRecipesList()
public List<GuestPolicies.SoftwareRecipe> getRecipesList()
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Type | Description |
List<SoftwareRecipe> |
getRecipesOrBuilder(int index)
public GuestPolicies.SoftwareRecipeOrBuilder getRecipesOrBuilder(int index)
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Name | Description |
index | int |
Type | Description |
GuestPolicies.SoftwareRecipeOrBuilder |
getRecipesOrBuilderList()
public List<? extends GuestPolicies.SoftwareRecipeOrBuilder> getRecipesOrBuilderList()
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Type | Description |
List<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.SoftwareRecipeOrBuilder> |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. Last time this guest policy was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. Last time this guest policy was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Last time this guest policy was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
hasAssignment()
public boolean hasAssignment()
Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service handles assignment conflicts.
.google.cloud.osconfig.v1beta.Assignment assignment = 6 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
boolean | Whether the assignment field is set. |
hasCreateTime()
public boolean hasCreateTime()
Output only. Time this guest policy was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the createTime field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. Last time this guest policy was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeAssignment(GuestPolicies.Assignment value)
public GuestPolicies.GuestPolicy.Builder mergeAssignment(GuestPolicies.Assignment value)
Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service handles assignment conflicts.
.google.cloud.osconfig.v1beta.Assignment assignment = 6 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | GuestPolicies.Assignment |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
mergeCreateTime(Timestamp value)
public GuestPolicies.GuestPolicy.Builder mergeCreateTime(Timestamp value)
Output only. Time this guest policy was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
mergeFrom(GuestPolicies.GuestPolicy other)
public GuestPolicies.GuestPolicy.Builder mergeFrom(GuestPolicies.GuestPolicy other)
Name | Description |
other | GuestPolicies.GuestPolicy |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GuestPolicies.GuestPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public GuestPolicies.GuestPolicy.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GuestPolicies.GuestPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
mergeUpdateTime(Timestamp value)
public GuestPolicies.GuestPolicy.Builder mergeUpdateTime(Timestamp value)
Output only. Last time this guest policy was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
removePackageRepositories(int index)
public GuestPolicies.GuestPolicy.Builder removePackageRepositories(int index)
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Name | Description |
index | int |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
removePackages(int index)
public GuestPolicies.GuestPolicy.Builder removePackages(int index)
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Name | Description |
index | int |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
removeRecipes(int index)
public GuestPolicies.GuestPolicy.Builder removeRecipes(int index)
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Name | Description |
index | int |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
setAssignment(GuestPolicies.Assignment value)
public GuestPolicies.GuestPolicy.Builder setAssignment(GuestPolicies.Assignment value)
Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service handles assignment conflicts.
.google.cloud.osconfig.v1beta.Assignment assignment = 6 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | GuestPolicies.Assignment |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
setAssignment(GuestPolicies.Assignment.Builder builderForValue)
public GuestPolicies.GuestPolicy.Builder setAssignment(GuestPolicies.Assignment.Builder builderForValue)
Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service handles assignment conflicts.
.google.cloud.osconfig.v1beta.Assignment assignment = 6 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
builderForValue | GuestPolicies.Assignment.Builder |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
setCreateTime(Timestamp value)
public GuestPolicies.GuestPolicy.Builder setCreateTime(Timestamp value)
Output only. Time this guest policy was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public GuestPolicies.GuestPolicy.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. Time this guest policy was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
setDescription(String value)
public GuestPolicies.GuestPolicy.Builder setDescription(String value)
Description of the guest policy. Length of the description is limited to 1024 characters.
string description = 2;
Name | Description |
value | String The description to set. |
Type | Description |
GuestPolicies.GuestPolicy.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public GuestPolicies.GuestPolicy.Builder setDescriptionBytes(ByteString value)
Description of the guest policy. Length of the description is limited to 1024 characters.
string description = 2;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
GuestPolicies.GuestPolicy.Builder | This builder for chaining. |
setEtag(String value)
public GuestPolicies.GuestPolicy.Builder setEtag(String value)
The etag for this guest policy. If this is provided on update, it must match the server's etag.
string etag = 10;
Name | Description |
value | String The etag to set. |
Type | Description |
GuestPolicies.GuestPolicy.Builder | This builder for chaining. |
setEtagBytes(ByteString value)
public GuestPolicies.GuestPolicy.Builder setEtagBytes(ByteString value)
The etag for this guest policy. If this is provided on update, it must match the server's etag.
string etag = 10;
Name | Description |
value | ByteString The bytes for etag to set. |
Type | Description |
GuestPolicies.GuestPolicy.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public GuestPolicies.GuestPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
setName(String value)
public GuestPolicies.GuestPolicy.Builder setName(String value)
Required. Unique name of the resource in this project using one of the following
forms:
projects/{project_number}/guestPolicies/{guest_policy_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | String The name to set. |
Type | Description |
GuestPolicies.GuestPolicy.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public GuestPolicies.GuestPolicy.Builder setNameBytes(ByteString value)
Required. Unique name of the resource in this project using one of the following
forms:
projects/{project_number}/guestPolicies/{guest_policy_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
GuestPolicies.GuestPolicy.Builder | This builder for chaining. |
setPackageRepositories(int index, GuestPolicies.PackageRepository value)
public GuestPolicies.GuestPolicy.Builder setPackageRepositories(int index, GuestPolicies.PackageRepository value)
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Name | Description |
index | int |
value | GuestPolicies.PackageRepository |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
setPackageRepositories(int index, GuestPolicies.PackageRepository.Builder builderForValue)
public GuestPolicies.GuestPolicy.Builder setPackageRepositories(int index, GuestPolicies.PackageRepository.Builder builderForValue)
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;
Name | Description |
index | int |
builderForValue | GuestPolicies.PackageRepository.Builder |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
setPackages(int index, GuestPolicies.Package value)
public GuestPolicies.GuestPolicy.Builder setPackages(int index, GuestPolicies.Package value)
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Name | Description |
index | int |
value | GuestPolicies.Package |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
setPackages(int index, GuestPolicies.Package.Builder builderForValue)
public GuestPolicies.GuestPolicy.Builder setPackages(int index, GuestPolicies.Package.Builder builderForValue)
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;
Name | Description |
index | int |
builderForValue | GuestPolicies.Package.Builder |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
setRecipes(int index, GuestPolicies.SoftwareRecipe value)
public GuestPolicies.GuestPolicy.Builder setRecipes(int index, GuestPolicies.SoftwareRecipe value)
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Name | Description |
index | int |
value | GuestPolicies.SoftwareRecipe |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
setRecipes(int index, GuestPolicies.SoftwareRecipe.Builder builderForValue)
public GuestPolicies.GuestPolicy.Builder setRecipes(int index, GuestPolicies.SoftwareRecipe.Builder builderForValue)
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
Name | Description |
index | int |
builderForValue | GuestPolicies.SoftwareRecipe.Builder |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GuestPolicies.GuestPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final GuestPolicies.GuestPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
setUpdateTime(Timestamp value)
public GuestPolicies.GuestPolicy.Builder setUpdateTime(Timestamp value)
Output only. Last time this guest policy was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
GuestPolicies.GuestPolicy.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public GuestPolicies.GuestPolicy.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. Last time this guest policy was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
GuestPolicies.GuestPolicy.Builder |