Class RestoreVolumeSnapshotRequest.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<RestoreVolumeSnapshotRequest.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<RestoreVolumeSnapshotRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public RestoreVolumeSnapshotRequest.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<RestoreVolumeSnapshotRequest.Builder>
        Throws:
        IOException
      • getVolumeSnapshot

        public String getVolumeSnapshot()
         Required. Name of the snapshot which will be used to restore its parent
         volume.
         
        string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getVolumeSnapshot in interface RestoreVolumeSnapshotRequestOrBuilder
        Returns:
        The volumeSnapshot.
      • getVolumeSnapshotBytes

        public com.google.protobuf.ByteString getVolumeSnapshotBytes()
         Required. Name of the snapshot which will be used to restore its parent
         volume.
         
        string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getVolumeSnapshotBytes in interface RestoreVolumeSnapshotRequestOrBuilder
        Returns:
        The bytes for volumeSnapshot.
      • setVolumeSnapshot

        public RestoreVolumeSnapshotRequest.Builder setVolumeSnapshot​(String value)
         Required. Name of the snapshot which will be used to restore its parent
         volume.
         
        string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The volumeSnapshot to set.
        Returns:
        This builder for chaining.
      • clearVolumeSnapshot

        public RestoreVolumeSnapshotRequest.Builder clearVolumeSnapshot()
         Required. Name of the snapshot which will be used to restore its parent
         volume.
         
        string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setVolumeSnapshotBytes

        public RestoreVolumeSnapshotRequest.Builder setVolumeSnapshotBytes​(com.google.protobuf.ByteString value)
         Required. Name of the snapshot which will be used to restore its parent
         volume.
         
        string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for volumeSnapshot to set.
        Returns:
        This builder for chaining.