Class GuestPolicies.SoftwareRecipe.Artifact.Builder (2.29.0)

public static final class GuestPolicies.SoftwareRecipe.Artifact.Builder extends GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Builder> implements GuestPolicies.SoftwareRecipe.ArtifactOrBuilder

Specifies a resource to be used in the recipe.

Protobuf type google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GuestPolicies.SoftwareRecipe.Artifact build()
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Artifact

buildPartial()

public GuestPolicies.SoftwareRecipe.Artifact buildPartial()
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Artifact

clear()

public GuestPolicies.SoftwareRecipe.Artifact.Builder clear()
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Artifact.Builder
Overrides

clearAllowInsecure()

public GuestPolicies.SoftwareRecipe.Artifact.Builder clearAllowInsecure()

Defaults to false. When false, recipes are subject to validations based on the artifact type:

Remote: A checksum must be specified, and only protocols with transport-layer security are permitted. GCS: An object generation number must be specified.

bool allow_insecure = 4;

Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Artifact.Builder

This builder for chaining.

clearArtifact()

public GuestPolicies.SoftwareRecipe.Artifact.Builder clearArtifact()
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Artifact.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGcs()

public GuestPolicies.SoftwareRecipe.Artifact.Builder clearGcs()

A Google Cloud Storage artifact.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Gcs gcs = 3;

Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Artifact.Builder

clearId()

public GuestPolicies.SoftwareRecipe.Artifact.Builder clearId()

Required. Id of the artifact, which the installation and update steps of this recipe can reference. Artifacts in a recipe cannot have the same id.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Artifact.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRemote()

public GuestPolicies.SoftwareRecipe.Artifact.Builder clearRemote()

A generic remote artifact.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2;

Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Artifact.Builder

clone()

public GuestPolicies.SoftwareRecipe.Artifact.Builder clone()
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Artifact.Builder
Overrides