Class GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder (2.20.0)

public static final class GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder extends GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder> implements GuestPolicies.SoftwareRecipe.Step.InstallMsiOrBuilder

Installs an MSI file.

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

Static Methods

getDescriptor()

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

Methods

addAllAllowedExitCodes(Iterable<? extends Integer> values)

public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder addAllAllowedExitCodes(Iterable<? extends Integer> values)

Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]

repeated int32 allowed_exit_codes = 3;

Parameter
NameDescription
valuesIterable<? extends java.lang.Integer>

The allowedExitCodes to add.

Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder

This builder for chaining.

addAllFlags(Iterable<String> values)

public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder addAllFlags(Iterable<String> values)

The flags to use when installing the MSI defaults to ["/i"] (i.e. the install flag).

repeated string flags = 2;

Parameter
NameDescription
valuesIterable<String>

The flags to add.

Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder

This builder for chaining.

addAllowedExitCodes(int value)

public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder addAllowedExitCodes(int value)

Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]

repeated int32 allowed_exit_codes = 3;

Parameter
NameDescription
valueint

The allowedExitCodes to add.

Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder

This builder for chaining.

addFlags(String value)

public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder addFlags(String value)

The flags to use when installing the MSI defaults to ["/i"] (i.e. the install flag).

repeated string flags = 2;

Parameter
NameDescription
valueString

The flags to add.

Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder

This builder for chaining.

addFlagsBytes(ByteString value)

public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder addFlagsBytes(ByteString value)

The flags to use when installing the MSI defaults to ["/i"] (i.e. the install flag).

repeated string flags = 2;

Parameter
NameDescription
valueByteString

The bytes of the flags to add.

Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder addRepeatedField(Descriptors