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.Builder
addAllAllowedExitCodes(Iterable<? extends Integer> values)
Defaults to [0].GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
addAllArgs(Iterable<String> values)
Arguments to be passed to the provided executable.GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
addAllowedExitCodes(int value)
Defaults to [0].GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
addArgs(String value)
Arguments to be passed to the provided executable.GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
addArgsBytes(com.google.protobuf.ByteString value)
Arguments to be passed to the provided executable.GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GuestPolicies.SoftwareRecipe.Step.ExecFile
build()
GuestPolicies.SoftwareRecipe.Step.ExecFile
buildPartial()
GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
clear()
GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
clearAllowedExitCodes()
Defaults to [0].GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
clearArgs()
Arguments to be passed to the provided executable.GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
clearArtifactId()
The id of the relevant artifact in the recipe.GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
clearLocalPath()
The absolute path of the file on the local filesystem.GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
clearLocationType()
GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
clone()
int
getAllowedExitCodes(int index)
Defaults to [0].int
getAllowedExitCodesCount()
Defaults to [0].List<Integer>
getAllowedExitCodesList()
Defaults to [0].String
getArgs(int index)
Arguments to be passed to the provided executable.com.google.protobuf.ByteString
getArgsBytes(int index)
Arguments to be passed to the provided executable.int
getArgsCount()
Arguments to be passed to the provided executable.com.google.protobuf.ProtocolStringList
getArgsList()
Arguments to be passed to the provided executable.String
getArtifactId()
The id of the relevant artifact in the recipe.com.google.protobuf.ByteString
getArtifactIdBytes()
The id of the relevant artifact in the recipe.GuestPolicies.SoftwareRecipe.Step.ExecFile
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getLocalPath()
The absolute path of the file on the local filesystem.com.google.protobuf.ByteString
getLocalPathBytes()
The absolute path of the file on the local filesystem.GuestPolicies.SoftwareRecipe.Step.ExecFile.LocationTypeCase
getLocationTypeCase()
boolean
hasArtifactId()
The id of the relevant artifact in the recipe.boolean
hasLocalPath()
The absolute path of the file on the local filesystem.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
mergeFrom(GuestPolicies.SoftwareRecipe.Step.ExecFile other)
GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
mergeFrom(com.google.protobuf.Message other)
GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
setAllowedExitCodes(int index, int value)
Defaults to [0].GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
setArgs(int index, String value)
Arguments to be passed to the provided executable.GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
setArtifactId(String value)
The id of the relevant artifact in the recipe.GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
setArtifactIdBytes(com.google.protobuf.ByteString value)
The id of the relevant artifact in the recipe.GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
setLocalPath(String value)
The absolute path of the file on the local filesystem.GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
setLocalPathBytes(com.google.protobuf.ByteString value)
The absolute path of the file on the local filesystem.GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
clear
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.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.ExecFile.Builder>
-
getDefaultInstanceForType
public GuestPolicies.SoftwareRecipe.Step.ExecFile getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GuestPolicies.SoftwareRecipe.Step.ExecFile build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GuestPolicies.SoftwareRecipe.Step.ExecFile buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
setField
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
clearField
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
clearOneof
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
setRepeatedField
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
addRepeatedField
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder mergeFrom(GuestPolicies.SoftwareRecipe.Step.ExecFile 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.ExecFile.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.ExecFile.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.ExecFile.Builder>
- Throws:
IOException
-
getLocationTypeCase
public GuestPolicies.SoftwareRecipe.Step.ExecFile.LocationTypeCase getLocationTypeCase()
- Specified by:
getLocationTypeCase
in 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:
hasArtifactId
in 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:
getArtifactId
in 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:
getArtifactIdBytes
in 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:
hasLocalPath
in 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:
getLocalPath
in 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:
getLocalPathBytes
in 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:
getArgsList
in 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:
getArgsCount
in 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:
getArgs
in 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:
getArgsBytes
in 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:
getAllowedExitCodesList
in 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:
getAllowedExitCodesCount
in 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:
getAllowedExitCodes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in 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:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.ExecFile.Builder>
-
-