public static final class GuestPolicies.SoftwareRecipe.Step.CopyFile extends GeneratedMessageV3 implements GuestPolicies.SoftwareRecipe.Step.CopyFileOrBuilder
Copies the artifact to the specified path on the instance.
Protobuf type google.cloud.osconfig.v1beta.SoftwareRecipe.Step.CopyFile
Static Fields
ARTIFACT_ID_FIELD_NUMBER
public static final int ARTIFACT_ID_FIELD_NUMBER
Field Value
DESTINATION_FIELD_NUMBER
public static final int DESTINATION_FIELD_NUMBER
Field Value
OVERWRITE_FIELD_NUMBER
public static final int OVERWRITE_FIELD_NUMBER
Field Value
PERMISSIONS_FIELD_NUMBER
public static final int PERMISSIONS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static GuestPolicies.SoftwareRecipe.Step.CopyFile getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder newBuilder()
Returns
newBuilder(GuestPolicies.SoftwareRecipe.Step.CopyFile prototype)
public static GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder newBuilder(GuestPolicies.SoftwareRecipe.Step.CopyFile prototype)
Parameter
Returns
public static GuestPolicies.SoftwareRecipe.Step.CopyFile parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static GuestPolicies.SoftwareRecipe.Step.CopyFile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static GuestPolicies.SoftwareRecipe.Step.CopyFile parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GuestPolicies.SoftwareRecipe.Step.CopyFile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static GuestPolicies.SoftwareRecipe.Step.CopyFile parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GuestPolicies.SoftwareRecipe.Step.CopyFile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GuestPolicies.SoftwareRecipe.Step.CopyFile parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static GuestPolicies.SoftwareRecipe.Step.CopyFile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GuestPolicies.SoftwareRecipe.Step.CopyFile parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static GuestPolicies.SoftwareRecipe.Step.CopyFile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static GuestPolicies.SoftwareRecipe.Step.CopyFile parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GuestPolicies.SoftwareRecipe.Step.CopyFile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<GuestPolicies.SoftwareRecipe.Step.CopyFile> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getArtifactId()
public String getArtifactId()
Required. The id of the relevant artifact in the recipe.
string artifact_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The artifactId.
|
getArtifactIdBytes()
public ByteString getArtifactIdBytes()
Required. The id of the relevant artifact in the recipe.
string artifact_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
ByteString | The bytes for artifactId.
|
getDefaultInstanceForType()
public GuestPolicies.SoftwareRecipe.Step.CopyFile getDefaultInstanceForType()
Returns
getDestination()
public String getDestination()
Required. The absolute path on the instance to put the file.
string destination = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The destination.
|
getDestinationBytes()
public ByteString getDestinationBytes()
Required. The absolute path on the instance to put the file.
string destination = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
ByteString | The bytes for destination.
|
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;
Returns
Type | Description |
boolean | The overwrite.
|
getParserForType()
public Parser<GuestPolicies.SoftwareRecipe.Step.CopyFile> getParserForType()
Returns
Overrides
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;
Returns
Type | Description |
String | The permissions.
|
getPermissionsBytes()
public 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;
Returns
Type | Description |
ByteString | The bytes for permissions.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions