Class GuestPolicies.SoftwareRecipe.Step (2.51.0)

public static final class GuestPolicies.SoftwareRecipe.Step extends GeneratedMessageV3 implements GuestPolicies.SoftwareRecipe.StepOrBuilder

An action that can be taken as part of installing or updating a recipe.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GuestPolicies.SoftwareRecipe.Step

Static Fields

ARCHIVE_EXTRACTION_FIELD_NUMBER

public static final int ARCHIVE_EXTRACTION_FIELD_NUMBER
Field Value
Type Description
int

DPKG_INSTALLATION_FIELD_NUMBER

public static final int DPKG_INSTALLATION_FIELD_NUMBER
Field Value
Type Description
int

FILE_COPY_FIELD_NUMBER

public static final int FILE_COPY_FIELD_NUMBER
Field Value
Type Description
int

FILE_EXEC_FIELD_NUMBER

public static final int FILE_EXEC_FIELD_NUMBER
Field Value
Type Description
int

MSI_INSTALLATION_FIELD_NUMBER

public static final int MSI_INSTALLATION_FIELD_NUMBER
Field Value
Type Description
int

RPM_INSTALLATION_FIELD_NUMBER

public static final int RPM_INSTALLATION_FIELD_NUMBER
Field Value
Type Description
int

SCRIPT_RUN_FIELD_NUMBER

public static final int SCRIPT_RUN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GuestPolicies.SoftwareRecipe.Step getDefaultInstance()
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static GuestPolicies.SoftwareRecipe.Step.Builder newBuilder()
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.Builder

newBuilder(GuestPolicies.SoftwareRecipe.Step prototype)

public static GuestPolicies.SoftwareRecipe.Step.Builder newBuilder(GuestPolicies.SoftwareRecipe.Step prototype)
Parameter
Name Description
prototype GuestPolicies.SoftwareRecipe.Step
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.Builder

parseDelimitedFrom(InputStream input)

public static GuestPolicies.SoftwareRecipe.Step parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.SoftwareRecipe.Step parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GuestPolicies.SoftwareRecipe.Step> parser()
Returns
Type Description
Parser<Step>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getArchiveExtraction()

public GuestPolicies.SoftwareRecipe.Step.ExtractArchive getArchiveExtraction()

Extracts an archive into the specified directory.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.ExtractArchive archive_extraction = 2;

Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.ExtractArchive

The archiveExtraction.

getArchiveExtractionOrBuilder()

public GuestPolicies.SoftwareRecipe.Step.ExtractArchiveOrBuilder getArchiveExtractionOrBuilder()

Extracts an archive into the specified directory.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.ExtractArchive archive_extraction = 2;

Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.ExtractArchiveOrBuilder

getDefaultInstanceForType()

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

getDpkgInstallation()

public GuestPolicies.SoftwareRecipe.Step.InstallDpkg getDpkgInstallation()

Installs a deb file via dpkg.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.InstallDpkg dpkg_installation = 4;

Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.InstallDpkg

The dpkgInstallation.

getDpkgInstallationOrBuilder()

public GuestPolicies.SoftwareRecipe.Step.InstallDpkgOrBuilder getDpkgInstallationOrBuilder()

Installs a deb file via dpkg.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.InstallDpkg dpkg_installation = 4;

Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.InstallDpkgOrBuilder

getFileCopy()

public GuestPolicies.SoftwareRecipe.Step.CopyFile getFileCopy()

Copies a file onto the instance.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.CopyFile file_copy = 1;

Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.CopyFile

The fileCopy.

getFileCopyOrBuilder()

public GuestPolicies.SoftwareRecipe.Step.CopyFileOrBuilder getFileCopyOrBuilder()

Copies a file onto the instance.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.CopyFile file_copy = 1;

Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.CopyFileOrBuilder

getFileExec()

public GuestPolicies.SoftwareRecipe.Step.ExecFile getFileExec()

Executes an artifact or local file.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.ExecFile file_exec = 6;

Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.ExecFile

The fileExec.

getFileExecOrBuilder()

public GuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder getFileExecOrBuilder()

Executes an artifact or local file.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.ExecFile file_exec = 6;

Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder

getMsiInstallation()

public GuestPolicies.SoftwareRecipe.Step.InstallMsi getMsiInstallation()

Installs an MSI file.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.InstallMsi msi_installation = 3;

Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.InstallMsi

The msiInstallation.

getMsiInstallationOrBuilder()

public GuestPolicies.SoftwareRecipe.Step.InstallMsiOrBuilder getMsiInstallationOrBuilder()

Installs an MSI file.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.InstallMsi msi_installation = 3;

Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.InstallMsiOrBuilder

getParserForType()

public Parser<GuestPolicies.SoftwareRecipe.Step> getParserForType()
Returns
Type Description
Parser<Step>
Overrides

getRpmInstallation()

public GuestPolicies.SoftwareRecipe.Step.InstallRpm getRpmInstallation()

Installs an rpm file via the rpm utility.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.InstallRpm rpm_installation = 5;

Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.InstallRpm

The rpmInstallation.

getRpmInstallationOrBuilder()

public GuestPolicies.SoftwareRecipe.Step.InstallRpmOrBuilder getRpmInstallationOrBuilder()

Installs an rpm file via the rpm utility.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.InstallRpm rpm_installation = 5;

Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.InstallRpmOrBuilder

getScriptRun()

public GuestPolicies.SoftwareRecipe.Step.RunScript getScriptRun()

Runs commands in a shell.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.RunScript script_run = 7;

Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.RunScript

The scriptRun.

getScriptRunOrBuilder()

public GuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder getScriptRunOrBuilder()

Runs commands in a shell.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.RunScript script_run = 7;

Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStepCase()

public GuestPolicies.SoftwareRecipe.Step.StepCase getStepCase()
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.StepCase

hasArchiveExtraction()

public boolean hasArchiveExtraction()

Extracts an archive into the specified directory.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.ExtractArchive archive_extraction = 2;

Returns
Type Description
boolean

Whether the archiveExtraction field is set.

hasDpkgInstallation()

public boolean hasDpkgInstallation()

Installs a deb file via dpkg.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.InstallDpkg dpkg_installation = 4;

Returns
Type Description
boolean

Whether the dpkgInstallation field is set.

hasFileCopy()

public boolean hasFileCopy()

Copies a file onto the instance.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.CopyFile file_copy = 1;

Returns
Type Description
boolean

Whether the fileCopy field is set.

hasFileExec()

public boolean hasFileExec()

Executes an artifact or local file.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.ExecFile file_exec = 6;

Returns
Type Description
boolean

Whether the fileExec field is set.

hasMsiInstallation()

public boolean hasMsiInstallation()

Installs an MSI file.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.InstallMsi msi_installation = 3;

Returns
Type Description
boolean

Whether the msiInstallation field is set.

hasRpmInstallation()

public boolean hasRpmInstallation()

Installs an rpm file via the rpm utility.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.InstallRpm rpm_installation = 5;

Returns
Type Description
boolean

Whether the rpmInstallation field is set.

hasScriptRun()

public boolean hasScriptRun()

Runs commands in a shell.

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.RunScript script_run = 7;

Returns
Type Description
boolean

Whether the scriptRun field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GuestPolicies.SoftwareRecipe.Step.Builder newBuilderForType()
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GuestPolicies.SoftwareRecipe.Step.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public GuestPolicies.SoftwareRecipe.Step.Builder toBuilder()
Returns
Type Description
GuestPolicies.SoftwareRecipe.Step.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException