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.GeneratedMessage.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.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder>
implements GuestPolicies.SoftwareRecipe.Step.CopyFileOrBuilder
Copies the artifact to the specified path on the instance.Protobuf type
google.cloud.osconfig.v1beta.SoftwareRecipe.Step.CopyFile-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Required.Whether to allow this step to overwrite existing files.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).Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.booleanWhether to allow this step to overwrite existing files.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.ByteStringConsists 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.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setArtifactId(String value) Required.setArtifactIdBytes(com.google.protobuf.ByteString value) Required.setDestination(String value) Required.setDestinationBytes(com.google.protobuf.ByteString value) Required.setOverwrite(boolean value) Whether to allow this step to overwrite existing files.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).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).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.CopyFile.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.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.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Step.CopyFile.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.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.GeneratedMessage.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
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
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
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
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
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
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
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
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
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
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
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.
-