Package com.google.cloud.osconfig.v1beta
Class GuestPolicies.SoftwareRecipe.Step.RunScript.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Step.RunScript.Builder>
com.google.cloud.osconfig.v1beta.GuestPolicies.SoftwareRecipe.Step.RunScript.Builder
- All Implemented Interfaces:
GuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GuestPolicies.SoftwareRecipe.Step.RunScript
public static final class GuestPolicies.SoftwareRecipe.Step.RunScript.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Step.RunScript.Builder>
implements GuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder
Runs a script through an interpreter.Protobuf type
google.cloud.osconfig.v1beta.SoftwareRecipe.Step.RunScript-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowedExitCodes(Iterable<? extends Integer> values) Return codes that indicate that the software installed or updated successfully.addAllowedExitCodes(int value) Return codes that indicate that the software installed or updated successfully.build()clear()Return codes that indicate that the software installed or updated successfully.The script interpreter to use to run the script.Required.intgetAllowedExitCodes(int index) Return codes that indicate that the software installed or updated successfully.intReturn codes that indicate that the software installed or updated successfully.Return codes that indicate that the software installed or updated successfully.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe script interpreter to use to run the script.intThe script interpreter to use to run the script.Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAllowedExitCodes(int index, int value) Return codes that indicate that the software installed or updated successfully.The script interpreter to use to run the script.setInterpreterValue(int value) The script interpreter to use to run the script.Required.setScriptBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Step.RunScript.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Step.RunScript.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.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Step.RunScript.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.RunScript.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.RunScript.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.RunScript.Builder mergeFrom(GuestPolicies.SoftwareRecipe.Step.RunScript other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Step.RunScript.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.RunScript.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.RunScript.Builder>- Throws:
IOException
-
getScript
Required. The shell script to be executed.
string script = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getScriptin interfaceGuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder- Returns:
- The script.
-
getScriptBytes
public com.google.protobuf.ByteString getScriptBytes()Required. The shell script to be executed.
string script = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getScriptBytesin interfaceGuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder- Returns:
- The bytes for script.
-
setScript
Required. The shell script to be executed.
string script = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The script to set.- Returns:
- This builder for chaining.
-
clearScript
Required. The shell script to be executed.
string script = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setScriptBytes
public GuestPolicies.SoftwareRecipe.Step.RunScript.Builder setScriptBytes(com.google.protobuf.ByteString value) Required. The shell script to be executed.
string script = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for script to set.- Returns:
- This builder for chaining.
-
getAllowedExitCodesList
Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]
repeated int32 allowed_exit_codes = 2;- Specified by:
getAllowedExitCodesListin interfaceGuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder- 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 = 2;- Specified by:
getAllowedExitCodesCountin interfaceGuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder- 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 = 2;- Specified by:
getAllowedExitCodesin interfaceGuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedExitCodes at the given index.
-
setAllowedExitCodes
public GuestPolicies.SoftwareRecipe.Step.RunScript.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 = 2;- Parameters:
index- The index to set the value at.value- The allowedExitCodes to set.- Returns:
- This builder for chaining.
-
addAllowedExitCodes
Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]
repeated int32 allowed_exit_codes = 2;- Parameters:
value- The allowedExitCodes to add.- Returns:
- This builder for chaining.
-
addAllAllowedExitCodes
public GuestPolicies.SoftwareRecipe.Step.RunScript.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 = 2;- Parameters:
values- The allowedExitCodes to add.- Returns:
- This builder for chaining.
-
clearAllowedExitCodes
Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]
repeated int32 allowed_exit_codes = 2;- Returns:
- This builder for chaining.
-
getInterpreterValue
public int getInterpreterValue()The script interpreter to use to run the script. If no interpreter is specified the script is executed directly, which likely only succeed for scripts with [shebang lines](https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.RunScript.Interpreter interpreter = 3;- Specified by:
getInterpreterValuein interfaceGuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder- Returns:
- The enum numeric value on the wire for interpreter.
-
setInterpreterValue
The script interpreter to use to run the script. If no interpreter is specified the script is executed directly, which likely only succeed for scripts with [shebang lines](https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.RunScript.Interpreter interpreter = 3;- Parameters:
value- The enum numeric value on the wire for interpreter to set.- Returns:
- This builder for chaining.
-
getInterpreter
The script interpreter to use to run the script. If no interpreter is specified the script is executed directly, which likely only succeed for scripts with [shebang lines](https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.RunScript.Interpreter interpreter = 3;- Specified by:
getInterpreterin interfaceGuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder- Returns:
- The interpreter.
-
setInterpreter
public GuestPolicies.SoftwareRecipe.Step.RunScript.Builder setInterpreter(GuestPolicies.SoftwareRecipe.Step.RunScript.Interpreter value) The script interpreter to use to run the script. If no interpreter is specified the script is executed directly, which likely only succeed for scripts with [shebang lines](https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.RunScript.Interpreter interpreter = 3;- Parameters:
value- The interpreter to set.- Returns:
- This builder for chaining.
-
clearInterpreter
The script interpreter to use to run the script. If no interpreter is specified the script is executed directly, which likely only succeed for scripts with [shebang lines](https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.RunScript.Interpreter interpreter = 3;- Returns:
- This builder for chaining.
-