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.Builder
addAllAllowedExitCodes(Iterable<? extends Integer> values)
Return codes that indicate that the software installed or updated successfully.GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
addAllFlags(Iterable<String> values)
The flags to use when installing the MSI defaults to ["/i"] (i.e.GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
addAllowedExitCodes(int value)
Return codes that indicate that the software installed or updated successfully.GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
addFlags(String value)
The flags to use when installing the MSI defaults to ["/i"] (i.e.GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
addFlagsBytes(com.google.protobuf.ByteString value)
The flags to use when installing the MSI defaults to ["/i"] (i.e.GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GuestPolicies.SoftwareRecipe.Step.InstallMsi
build()
GuestPolicies.SoftwareRecipe.Step.InstallMsi
buildPartial()
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
clear()
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
clearAllowedExitCodes()
Return codes that indicate that the software installed or updated successfully.GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
clearArtifactId()
Required.GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
clearFlags()
The flags to use when installing the MSI defaults to ["/i"] (i.e.GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
clone()
int
getAllowedExitCodes(int index)
Return codes that indicate that the software installed or updated successfully.int
getAllowedExitCodesCount()
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.String
getArtifactId()
Required.com.google.protobuf.ByteString
getArtifactIdBytes()
Required.GuestPolicies.SoftwareRecipe.Step.InstallMsi
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFlags(int index)
The flags to use when installing the MSI defaults to ["/i"] (i.e.com.google.protobuf.ByteString
getFlagsBytes(int index)
The flags to use when installing the MSI defaults to ["/i"] (i.e.int
getFlagsCount()
The flags to use when installing the MSI defaults to ["/i"] (i.e.com.google.protobuf.ProtocolStringList
getFlagsList()
The flags to use when installing the MSI defaults to ["/i"] (i.e.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
mergeFrom(GuestPolicies.SoftwareRecipe.Step.InstallMsi other)
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
mergeFrom(com.google.protobuf.Message other)
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
setAllowedExitCodes(int index, int value)
Return codes that indicate that the software installed or updated successfully.GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
setArtifactId(String value)
Required.GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
setArtifactIdBytes(com.google.protobuf.ByteString value)
Required.GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
setFlags(int index, String value)
The flags to use when installing the MSI defaults to ["/i"] (i.e.GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
clear
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
getDefaultInstanceForType
public GuestPolicies.SoftwareRecipe.Step.InstallMsi getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GuestPolicies.SoftwareRecipe.Step.InstallMsi build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GuestPolicies.SoftwareRecipe.Step.InstallMsi buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in 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:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in 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:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in 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:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in 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:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in 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:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getArtifactId
in 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:
getArtifactIdBytes
in 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:
getFlagsList
in 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:
getFlagsCount
in 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:
getFlags
in 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:
getFlagsBytes
in 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:
getAllowedExitCodesList
in 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:
getAllowedExitCodesCount
in 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:
getAllowedExitCodes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in 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:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.InstallMsi.Builder>
-
-