Class OSPolicy.Resource.PackageResource.MSI.Builder (2.13.0)

public static final class OSPolicy.Resource.PackageResource.MSI.Builder extends GeneratedMessageV3.Builder<OSPolicy.Resource.PackageResource.MSI.Builder> implements OSPolicy.Resource.PackageResource.MSIOrBuilder

An MSI package. MSI packages only support INSTALLED state.

Protobuf type google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI

Static Methods

getDescriptor()

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

Methods

addAllProperties(Iterable<String> values)

public OSPolicy.Resource.PackageResource.MSI.Builder addAllProperties(Iterable<String> values)

Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of ACTION=INSTALL REBOOT=ReallySuppress.

repeated string properties = 2;

Parameter
NameDescription
valuesIterable<String>

The properties to add.

Returns
TypeDescription
OSPolicy.Resource.PackageResource.MSI.Builder

This builder for chaining.

addProperties(String value)

public OSPolicy.Resource.PackageResource.MSI.Builder addProperties(String value)

Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of ACTION=INSTALL REBOOT=ReallySuppress.

repeated string properties = 2;

Parameter
NameDescription
valueString

The properties to add.

Returns
TypeDescription
OSPolicy.Resource.PackageResource.MSI.Builder

This builder for chaining.

addPropertiesBytes(ByteString value)

public OSPolicy.Resource.PackageResource.MSI.Builder addPropertiesBytes(ByteString value)

Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of ACTION=INSTALL REBOOT=ReallySuppress.

repeated string properties = 2;

Parameter
NameDescription
valueByteString

The bytes of the properties to add.

Returns
TypeDescription
OSPolicy.Resource.PackageResource.MSI.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OSPolicy.Resource.PackageResource.MSI.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OSPolicy.Resource.PackageResource.MSI.Builder
Overrides

build()

public OSPolicy.Resource.PackageResource.MSI build()
Returns
TypeDescription
OSPolicy.Resource.PackageResource.MSI

buildPartial()

public OSPolicy.Resource.PackageResource.MSI buildPartial()
Returns
TypeDescription
OSPolicy.Resource.PackageResource.MSI

clear()

public OSPolicy.Resource.PackageResource.MSI.Builder clear()
Returns
TypeDescription
OSPolicy.Resource.PackageResource.MSI.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OSPolicy.Resource.PackageResource.MSI.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OSPolicy.Resource.PackageResource.MSI.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public OSPolicy.Resource.PackageResource.MSI.Builder clearOneof