Class CreateRestoreRequest.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateRestoreRequest.Builder>
      • clear

        public CreateRestoreRequest.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.GeneratedMessageV3.Builder<CreateRestoreRequest.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.GeneratedMessageV3.Builder<CreateRestoreRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public CreateRestoreRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateRestoreRequest.Builder>
      • setField

        public CreateRestoreRequest.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateRestoreRequest.Builder>
      • clearField

        public CreateRestoreRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateRestoreRequest.Builder>
      • clearOneof

        public CreateRestoreRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateRestoreRequest.Builder>
      • setRepeatedField

        public CreateRestoreRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateRestoreRequest.Builder>
      • addRepeatedField

        public CreateRestoreRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateRestoreRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateRestoreRequest.Builder>
      • mergeFrom

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

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

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

        public CreateRestoreRequest.Builder setParent​(String value)
         Required. The RestorePlan within which to create the Restore.
         Format: `projects/*/locations/*/restorePlans/*`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateRestoreRequest.Builder clearParent()
         Required. The RestorePlan within which to create the Restore.
         Format: `projects/*/locations/*/restorePlans/*`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateRestoreRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The RestorePlan within which to create the Restore.
         Format: `projects/*/locations/*/restorePlans/*`
         
        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.
      • hasRestore

        public boolean hasRestore()
         Required. The restore resource to create.
         
        .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasRestore in interface CreateRestoreRequestOrBuilder
        Returns:
        Whether the restore field is set.
      • getRestore

        public Restore getRestore()
         Required. The restore resource to create.
         
        .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRestore in interface CreateRestoreRequestOrBuilder
        Returns:
        The restore.
      • setRestore

        public CreateRestoreRequest.Builder setRestore​(Restore value)
         Required. The restore resource to create.
         
        .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
      • setRestore

        public CreateRestoreRequest.Builder setRestore​(Restore.Builder builderForValue)
         Required. The restore resource to create.
         
        .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeRestore

        public CreateRestoreRequest.Builder mergeRestore​(Restore value)
         Required. The restore resource to create.
         
        .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearRestore

        public CreateRestoreRequest.Builder clearRestore()
         Required. The restore resource to create.
         
        .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
      • getRestoreBuilder

        public Restore.Builder getRestoreBuilder()
         Required. The restore resource to create.
         
        .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
      • getRestoreId

        public String getRestoreId()
         Required. The client-provided short name for the Restore 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 Restores in this RestorePlan.
         
        string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRestoreId in interface CreateRestoreRequestOrBuilder
        Returns:
        The restoreId.
      • getRestoreIdBytes

        public com.google.protobuf.ByteString getRestoreIdBytes()
         Required. The client-provided short name for the Restore 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 Restores in this RestorePlan.
         
        string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRestoreIdBytes in interface CreateRestoreRequestOrBuilder
        Returns:
        The bytes for restoreId.
      • setRestoreId

        public CreateRestoreRequest.Builder setRestoreId​(String value)
         Required. The client-provided short name for the Restore 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 Restores in this RestorePlan.
         
        string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The restoreId to set.
        Returns:
        This builder for chaining.
      • clearRestoreId

        public CreateRestoreRequest.Builder clearRestoreId()
         Required. The client-provided short name for the Restore 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 Restores in this RestorePlan.
         
        string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setRestoreIdBytes

        public CreateRestoreRequest.Builder setRestoreIdBytes​(com.google.protobuf.ByteString value)
         Required. The client-provided short name for the Restore 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 Restores in this RestorePlan.
         
        string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for restoreId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CreateRestoreRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateRestoreRequest.Builder>
      • mergeUnknownFields

        public final CreateRestoreRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateRestoreRequest.Builder>