Class ExportDeploymentStatefileRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExportDeploymentStatefileRequest.Builder>
com.google.cloud.config.v1.ExportDeploymentStatefileRequest.Builder
All Implemented Interfaces:
ExportDeploymentStatefileRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExportDeploymentStatefileRequest

public static final class ExportDeploymentStatefileRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExportDeploymentStatefileRequest.Builder> implements ExportDeploymentStatefileRequestOrBuilder
 A request to export a state file passed to a 'ExportDeploymentStatefile'
 call.
 
Protobuf type google.cloud.config.v1.ExportDeploymentStatefileRequest
  • 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<ExportDeploymentStatefileRequest.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<ExportDeploymentStatefileRequest.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<ExportDeploymentStatefileRequest.Builder>
    • getDefaultInstanceForType

      public ExportDeploymentStatefileRequest 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

      public ExportDeploymentStatefileRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ExportDeploymentStatefileRequest.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<ExportDeploymentStatefileRequest.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<ExportDeploymentStatefileRequest.Builder>
    • mergeFrom

      public ExportDeploymentStatefileRequest.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<ExportDeploymentStatefileRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent in whose context the statefile is listed. The parent
       value is in the format:
       'projects/{project_id}/locations/{location}/deployments/{deployment}'.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface ExportDeploymentStatefileRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent in whose context the statefile is listed. The parent
       value is in the format:
       'projects/{project_id}/locations/{location}/deployments/{deployment}'.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface ExportDeploymentStatefileRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. The parent in whose context the statefile is listed. The parent
       value is in the format:
       'projects/{project_id}/locations/{location}/deployments/{deployment}'.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The parent in whose context the statefile is listed. The parent
       value is in the format:
       'projects/{project_id}/locations/{location}/deployments/{deployment}'.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public ExportDeploymentStatefileRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent in whose context the statefile is listed. The parent
       value is in the format:
       'projects/{project_id}/locations/{location}/deployments/{deployment}'.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getDraft

      public boolean getDraft()
       Optional. If this flag is set to true, the exported deployment state file
       will be the draft state. This will enable the draft file to be validated
       before copying it over to the working state on unlock.
       
      bool draft = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDraft in interface ExportDeploymentStatefileRequestOrBuilder
      Returns:
      The draft.
    • setDraft

      public ExportDeploymentStatefileRequest.Builder setDraft(boolean value)
       Optional. If this flag is set to true, the exported deployment state file
       will be the draft state. This will enable the draft file to be validated
       before copying it over to the working state on unlock.
       
      bool draft = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The draft to set.
      Returns:
      This builder for chaining.
    • clearDraft

       Optional. If this flag is set to true, the exported deployment state file
       will be the draft state. This will enable the draft file to be validated
       before copying it over to the working state on unlock.
       
      bool draft = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.