Class GuestPolicies.SoftwareRecipe.Step (2.23.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
TypeDescription
int

DPKG_INSTALLATION_FIELD_NUMBER

public static final int DPKG_INSTALLATION_FIELD_NUMBER
Field Value
TypeDescription
int

FILE_COPY_FIELD_NUMBER

public static final int FILE_COPY_FIELD_NUMBER
Field Value
TypeDescription
int

FILE_EXEC_FIELD_NUMBER

public static final int FILE_EXEC_FIELD_NUMBER
Field Value
TypeDescription
int

MSI_INSTALLATION_FIELD_NUMBER

public static final int MSI_INSTALLATION_FIELD_NUMBER
Field Value
TypeDescription
int

RPM_INSTALLATION_FIELD_NUMBER

public static final int RPM_INSTALLATION_FIELD_NUMBER
Field Value
TypeDescription
int

SCRIPT_RUN_FIELD_NUMBER

public static final int SCRIPT_RUN_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GuestPolicies.SoftwareRecipe.Step getDefaultInstance()
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step

getDescriptor()

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

newBuilder()

public static GuestPolicies.SoftwareRecipe.Step.Builder newBuilder()
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step.Builder

newBuilder(GuestPolicies.SoftwareRecipe.Step prototype)

public static GuestPolicies.SoftwareRecipe.Step.Builder newBuilder(GuestPolicies.SoftwareRecipe.Step prototype)
Parameter
NameDescription
prototypeGuestPolicies.SoftwareRecipe.Step
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step.Builder

parseDelimitedFrom(InputStream input)

public static GuestPolicies.SoftwareRecipe.Step parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.SoftwareRecipe.Step parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.SoftwareRecipe.Step parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GuestPolicies.SoftwareRecipe.Step.ExtractArchiveOrBuilder

getDefaultInstanceForType()

public GuestPolicies.SoftwareRecipe.Step getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
GuestPolicies.SoftwareRecipe.Step.InstallMsiOrBuilder

getParserForType()

public Parser<GuestPolicies.SoftwareRecipe.Step> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
GuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStepCase()

public GuestPolicies.SoftwareRecipe.Step.StepCase getStepCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the scriptRun field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GuestPolicies.SoftwareRecipe.Step.Builder newBuilderForType()
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GuestPolicies.SoftwareRecipe.Step.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GuestPolicies.SoftwareRecipe.Step.Builder toBuilder()
Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException