Package com.google.cloud.osconfig.v1beta
Class GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder>
-
- com.google.cloud.osconfig.v1beta.GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
-
- All Implemented Interfaces:
GuestPolicies.SoftwareRecipe.Step.CopyFileOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GuestPolicies.SoftwareRecipe.Step.CopyFile
public static final class GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder> implements GuestPolicies.SoftwareRecipe.Step.CopyFileOrBuilder
Copies the artifact to the specified path on the instance.
Protobuf typegoogle.cloud.osconfig.v1beta.SoftwareRecipe.Step.CopyFile
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GuestPolicies.SoftwareRecipe.Step.CopyFile.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GuestPolicies.SoftwareRecipe.Step.CopyFilebuild()GuestPolicies.SoftwareRecipe.Step.CopyFilebuildPartial()GuestPolicies.SoftwareRecipe.Step.CopyFile.Builderclear()GuestPolicies.SoftwareRecipe.Step.CopyFile.BuilderclearArtifactId()Required.GuestPolicies.SoftwareRecipe.Step.CopyFile.BuilderclearDestination()Required.GuestPolicies.SoftwareRecipe.Step.CopyFile.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GuestPolicies.SoftwareRecipe.Step.CopyFile.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GuestPolicies.SoftwareRecipe.Step.CopyFile.BuilderclearOverwrite()Whether to allow this step to overwrite existing files.GuestPolicies.SoftwareRecipe.Step.CopyFile.BuilderclearPermissions()Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility).GuestPolicies.SoftwareRecipe.Step.CopyFile.Builderclone()StringgetArtifactId()Required.com.google.protobuf.ByteStringgetArtifactIdBytes()Required.GuestPolicies.SoftwareRecipe.Step.CopyFilegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDestination()Required.com.google.protobuf.ByteStringgetDestinationBytes()Required.booleangetOverwrite()Whether to allow this step to overwrite existing files.StringgetPermissions()Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility).com.google.protobuf.ByteStringgetPermissionsBytes()Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GuestPolicies.SoftwareRecipe.Step.CopyFile.BuildermergeFrom(GuestPolicies.SoftwareRecipe.Step.CopyFile other)GuestPolicies.SoftwareRecipe.Step.CopyFile.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GuestPolicies.SoftwareRecipe.Step.CopyFile.BuildermergeFrom(com.google.protobuf.Message other)GuestPolicies.SoftwareRecipe.Step.CopyFile.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GuestPolicies.SoftwareRecipe.Step.CopyFile.BuildersetArtifactId(String value)Required.GuestPolicies.SoftwareRecipe.Step.CopyFile.BuildersetArtifactIdBytes(com.google.protobuf.ByteString value)Required.GuestPolicies.SoftwareRecipe.Step.CopyFile.BuildersetDestination(String value)Required.GuestPolicies.SoftwareRecipe.Step.CopyFile.BuildersetDestinationBytes(com.google.protobuf.ByteString value)Required.GuestPolicies.SoftwareRecipe.Step.CopyFile.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GuestPolicies.SoftwareRecipe.Step.CopyFile.BuildersetOverwrite(boolean value)Whether to allow this step to overwrite existing files.GuestPolicies.SoftwareRecipe.Step.CopyFile.BuildersetPermissions(String value)Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility).GuestPolicies.SoftwareRecipe.Step.CopyFile.BuildersetPermissionsBytes(com.google.protobuf.ByteString value)Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility).GuestPolicies.SoftwareRecipe.Step.CopyFile.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
clear
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.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.CopyFile.Builder>
-
getDefaultInstanceForType
public GuestPolicies.SoftwareRecipe.Step.CopyFile getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GuestPolicies.SoftwareRecipe.Step.CopyFile build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GuestPolicies.SoftwareRecipe.Step.CopyFile buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
setField
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
clearField
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
clearOneof
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
setRepeatedField
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
addRepeatedField
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder mergeFrom(GuestPolicies.SoftwareRecipe.Step.CopyFile other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.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:
getArtifactIdin interfaceGuestPolicies.SoftwareRecipe.Step.CopyFileOrBuilder- 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:
getArtifactIdBytesin interfaceGuestPolicies.SoftwareRecipe.Step.CopyFileOrBuilder- Returns:
- The bytes for artifactId.
-
setArtifactId
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.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.CopyFile.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.
-
getDestination
public String getDestination()
Required. The absolute path on the instance to put the file.
string destination = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationin interfaceGuestPolicies.SoftwareRecipe.Step.CopyFileOrBuilder- Returns:
- The destination.
-
getDestinationBytes
public com.google.protobuf.ByteString getDestinationBytes()
Required. The absolute path on the instance to put the file.
string destination = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationBytesin interfaceGuestPolicies.SoftwareRecipe.Step.CopyFileOrBuilder- Returns:
- The bytes for destination.
-
setDestination
public GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder setDestination(String value)
Required. The absolute path on the instance to put the file.
string destination = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The destination to set.- Returns:
- This builder for chaining.
-
clearDestination
public GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder clearDestination()
Required. The absolute path on the instance to put the file.
string destination = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDestinationBytes
public GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder setDestinationBytes(com.google.protobuf.ByteString value)
Required. The absolute path on the instance to put the file.
string destination = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for destination to set.- Returns:
- This builder for chaining.
-
getOverwrite
public boolean getOverwrite()
Whether to allow this step to overwrite existing files. If this is false and the file already exists the file is not overwritten and the step is considered a success. Defaults to false.
bool overwrite = 3;- Specified by:
getOverwritein interfaceGuestPolicies.SoftwareRecipe.Step.CopyFileOrBuilder- Returns:
- The overwrite.
-
setOverwrite
public GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder setOverwrite(boolean value)
Whether to allow this step to overwrite existing files. If this is false and the file already exists the file is not overwritten and the step is considered a success. Defaults to false.
bool overwrite = 3;- Parameters:
value- The overwrite to set.- Returns:
- This builder for chaining.
-
clearOverwrite
public GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder clearOverwrite()
Whether to allow this step to overwrite existing files. If this is false and the file already exists the file is not overwritten and the step is considered a success. Defaults to false.
bool overwrite = 3;- Returns:
- This builder for chaining.
-
getPermissions
public String getPermissions()
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
string permissions = 4;- Specified by:
getPermissionsin interfaceGuestPolicies.SoftwareRecipe.Step.CopyFileOrBuilder- Returns:
- The permissions.
-
getPermissionsBytes
public com.google.protobuf.ByteString getPermissionsBytes()
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
string permissions = 4;- Specified by:
getPermissionsBytesin interfaceGuestPolicies.SoftwareRecipe.Step.CopyFileOrBuilder- Returns:
- The bytes for permissions.
-
setPermissions
public GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder setPermissions(String value)
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
string permissions = 4;- Parameters:
value- The permissions to set.- Returns:
- This builder for chaining.
-
clearPermissions
public GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder clearPermissions()
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
string permissions = 4;- Returns:
- This builder for chaining.
-
setPermissionsBytes
public GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder setPermissionsBytes(com.google.protobuf.ByteString value)
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
string permissions = 4;- Parameters:
value- The bytes for permissions to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
mergeUnknownFields
public final GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
-