Class GuestPolicies.SoftwareRecipe.Artifact.Builder (2.26.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

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
TypeDescription
boolean

The allowInsecure.

getArtifactCase()

public GuestPolicies.SoftwareRecipe.Artifact.ArtifactCase getArtifactCase()
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Artifact.ArtifactCase

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcs()

public GuestPolicies.SoftwareRecipe.Artifact.Gcs getGcs()

A Google Cloud Storage artifact.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
GuestPolicies.SoftwareRecipe.Artifact.RemoteOrBuilder

hasGcs()

public boolean hasGcs()

A Google Cloud Storage artifact.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the remote field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GuestPolicies.SoftwareRecipe.Artifact other)

public GuestPolicies.SoftwareRecipe.Artifact.Builder mergeFrom(GuestPolicies.SoftwareRecipe.Artifact other)
Parameter
NameDescription
otherGuestPolicies.SoftwareRecipe.Artifact
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Artifact.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public GuestPolicies.SoftwareRecipe.Artifact.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueGuestPolicies.SoftwareRecipe.Artifact.Gcs
Returns
TypeDescription
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
NameDescription
valueGuestPolicies.SoftwareRecipe.Artifact.Remote
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Artifact.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.SoftwareRecipe.Artifact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The allowInsecure to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueGuestPolicies.SoftwareRecipe.Artifact.Gcs
Returns
TypeDescription
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
NameDescription
builderForValueGuestPolicies.SoftwareRecipe.Artifact.Gcs.Builder
Returns
TypeDescription
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
NameDescription
valueString

The id to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
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
NameDescription
valueGuestPolicies.SoftwareRecipe.Artifact.Remote
Returns
TypeDescription
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
NameDescription
builderForValueGuestPolicies.SoftwareRecipe.Artifact.Remote.Builder
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Artifact.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.SoftwareRecipe.Artifact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Artifact.Builder
Overrides