Package com.google.cloud.osconfig.v1beta
Class GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
- com.google.cloud.osconfig.v1beta.GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
-
- All Implemented Interfaces:
GuestPolicies.SoftwareRecipe.Step.InstallMsiOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GuestPolicies.SoftwareRecipe.Step.InstallMsi
public static final class GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder> implements GuestPolicies.SoftwareRecipe.Step.InstallMsiOrBuilder
Installs an MSI file.
Protobuf typegoogle.cloud.osconfig.v1beta.SoftwareRecipe.Step.InstallMsi
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuilderaddAllAllowedExitCodes(Iterable<? extends Integer> values)Return codes that indicate that the software installed or updated successfully.GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuilderaddAllFlags(Iterable<String> values)The flags to use when installing the MSI defaults to ["/i"] (i.e.GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuilderaddAllowedExitCodes(int value)Return codes that indicate that the software installed or updated successfully.GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuilderaddFlags(String value)The flags to use when installing the MSI defaults to ["/i"] (i.e.GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuilderaddFlagsBytes(com.google.protobuf.ByteString value)The flags to use when installing the MSI defaults to ["/i"] (i.e.GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GuestPolicies.SoftwareRecipe.Step.InstallMsibuild()GuestPolicies.SoftwareRecipe.Step.InstallMsibuildPartial()GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builderclear()GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuilderclearAllowedExitCodes()Return codes that indicate that the software installed or updated successfully.GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuilderclearArtifactId()Required.GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuilderclearFlags()The flags to use when installing the MSI defaults to ["/i"] (i.e.GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builderclone()intgetAllowedExitCodes(int index)Return codes that indicate that the software installed or updated successfully.intgetAllowedExitCodesCount()Return codes that indicate that the software installed or updated successfully.List<Integer>getAllowedExitCodesList()Return codes that indicate that the software installed or updated successfully.StringgetArtifactId()Required.com.google.protobuf.ByteStringgetArtifactIdBytes()Required.GuestPolicies.SoftwareRecipe.Step.InstallMsigetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFlags(int index)The flags to use when installing the MSI defaults to ["/i"] (i.e.com.google.protobuf.ByteStringgetFlagsBytes(int index)The flags to use when installing the MSI defaults to ["/i"] (i.e.intgetFlagsCount()The flags to use when installing the MSI defaults to ["/i"] (i.e.com.google.protobuf.ProtocolStringListgetFlagsList()The flags to use when installing the MSI defaults to ["/i"] (i.e.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuildermergeFrom(GuestPolicies.SoftwareRecipe.Step.InstallMsi other)GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuildermergeFrom(com.google.protobuf.Message other)GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuildersetAllowedExitCodes(int index, int value)Return codes that indicate that the software installed or updated successfully.GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuildersetArtifactId(String value)Required.GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuildersetArtifactIdBytes(com.google.protobuf.ByteString value)Required.GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuildersetFlags(int index, String value)The flags to use when installing the MSI defaults to ["/i"] (i.e.GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GuestPolicies.SoftwareRecipe.Step.InstallMsi.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
clear
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
getDefaultInstanceForType
public GuestPolicies.SoftwareRecipe.Step.InstallMsi getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GuestPolicies.SoftwareRecipe.Step.InstallMsi build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GuestPolicies.SoftwareRecipe.Step.InstallMsi buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
setField
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
clearField
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
clearOneof
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
setRepeatedField
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
addRepeatedField
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder mergeFrom(GuestPolicies.SoftwareRecipe.Step.InstallMsi other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>- Throws:
IOException
-
getArtifactId
public String getArtifactId()
Required. The id of the relevant artifact in the recipe.
string artifact_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getArtifactIdin interfaceGuestPolicies.SoftwareRecipe.Step.InstallMsiOrBuilder- Returns:
- The artifactId.
-
getArtifactIdBytes
public com.google.protobuf.ByteString getArtifactIdBytes()
Required. The id of the relevant artifact in the recipe.
string artifact_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getArtifactIdBytesin interfaceGuestPolicies.SoftwareRecipe.Step.InstallMsiOrBuilder- Returns:
- The bytes for artifactId.
-
setArtifactId
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder setArtifactId(String value)
Required. The id of the relevant artifact in the recipe.
string artifact_id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The artifactId to set.- Returns:
- This builder for chaining.
-
clearArtifactId
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder clearArtifactId()
Required. The id of the relevant artifact in the recipe.
string artifact_id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setArtifactIdBytes
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder setArtifactIdBytes(com.google.protobuf.ByteString value)
Required. The id of the relevant artifact in the recipe.
string artifact_id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for artifactId to set.- Returns:
- This builder for chaining.
-
getFlagsList
public com.google.protobuf.ProtocolStringList getFlagsList()
The flags to use when installing the MSI defaults to ["/i"] (i.e. the install flag).
repeated string flags = 2;- Specified by:
getFlagsListin interfaceGuestPolicies.SoftwareRecipe.Step.InstallMsiOrBuilder- Returns:
- A list containing the flags.
-
getFlagsCount
public int getFlagsCount()
The flags to use when installing the MSI defaults to ["/i"] (i.e. the install flag).
repeated string flags = 2;- Specified by:
getFlagsCountin interfaceGuestPolicies.SoftwareRecipe.Step.InstallMsiOrBuilder- Returns:
- The count of flags.
-
getFlags
public String getFlags(int index)
The flags to use when installing the MSI defaults to ["/i"] (i.e. the install flag).
repeated string flags = 2;- Specified by:
getFlagsin interfaceGuestPolicies.SoftwareRecipe.Step.InstallMsiOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The flags at the given index.
-
getFlagsBytes
public com.google.protobuf.ByteString getFlagsBytes(int index)
The flags to use when installing the MSI defaults to ["/i"] (i.e. the install flag).
repeated string flags = 2;- Specified by:
getFlagsBytesin interfaceGuestPolicies.SoftwareRecipe.Step.InstallMsiOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the flags at the given index.
-
setFlags
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder setFlags(int index, String value)
The flags to use when installing the MSI defaults to ["/i"] (i.e. the install flag).
repeated string flags = 2;- Parameters:
index- The index to set the value at.value- The flags to set.- Returns:
- This builder for chaining.
-
addFlags
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;- Parameters:
value- The flags to add.- Returns:
- This builder for chaining.
-
addAllFlags
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;- Parameters:
values- The flags to add.- Returns:
- This builder for chaining.
-
clearFlags
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder clearFlags()
The flags to use when installing the MSI defaults to ["/i"] (i.e. the install flag).
repeated string flags = 2;- Returns:
- This builder for chaining.
-
addFlagsBytes
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder addFlagsBytes(com.google.protobuf.ByteString value)
The flags to use when installing the MSI defaults to ["/i"] (i.e. the install flag).
repeated string flags = 2;- Parameters:
value- The bytes of the flags to add.- Returns:
- This builder for chaining.
-
getAllowedExitCodesList
public List<Integer> getAllowedExitCodesList()
Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]
repeated int32 allowed_exit_codes = 3;- Specified by:
getAllowedExitCodesListin interfaceGuestPolicies.SoftwareRecipe.Step.InstallMsiOrBuilder- Returns:
- A list containing the allowedExitCodes.
-
getAllowedExitCodesCount
public int getAllowedExitCodesCount()
Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]
repeated int32 allowed_exit_codes = 3;- Specified by:
getAllowedExitCodesCountin interfaceGuestPolicies.SoftwareRecipe.Step.InstallMsiOrBuilder- Returns:
- The count of allowedExitCodes.
-
getAllowedExitCodes
public int getAllowedExitCodes(int index)
Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]
repeated int32 allowed_exit_codes = 3;- Specified by:
getAllowedExitCodesin interfaceGuestPolicies.SoftwareRecipe.Step.InstallMsiOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedExitCodes at the given index.
-
setAllowedExitCodes
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder setAllowedExitCodes(int index, int value)
Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]
repeated int32 allowed_exit_codes = 3;- Parameters:
index- The index to set the value at.value- The allowedExitCodes to set.- Returns:
- This builder for chaining.
-
addAllowedExitCodes
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;- Parameters:
value- The allowedExitCodes to add.- Returns:
- This builder for chaining.
-
addAllAllowedExitCodes
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;- Parameters:
values- The allowedExitCodes to add.- Returns:
- This builder for chaining.
-
clearAllowedExitCodes
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder clearAllowedExitCodes()
Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]
repeated int32 allowed_exit_codes = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
mergeUnknownFields
public final GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
-