Class RestorePlanBinding.Builder

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

public static final class RestorePlanBinding.Builder extends com.google.protobuf.GeneratedMessage.Builder<RestorePlanBinding.Builder> implements RestorePlanBindingOrBuilder
 A RestorePlanBinding binds a RestorePlan with a RestoreChannel.
 This resource is created automatically when a RestorePlan is created using a
 RestoreChannel. This also serves as a holder for cross-project fields
 that need to be displayed in the current project.
 
Protobuf type google.cloud.gkebackup.v1.RestorePlanBinding
  • 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<RestorePlanBinding.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<RestorePlanBinding.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<RestorePlanBinding.Builder>
    • getDefaultInstanceForType

      public RestorePlanBinding getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

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

      public RestorePlanBinding.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<RestorePlanBinding.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The fully qualified name of the RestorePlanBinding.
       `projects/*/locations/*/restoreChannels/*/restorePlanBindings/*`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface RestorePlanBindingOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The fully qualified name of the RestorePlanBinding.
       `projects/*/locations/*/restoreChannels/*/restorePlanBindings/*`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface RestorePlanBindingOrBuilder
      Returns:
      The bytes for name.
    • setName

      public RestorePlanBinding.Builder setName(String value)
       Identifier. The fully qualified name of the RestorePlanBinding.
       `projects/*/locations/*/restoreChannels/*/restorePlanBindings/*`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public RestorePlanBinding.Builder clearName()
       Identifier. The fully qualified name of the RestorePlanBinding.
       `projects/*/locations/*/restoreChannels/*/restorePlanBindings/*`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public RestorePlanBinding.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The fully qualified name of the RestorePlanBinding.
       `projects/*/locations/*/restoreChannels/*/restorePlanBindings/*`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getUid

      public String getUid()
       Output only. Server generated global unique identifier of
       [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUid in interface RestorePlanBindingOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. Server generated global unique identifier of
       [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface RestorePlanBindingOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public RestorePlanBinding.Builder setUid(String value)
       Output only. Server generated global unique identifier of
       [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public RestorePlanBinding.Builder clearUid()
       Output only. Server generated global unique identifier of
       [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setUidBytes

      public RestorePlanBinding.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. Server generated global unique identifier of
       [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface RestorePlanBindingOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface RestorePlanBindingOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public RestorePlanBinding.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public RestorePlanBinding.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public RestorePlanBinding.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public RestorePlanBinding.Builder clearCreateTime()
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface RestorePlanBindingOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface RestorePlanBindingOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface RestorePlanBindingOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public RestorePlanBinding.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public RestorePlanBinding.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public RestorePlanBinding.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public RestorePlanBinding.Builder clearUpdateTime()
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp when this binding was created.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface RestorePlanBindingOrBuilder
    • getRestorePlan

      public String getRestorePlan()
       Output only. The fully qualified name of the RestorePlan bound to this
       RestoreChannel. `projects/*/locations/*/restorePlans/{restore_plan}`
       
      string restore_plan = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getRestorePlan in interface RestorePlanBindingOrBuilder
      Returns:
      The restorePlan.
    • getRestorePlanBytes

      public com.google.protobuf.ByteString getRestorePlanBytes()
       Output only. The fully qualified name of the RestorePlan bound to this
       RestoreChannel. `projects/*/locations/*/restorePlans/{restore_plan}`
       
      string restore_plan = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getRestorePlanBytes in interface RestorePlanBindingOrBuilder
      Returns:
      The bytes for restorePlan.
    • setRestorePlan

      public RestorePlanBinding.Builder setRestorePlan(String value)
       Output only. The fully qualified name of the RestorePlan bound to this
       RestoreChannel. `projects/*/locations/*/restorePlans/{restore_plan}`
       
      string restore_plan = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The restorePlan to set.
      Returns:
      This builder for chaining.
    • clearRestorePlan

      public RestorePlanBinding.Builder clearRestorePlan()
       Output only. The fully qualified name of the RestorePlan bound to this
       RestoreChannel. `projects/*/locations/*/restorePlans/{restore_plan}`
       
      string restore_plan = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setRestorePlanBytes

      public RestorePlanBinding.Builder setRestorePlanBytes(com.google.protobuf.ByteString value)
       Output only. The fully qualified name of the RestorePlan bound to this
       RestoreChannel. `projects/*/locations/*/restorePlans/{restore_plan}`
       
      string restore_plan = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for restorePlan to set.
      Returns:
      This builder for chaining.
    • getEtag

      public String getEtag()
       Output only. `etag` is used for optimistic concurrency control as a way to
       help prevent simultaneous updates of a RestorePlanBinding from overwriting
       each other. It is strongly suggested that systems make use of the 'etag' in
       the read-modify-write cycle to perform RestorePlanBinding updates in
       order to avoid race conditions: An `etag` is returned in the response to
       `GetRestorePlanBinding`, and systems are expected to put that etag in
       the request to `UpdateRestorePlanBinding` or
       `DeleteRestorePlanBinding` to ensure that their change will be applied
       to the same version of the resource.
       
      string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtag in interface RestorePlanBindingOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Output only. `etag` is used for optimistic concurrency control as a way to
       help prevent simultaneous updates of a RestorePlanBinding from overwriting
       each other. It is strongly suggested that systems make use of the 'etag' in
       the read-modify-write cycle to perform RestorePlanBinding updates in
       order to avoid race conditions: An `etag` is returned in the response to
       `GetRestorePlanBinding`, and systems are expected to put that etag in
       the request to `UpdateRestorePlanBinding` or
       `DeleteRestorePlanBinding` to ensure that their change will be applied
       to the same version of the resource.
       
      string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtagBytes in interface RestorePlanBindingOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public RestorePlanBinding.Builder setEtag(String value)
       Output only. `etag` is used for optimistic concurrency control as a way to
       help prevent simultaneous updates of a RestorePlanBinding from overwriting
       each other. It is strongly suggested that systems make use of the 'etag' in
       the read-modify-write cycle to perform RestorePlanBinding updates in
       order to avoid race conditions: An `etag` is returned in the response to
       `GetRestorePlanBinding`, and systems are expected to put that etag in
       the request to `UpdateRestorePlanBinding` or
       `DeleteRestorePlanBinding` to ensure that their change will be applied
       to the same version of the resource.
       
      string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public RestorePlanBinding.Builder clearEtag()
       Output only. `etag` is used for optimistic concurrency control as a way to
       help prevent simultaneous updates of a RestorePlanBinding from overwriting
       each other. It is strongly suggested that systems make use of the 'etag' in
       the read-modify-write cycle to perform RestorePlanBinding updates in
       order to avoid race conditions: An `etag` is returned in the response to
       `GetRestorePlanBinding`, and systems are expected to put that etag in
       the request to `UpdateRestorePlanBinding` or
       `DeleteRestorePlanBinding` to ensure that their change will be applied
       to the same version of the resource.
       
      string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public RestorePlanBinding.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Output only. `etag` is used for optimistic concurrency control as a way to
       help prevent simultaneous updates of a RestorePlanBinding from overwriting
       each other. It is strongly suggested that systems make use of the 'etag' in
       the read-modify-write cycle to perform RestorePlanBinding updates in
       order to avoid race conditions: An `etag` is returned in the response to
       `GetRestorePlanBinding`, and systems are expected to put that etag in
       the request to `UpdateRestorePlanBinding` or
       `DeleteRestorePlanBinding` to ensure that their change will be applied
       to the same version of the resource.
       
      string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • getBackupPlan

      public String getBackupPlan()
       Output only. The fully qualified name of the BackupPlan bound to the
       specified RestorePlan. `projects/*/locations/*/backukpPlans/{backup_plan}`
       
      string backup_plan = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getBackupPlan in interface RestorePlanBindingOrBuilder
      Returns:
      The backupPlan.
    • getBackupPlanBytes

      public com.google.protobuf.ByteString getBackupPlanBytes()
       Output only. The fully qualified name of the BackupPlan bound to the
       specified RestorePlan. `projects/*/locations/*/backukpPlans/{backup_plan}`
       
      string backup_plan = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getBackupPlanBytes in interface RestorePlanBindingOrBuilder
      Returns:
      The bytes for backupPlan.
    • setBackupPlan

      public RestorePlanBinding.Builder setBackupPlan(String value)
       Output only. The fully qualified name of the BackupPlan bound to the
       specified RestorePlan. `projects/*/locations/*/backukpPlans/{backup_plan}`
       
      string backup_plan = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The backupPlan to set.
      Returns:
      This builder for chaining.
    • clearBackupPlan

      public RestorePlanBinding.Builder clearBackupPlan()
       Output only. The fully qualified name of the BackupPlan bound to the
       specified RestorePlan. `projects/*/locations/*/backukpPlans/{backup_plan}`
       
      string backup_plan = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setBackupPlanBytes

      public RestorePlanBinding.Builder setBackupPlanBytes(com.google.protobuf.ByteString value)
       Output only. The fully qualified name of the BackupPlan bound to the
       specified RestorePlan. `projects/*/locations/*/backukpPlans/{backup_plan}`
       
      string backup_plan = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for backupPlan to set.
      Returns:
      This builder for chaining.