Class GuestPolicies.SoftwareRecipe.Artifact.Builder (2.50.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GuestPolicies.SoftwareRecipe.Artifact.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder
Overrides

build()

public GuestPolicies.SoftwareRecipe.Artifact build()
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact

buildPartial()

public GuestPolicies.SoftwareRecipe.Artifact buildPartial()
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact

clear()

public GuestPolicies.SoftwareRecipe.Artifact.Builder clear()
Returns
Type Description
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
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder

This builder for chaining.

clearArtifact()

public GuestPolicies.SoftwareRecipe.Artifact.Builder clearArtifact()
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder

clearField(Descriptors.FieldDescriptor field)

public GuestPolicies.SoftwareRecipe.Artifact.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GuestPolicies.SoftwareRecipe.Artifact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder

clone()

public GuestPolicies.SoftwareRecipe.Artifact.Builder clone()
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder
Overrides

getAllowInsecure()

public boolean getAllowInsecure()

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
Type Description
boolean

The allowInsecure.

getArtifactCase()

public GuestPolicies.SoftwareRecipe.Artifact.ArtifactCase getArtifactCase()
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.ArtifactCase

getDefaultInstanceForType()

public GuestPolicies.SoftwareRecipe.Artifact getDefaultInstanceForType()
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGcs()

public GuestPolicies.SoftwareRecipe.Artifact.Gcs getGcs()

A Google Cloud Storage artifact.

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

Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Gcs

The gcs.

getGcsBuilder()

public GuestPolicies.SoftwareRecipe.Artifact.Gcs.Builder getGcsBuilder()

A Google Cloud Storage artifact.

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

Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Gcs.Builder

getGcsOrBuilder()

public GuestPolicies.SoftwareRecipe.Artifact.GcsOrBuilder getGcsOrBuilder()

A Google Cloud Storage artifact.

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

Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.GcsOrBuilder

getId()

public String getId()

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
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

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
Type Description
ByteString

The bytes for id.

getRemote()

public GuestPolicies.SoftwareRecipe.Artifact.Remote getRemote()

A generic remote artifact.

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

Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Remote

The remote.

getRemoteBuilder()

public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder getRemoteBuilder()

A generic remote artifact.

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

Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder

getRemoteOrBuilder()

public GuestPolicies.SoftwareRecipe.Artifact.RemoteOrBuilder getRemoteOrBuilder()

A generic remote artifact.

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

Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.RemoteOrBuilder

hasGcs()

public boolean hasGcs()

A Google Cloud Storage artifact.

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

Returns
Type Description
boolean

Whether the gcs field is set.

hasRemote()

public boolean hasRemote()

A generic remote artifact.

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

Returns
Type Description
boolean

Whether the remote field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GuestPolicies.SoftwareRecipe.Artifact other)

public GuestPolicies.SoftwareRecipe.Artifact.Builder mergeFrom(GuestPolicies.SoftwareRecipe.Artifact other)
Parameter
Name Description
other GuestPolicies.SoftwareRecipe.Artifact
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GuestPolicies.SoftwareRecipe.Artifact.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GuestPolicies.SoftwareRecipe.Artifact.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder
Overrides

mergeGcs(GuestPolicies.SoftwareRecipe.Artifact.Gcs value)

public GuestPolicies.SoftwareRecipe.Artifact.Builder mergeGcs(GuestPolicies.SoftwareRecipe.Artifact.Gcs value)

A Google Cloud Storage artifact.

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

Parameter
Name Description
value GuestPolicies.SoftwareRecipe.Artifact.Gcs
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder

mergeRemote(GuestPolicies.SoftwareRecipe.Artifact.Remote value)

public GuestPolicies.SoftwareRecipe.Artifact.Builder mergeRemote(GuestPolicies.SoftwareRecipe.Artifact.Remote value)

A generic remote artifact.

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

Parameter
Name Description
value GuestPolicies.SoftwareRecipe.Artifact.Remote
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.SoftwareRecipe.Artifact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder
Overrides

setAllowInsecure(boolean value)

public GuestPolicies.SoftwareRecipe.Artifact.Builder setAllowInsecure(boolean value)

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;

Parameter
Name Description
value boolean

The allowInsecure to set.

Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GuestPolicies.SoftwareRecipe.Artifact.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder
Overrides

setGcs(GuestPolicies.SoftwareRecipe.Artifact.Gcs value)

public GuestPolicies.SoftwareRecipe.Artifact.Builder setGcs(GuestPolicies.SoftwareRecipe.Artifact.Gcs value)

A Google Cloud Storage artifact.

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

Parameter
Name Description
value GuestPolicies.SoftwareRecipe.Artifact.Gcs
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder

setGcs(GuestPolicies.SoftwareRecipe.Artifact.Gcs.Builder builderForValue)

public GuestPolicies.SoftwareRecipe.Artifact.Builder setGcs(GuestPolicies.SoftwareRecipe.Artifact.Gcs.Builder builderForValue)

A Google Cloud Storage artifact.

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

Parameter
Name Description
builderForValue GuestPolicies.SoftwareRecipe.Artifact.Gcs.Builder
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder

setId(String value)

public GuestPolicies.SoftwareRecipe.Artifact.Builder setId(String value)

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];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder

This builder for chaining.

setIdBytes(ByteString value)

public GuestPolicies.SoftwareRecipe.Artifact.Builder setIdBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder

This builder for chaining.

setRemote(GuestPolicies.SoftwareRecipe.Artifact.Remote value)

public GuestPolicies.SoftwareRecipe.Artifact.Builder setRemote(GuestPolicies.SoftwareRecipe.Artifact.Remote value)

A generic remote artifact.

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

Parameter
Name Description
value GuestPolicies.SoftwareRecipe.Artifact.Remote
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder

setRemote(GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder builderForValue)

public GuestPolicies.SoftwareRecipe.Artifact.Builder setRemote(GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder builderForValue)

A generic remote artifact.

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

Parameter
Name Description
builderForValue GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder

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

public GuestPolicies.SoftwareRecipe.Artifact.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.SoftwareRecipe.Artifact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GuestPolicies.SoftwareRecipe.Artifact.Builder
Overrides