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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder> implements GuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder
Executes an artifact or local file.
Protobuf typegoogle.cloud.osconfig.v1beta.SoftwareRecipe.Step.ExecFile
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GuestPolicies.SoftwareRecipe.Step.ExecFile.BuilderaddAllAllowedExitCodes(Iterable<? extends Integer> values)Defaults to [0].GuestPolicies.SoftwareRecipe.Step.ExecFile.BuilderaddAllArgs(Iterable<String> values)Arguments to be passed to the provided executable.GuestPolicies.SoftwareRecipe.Step.ExecFile.BuilderaddAllowedExitCodes(int value)Defaults to [0].GuestPolicies.SoftwareRecipe.Step.ExecFile.BuilderaddArgs(String value)Arguments to be passed to the provided executable.GuestPolicies.SoftwareRecipe.Step.ExecFile.BuilderaddArgsBytes(com.google.protobuf.ByteString value)Arguments to be passed to the provided executable.GuestPolicies.SoftwareRecipe.Step.ExecFile.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GuestPolicies.SoftwareRecipe.Step.ExecFilebuild()GuestPolicies.SoftwareRecipe.Step.ExecFilebuildPartial()GuestPolicies.SoftwareRecipe.Step.ExecFile.Builderclear()GuestPolicies.SoftwareRecipe.Step.ExecFile.BuilderclearAllowedExitCodes()Defaults to [0].GuestPolicies.SoftwareRecipe.Step.ExecFile.BuilderclearArgs()Arguments to be passed to the provided executable.GuestPolicies.SoftwareRecipe.Step.ExecFile.BuilderclearArtifactId()The id of the relevant artifact in the recipe.GuestPolicies.SoftwareRecipe.Step.ExecFile.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GuestPolicies.SoftwareRecipe.Step.ExecFile.BuilderclearLocalPath()The absolute path of the file on the local filesystem.GuestPolicies.SoftwareRecipe.Step.ExecFile.BuilderclearLocationType()GuestPolicies.SoftwareRecipe.Step.ExecFile.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GuestPolicies.SoftwareRecipe.Step.ExecFile.Builderclone()intgetAllowedExitCodes(int index)Defaults to [0].intgetAllowedExitCodesCount()Defaults to [0].List<Integer>getAllowedExitCodesList()Defaults to [0].StringgetArgs(int index)Arguments to be passed to the provided executable.com.google.protobuf.ByteStringgetArgsBytes(int index)Arguments to be passed to the provided executable.intgetArgsCount()Arguments to be passed to the provided executable.com.google.protobuf.ProtocolStringListgetArgsList()Arguments to be passed to the provided executable.StringgetArtifactId()The id of the relevant artifact in the recipe.com.google.protobuf.ByteStringgetArtifactIdBytes()The id of the relevant artifact in the recipe.GuestPolicies.SoftwareRecipe.Step.ExecFilegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetLocalPath()The absolute path of the file on the local filesystem.com.google.protobuf.ByteStringgetLocalPathBytes()The absolute path of the file on the local filesystem.GuestPolicies.SoftwareRecipe.Step.ExecFile.LocationTypeCasegetLocationTypeCase()booleanhasArtifactId()The id of the relevant artifact in the recipe.booleanhasLocalPath()The absolute path of the file on the local filesystem.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GuestPolicies.SoftwareRecipe.Step.ExecFile.BuildermergeFrom(GuestPolicies.SoftwareRecipe.Step.ExecFile other)GuestPolicies.SoftwareRecipe.Step.ExecFile.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GuestPolicies.SoftwareRecipe.Step.ExecFile.BuildermergeFrom(com.google.protobuf.Message other)GuestPolicies.SoftwareRecipe.Step.ExecFile.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GuestPolicies.SoftwareRecipe.Step.ExecFile.BuildersetAllowedExitCodes(int index, int value)Defaults to [0].GuestPolicies.SoftwareRecipe.Step.ExecFile.BuildersetArgs(int index, String value)Arguments to be passed to the provided executable.GuestPolicies.SoftwareRecipe.Step.ExecFile.BuildersetArtifactId(String value)The id of the relevant artifact in the recipe.GuestPolicies.SoftwareRecipe.Step.ExecFile.BuildersetArtifactIdBytes(com.google.protobuf.ByteString value)The id of the relevant artifact in the recipe.GuestPolicies.SoftwareRecipe.Step.ExecFile.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GuestPolicies.SoftwareRecipe.Step.ExecFile.BuildersetLocalPath(String value)The absolute path of the file on the local filesystem.GuestPolicies.SoftwareRecipe.Step.ExecFile.BuildersetLocalPathBytes(com.google.protobuf.ByteString value)The absolute path of the file on the local filesystem.GuestPolicies.SoftwareRecipe.Step.ExecFile.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder>
-
getDefaultInstanceForType
public GuestPolicies.SoftwareRecipe.Step.ExecFile getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GuestPolicies.SoftwareRecipe.Step.ExecFile build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GuestPolicies.SoftwareRecipe.Step.ExecFile buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
setField
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
clearField
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
clearOneof
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
setRepeatedField
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
addRepeatedField
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.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.GeneratedMessageV3.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
public GuestPolicies.SoftwareRecipe.Step.ExecFile.LocationTypeCase getLocationTypeCase()
- Specified by:
getLocationTypeCasein interfaceGuestPolicies.SoftwareRecipe.Step.ExecFileOrBuilder
-
clearLocationType
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder 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
public String 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
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder setArtifactId(String value)
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
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder 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
public String 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
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder setLocalPath(String value)
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
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder 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
public String getArgs(int index)
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
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder setArgs(int index, String value)
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
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder addArgs(String value)
Arguments to be passed to the provided executable.
repeated string args = 3;- Parameters:
value- The args to add.- Returns:
- This builder for chaining.
-
addAllArgs
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder addAllArgs(Iterable<String> values)
Arguments to be passed to the provided executable.
repeated string args = 3;- Parameters:
values- The args to add.- Returns:
- This builder for chaining.
-
clearArgs
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder 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
public List<Integer> 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
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder setAllowedExitCodes(int index, int value)
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
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder addAllowedExitCodes(int value)
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
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder 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.
-
setUnknownFields
public final GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
mergeUnknownFields
public final GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
-