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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder>
    • getDefaultInstanceForType

      public GuestPolicies.SoftwareRecipe.Step.CopyFile getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GuestPolicies.SoftwareRecipe.Step.CopyFile.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface GuestPolicies.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 interface GuestPolicies.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

      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 interface GuestPolicies.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 interface GuestPolicies.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:
      getOverwrite in interface GuestPolicies.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

       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 interface GuestPolicies.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 interface GuestPolicies.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.