Package com.google.cloud.osconfig.v1beta
Class GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder>
com.google.cloud.osconfig.v1beta.GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
- All Implemented Interfaces:
GuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GuestPolicies.SoftwareRecipe.Step.ExecFile
public static final class GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder>
implements GuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder
Executes an artifact or local file.Protobuf type
google.cloud.osconfig.v1beta.SoftwareRecipe.Step.ExecFile-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowedExitCodes(Iterable<? extends Integer> values) Defaults to [0].addAllArgs(Iterable<String> values) Arguments to be passed to the provided executable.addAllowedExitCodes(int value) Defaults to [0].Arguments to be passed to the provided executable.addArgsBytes(com.google.protobuf.ByteString value) Arguments to be passed to the provided executable.build()clear()Defaults to [0].Arguments to be passed to the provided executable.The id of the relevant artifact in the recipe.The absolute path of the file on the local filesystem.intgetAllowedExitCodes(int index) Defaults to [0].intDefaults to [0].Defaults to [0].getArgs(int index) Arguments to be passed to the provided executable.com.google.protobuf.ByteStringgetArgsBytes(int index) Arguments to be passed to the provided executable.intArguments to be passed to the provided executable.com.google.protobuf.ProtocolStringListArguments to be passed to the provided executable.The id of the relevant artifact in the recipe.com.google.protobuf.ByteStringThe id of the relevant artifact in the recipe.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe absolute path of the file on the local filesystem.com.google.protobuf.ByteStringThe absolute path of the file on the local filesystem.booleanThe id of the relevant artifact in the recipe.booleanThe absolute path of the file on the local filesystem.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) Defaults to [0].Arguments to be passed to the provided executable.setArtifactId(String value) The id of the relevant artifact in the recipe.setArtifactIdBytes(com.google.protobuf.ByteString value) The id of the relevant artifact in the recipe.setLocalPath(String value) The absolute path of the file on the local filesystem.setLocalPathBytes(com.google.protobuf.ByteString value) The absolute path of the file on the local filesystem.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.ExecFile.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.ExecFile.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.ExecFile.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.ExecFile.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.ExecFile.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder mergeFrom(GuestPolicies.SoftwareRecipe.Step.ExecFile other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>- Throws:
IOException
-
getLocationTypeCase
- Specified by:
getLocationTypeCasein interfaceGuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder
-
clearLocationType
-
hasArtifactId
public boolean hasArtifactId()The id of the relevant artifact in the recipe.
string artifact_id = 1;- Specified by:
hasArtifactIdin interfaceGuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder- Returns:
- Whether the artifactId field is set.
-
getArtifactId
The id of the relevant artifact in the recipe.
string artifact_id = 1;- Specified by:
getArtifactIdin interfaceGuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder- Returns:
- The artifactId.
-
getArtifactIdBytes
public com.google.protobuf.ByteString getArtifactIdBytes()The id of the relevant artifact in the recipe.
string artifact_id = 1;- Specified by:
getArtifactIdBytesin interfaceGuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder- Returns:
- The bytes for artifactId.
-
setArtifactId
The id of the relevant artifact in the recipe.
string artifact_id = 1;- Parameters:
value- The artifactId to set.- Returns:
- This builder for chaining.
-
clearArtifactId
The id of the relevant artifact in the recipe.
string artifact_id = 1;- Returns:
- This builder for chaining.
-
setArtifactIdBytes
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder setArtifactIdBytes(com.google.protobuf.ByteString value) The id of the relevant artifact in the recipe.
string artifact_id = 1;- Parameters:
value- The bytes for artifactId to set.- Returns:
- This builder for chaining.
-
hasLocalPath
public boolean hasLocalPath()The absolute path of the file on the local filesystem.
string local_path = 2;- Specified by:
hasLocalPathin interfaceGuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder- Returns:
- Whether the localPath field is set.
-
getLocalPath
The absolute path of the file on the local filesystem.
string local_path = 2;- Specified by:
getLocalPathin interfaceGuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder- Returns:
- The localPath.
-
getLocalPathBytes
public com.google.protobuf.ByteString getLocalPathBytes()The absolute path of the file on the local filesystem.
string local_path = 2;- Specified by:
getLocalPathBytesin interfaceGuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder- Returns:
- The bytes for localPath.
-
setLocalPath
The absolute path of the file on the local filesystem.
string local_path = 2;- Parameters:
value- The localPath to set.- Returns:
- This builder for chaining.
-
clearLocalPath
The absolute path of the file on the local filesystem.
string local_path = 2;- Returns:
- This builder for chaining.
-
setLocalPathBytes
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder setLocalPathBytes(com.google.protobuf.ByteString value) The absolute path of the file on the local filesystem.
string local_path = 2;- Parameters:
value- The bytes for localPath to set.- Returns:
- This builder for chaining.
-
getArgsList
public com.google.protobuf.ProtocolStringList getArgsList()Arguments to be passed to the provided executable.
repeated string args = 3;- Specified by:
getArgsListin interfaceGuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()Arguments to be passed to the provided executable.
repeated string args = 3;- Specified by:
getArgsCountin interfaceGuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder- Returns:
- The count of args.
-
getArgs
Arguments to be passed to the provided executable.
repeated string args = 3;- Specified by:
getArgsin interfaceGuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
public com.google.protobuf.ByteString getArgsBytes(int index) Arguments to be passed to the provided executable.
repeated string args = 3;- Specified by:
getArgsBytesin interfaceGuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
setArgs
Arguments to be passed to the provided executable.
repeated string args = 3;- Parameters:
index- The index to set the value at.value- The args to set.- Returns:
- This builder for chaining.
-
addArgs
Arguments to be passed to the provided executable.
repeated string args = 3;- Parameters:
value- The args to add.- Returns:
- This builder for chaining.
-
addAllArgs
Arguments to be passed to the provided executable.
repeated string args = 3;- Parameters:
values- The args to add.- Returns:
- This builder for chaining.
-
clearArgs
Arguments to be passed to the provided executable.
repeated string args = 3;- Returns:
- This builder for chaining.
-
addArgsBytes
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder addArgsBytes(com.google.protobuf.ByteString value) Arguments to be passed to the provided executable.
repeated string args = 3;- Parameters:
value- The bytes of the args to add.- Returns:
- This builder for chaining.
-
getAllowedExitCodesList
Defaults to [0]. A list of possible return values that the program can return to indicate a success.
repeated int32 allowed_exit_codes = 4;- Specified by:
getAllowedExitCodesListin interfaceGuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder- Returns:
- A list containing the allowedExitCodes.
-
getAllowedExitCodesCount
public int getAllowedExitCodesCount()Defaults to [0]. A list of possible return values that the program can return to indicate a success.
repeated int32 allowed_exit_codes = 4;- Specified by:
getAllowedExitCodesCountin interfaceGuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder- Returns:
- The count of allowedExitCodes.
-
getAllowedExitCodes
public int getAllowedExitCodes(int index) Defaults to [0]. A list of possible return values that the program can return to indicate a success.
repeated int32 allowed_exit_codes = 4;- Specified by:
getAllowedExitCodesin interfaceGuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedExitCodes at the given index.
-
setAllowedExitCodes
Defaults to [0]. A list of possible return values that the program can return to indicate a success.
repeated int32 allowed_exit_codes = 4;- Parameters:
index- The index to set the value at.value- The allowedExitCodes to set.- Returns:
- This builder for chaining.
-
addAllowedExitCodes
Defaults to [0]. A list of possible return values that the program can return to indicate a success.
repeated int32 allowed_exit_codes = 4;- Parameters:
value- The allowedExitCodes to add.- Returns:
- This builder for chaining.
-
addAllAllowedExitCodes
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder addAllAllowedExitCodes(Iterable<? extends Integer> values) Defaults to [0]. A list of possible return values that the program can return to indicate a success.
repeated int32 allowed_exit_codes = 4;- Parameters:
values- The allowedExitCodes to add.- Returns:
- This builder for chaining.
-
clearAllowedExitCodes
Defaults to [0]. A list of possible return values that the program can return to indicate a success.
repeated int32 allowed_exit_codes = 4;- Returns:
- This builder for chaining.
-