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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GuestPolicies.SoftwareRecipe.Step.CopyFile
build()
GuestPolicies.SoftwareRecipe.Step.CopyFile
buildPartial()
GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
clear()
GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
clearArtifactId()
Required.GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
clearDestination()
Required.GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
clearOverwrite()
Whether to allow this step to overwrite existing files.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).GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
clone()
String
getArtifactId()
Required.com.google.protobuf.ByteString
getArtifactIdBytes()
Required.GuestPolicies.SoftwareRecipe.Step.CopyFile
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDestination()
Required.com.google.protobuf.ByteString
getDestinationBytes()
Required.boolean
getOverwrite()
Whether to allow this step to overwrite existing files.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).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).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
mergeFrom(GuestPolicies.SoftwareRecipe.Step.CopyFile other)
GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
mergeFrom(com.google.protobuf.Message other)
GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
setArtifactId(String value)
Required.GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
setArtifactIdBytes(com.google.protobuf.ByteString value)
Required.GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
setDestination(String value)
Required.GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
setDestinationBytes(com.google.protobuf.ByteString value)
Required.GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
setOverwrite(boolean value)
Whether to allow this step to overwrite existing files.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).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).GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
clear
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.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.CopyFile.Builder>
-
getDefaultInstanceForType
public GuestPolicies.SoftwareRecipe.Step.CopyFile getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GuestPolicies.SoftwareRecipe.Step.CopyFile build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GuestPolicies.SoftwareRecipe.Step.CopyFile buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
setField
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
clearField
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
clearOneof
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
setRepeatedField
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
addRepeatedField
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.CopyFile.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder mergeFrom(GuestPolicies.SoftwareRecipe.Step.CopyFile 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.CopyFile.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Step.CopyFile.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.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:
getArtifactId
in 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:
getArtifactIdBytes
in 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:
getDestination
in 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:
getDestinationBytes
in 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:
getOverwrite
in 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:
getPermissions
in 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:
getPermissionsBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in 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:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder>
-
-