Class CreateRestoreChannelRequest.Builder

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

public static final class CreateRestoreChannelRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateRestoreChannelRequest.Builder> implements CreateRestoreChannelRequestOrBuilder
 Request message for CreateRestoreChannel.
 
Protobuf type google.cloud.gkebackup.v1.CreateRestoreChannelRequest
  • 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<CreateRestoreChannelRequest.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<CreateRestoreChannelRequest.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<CreateRestoreChannelRequest.Builder>
    • getDefaultInstanceForType

      public CreateRestoreChannelRequest 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 CreateRestoreChannelRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

      public String getParent()
       Required. The location within which to create the RestoreChannel.
       Format: `projects/*/locations/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateRestoreChannelRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The location within which to create the RestoreChannel.
       Format: `projects/*/locations/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateRestoreChannelRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateRestoreChannelRequest.Builder setParent(String value)
       Required. The location within which to create the RestoreChannel.
       Format: `projects/*/locations/*`
       
      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 location within which to create the RestoreChannel.
       Format: `projects/*/locations/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateRestoreChannelRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The location within which to create the RestoreChannel.
       Format: `projects/*/locations/*`
       
      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.
    • hasRestoreChannel

      public boolean hasRestoreChannel()
       Required. The RestoreChannel resource object to create.
       
      .google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRestoreChannel in interface CreateRestoreChannelRequestOrBuilder
      Returns:
      Whether the restoreChannel field is set.
    • getRestoreChannel

      public RestoreChannel getRestoreChannel()
       Required. The RestoreChannel resource object to create.
       
      .google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRestoreChannel in interface CreateRestoreChannelRequestOrBuilder
      Returns:
      The restoreChannel.
    • setRestoreChannel

      public CreateRestoreChannelRequest.Builder setRestoreChannel(RestoreChannel value)
       Required. The RestoreChannel resource object to create.
       
      .google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
    • setRestoreChannel

      public CreateRestoreChannelRequest.Builder setRestoreChannel(RestoreChannel.Builder builderForValue)
       Required. The RestoreChannel resource object to create.
       
      .google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeRestoreChannel

      public CreateRestoreChannelRequest.Builder mergeRestoreChannel(RestoreChannel value)
       Required. The RestoreChannel resource object to create.
       
      .google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearRestoreChannel

      public CreateRestoreChannelRequest.Builder clearRestoreChannel()
       Required. The RestoreChannel resource object to create.
       
      .google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRestoreChannelBuilder

      public RestoreChannel.Builder getRestoreChannelBuilder()
       Required. The RestoreChannel resource object to create.
       
      .google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRestoreChannelOrBuilder

      public RestoreChannelOrBuilder getRestoreChannelOrBuilder()
       Required. The RestoreChannel resource object to create.
       
      .google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRestoreChannelOrBuilder in interface CreateRestoreChannelRequestOrBuilder
    • getRestoreChannelId

      public String getRestoreChannelId()
       Optional. The client-provided short name for the RestoreChannel resource.
       This name must:
      
       - be between 1 and 63 characters long (inclusive)
       - consist of only lower-case ASCII letters, numbers, and dashes
       - start with a lower-case letter
       - end with a lower-case letter or number
       - be unique within the set of RestoreChannels in this location
       If the user does not provide a name, a uuid will be used as the name.
       
      string restore_channel_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRestoreChannelId in interface CreateRestoreChannelRequestOrBuilder
      Returns:
      The restoreChannelId.
    • getRestoreChannelIdBytes

      public com.google.protobuf.ByteString getRestoreChannelIdBytes()
       Optional. The client-provided short name for the RestoreChannel resource.
       This name must:
      
       - be between 1 and 63 characters long (inclusive)
       - consist of only lower-case ASCII letters, numbers, and dashes
       - start with a lower-case letter
       - end with a lower-case letter or number
       - be unique within the set of RestoreChannels in this location
       If the user does not provide a name, a uuid will be used as the name.
       
      string restore_channel_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRestoreChannelIdBytes in interface CreateRestoreChannelRequestOrBuilder
      Returns:
      The bytes for restoreChannelId.
    • setRestoreChannelId

      public CreateRestoreChannelRequest.Builder setRestoreChannelId(String value)
       Optional. The client-provided short name for the RestoreChannel resource.
       This name must:
      
       - be between 1 and 63 characters long (inclusive)
       - consist of only lower-case ASCII letters, numbers, and dashes
       - start with a lower-case letter
       - end with a lower-case letter or number
       - be unique within the set of RestoreChannels in this location
       If the user does not provide a name, a uuid will be used as the name.
       
      string restore_channel_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The restoreChannelId to set.
      Returns:
      This builder for chaining.
    • clearRestoreChannelId

      public CreateRestoreChannelRequest.Builder clearRestoreChannelId()
       Optional. The client-provided short name for the RestoreChannel resource.
       This name must:
      
       - be between 1 and 63 characters long (inclusive)
       - consist of only lower-case ASCII letters, numbers, and dashes
       - start with a lower-case letter
       - end with a lower-case letter or number
       - be unique within the set of RestoreChannels in this location
       If the user does not provide a name, a uuid will be used as the name.
       
      string restore_channel_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRestoreChannelIdBytes

      public CreateRestoreChannelRequest.Builder setRestoreChannelIdBytes(com.google.protobuf.ByteString value)
       Optional. The client-provided short name for the RestoreChannel resource.
       This name must:
      
       - be between 1 and 63 characters long (inclusive)
       - consist of only lower-case ASCII letters, numbers, and dashes
       - start with a lower-case letter
       - end with a lower-case letter or number
       - be unique within the set of RestoreChannels in this location
       If the user does not provide a name, a uuid will be used as the name.
       
      string restore_channel_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for restoreChannelId to set.
      Returns:
      This builder for chaining.