Class VolumeSnapshot.Builder

  • All Implemented Interfaces:
    VolumeSnapshotOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    VolumeSnapshot

    public static final class VolumeSnapshot.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<VolumeSnapshot.Builder>
    implements VolumeSnapshotOrBuilder
     A snapshot of a volume. Only boot volumes can have snapshots.
     
    Protobuf type google.cloud.baremetalsolution.v2.VolumeSnapshot
    • 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<VolumeSnapshot.Builder>
      • clear

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

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

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

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

        public VolumeSnapshot.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<VolumeSnapshot.Builder>
      • setField

        public VolumeSnapshot.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<VolumeSnapshot.Builder>
      • clearField

        public VolumeSnapshot.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<VolumeSnapshot.Builder>
      • clearOneof

        public VolumeSnapshot.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<VolumeSnapshot.Builder>
      • setRepeatedField

        public VolumeSnapshot.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<VolumeSnapshot.Builder>
      • addRepeatedField

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

        public VolumeSnapshot.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<VolumeSnapshot.Builder>
      • isInitialized

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

        public VolumeSnapshot.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<VolumeSnapshot.Builder>
        Throws:
        IOException
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the snapshot.
         
        string name = 1;
        Specified by:
        getNameBytes in interface VolumeSnapshotOrBuilder
        Returns:
        The bytes for name.
      • setName

        public VolumeSnapshot.Builder setName​(String value)
         The name of the snapshot.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public VolumeSnapshot.Builder clearName()
         The name of the snapshot.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public VolumeSnapshot.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of the snapshot.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getId

        public String getId()
         Output only. An identifier for the snapshot, generated by the backend.
         
        string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getId in interface VolumeSnapshotOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         Output only. An identifier for the snapshot, generated by the backend.
         
        string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getIdBytes in interface VolumeSnapshotOrBuilder
        Returns:
        The bytes for id.
      • setId

        public VolumeSnapshot.Builder setId​(String value)
         Output only. An identifier for the snapshot, generated by the backend.
         
        string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public VolumeSnapshot.Builder clearId()
         Output only. An identifier for the snapshot, generated by the backend.
         
        string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setIdBytes

        public VolumeSnapshot.Builder setIdBytes​(com.google.protobuf.ByteString value)
         Output only. An identifier for the snapshot, generated by the backend.
         
        string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         The description of the snapshot.
         
        string description = 2;
        Specified by:
        getDescriptionBytes in interface VolumeSnapshotOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public VolumeSnapshot.Builder setDescription​(String value)
         The description of the snapshot.
         
        string description = 2;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public VolumeSnapshot.Builder clearDescription()
         The description of the snapshot.
         
        string description = 2;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public VolumeSnapshot.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         The description of the snapshot.
         
        string description = 2;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The creation time of the snapshot.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface VolumeSnapshotOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The creation time of the snapshot.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface VolumeSnapshotOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public VolumeSnapshot.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The creation time of the snapshot.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public VolumeSnapshot.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The creation time of the snapshot.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public VolumeSnapshot.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The creation time of the snapshot.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public VolumeSnapshot.Builder clearCreateTime()
         Output only. The creation time of the snapshot.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The creation time of the snapshot.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The creation time of the snapshot.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface VolumeSnapshotOrBuilder
      • getStorageVolume

        public String getStorageVolume()
         Output only. The name of the volume which this snapshot belongs to.
         
        string storage_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getStorageVolume in interface VolumeSnapshotOrBuilder
        Returns:
        The storageVolume.
      • getStorageVolumeBytes

        public com.google.protobuf.ByteString getStorageVolumeBytes()
         Output only. The name of the volume which this snapshot belongs to.
         
        string storage_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getStorageVolumeBytes in interface VolumeSnapshotOrBuilder
        Returns:
        The bytes for storageVolume.
      • setStorageVolume

        public VolumeSnapshot.Builder setStorageVolume​(String value)
         Output only. The name of the volume which this snapshot belongs to.
         
        string storage_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The storageVolume to set.
        Returns:
        This builder for chaining.
      • clearStorageVolume

        public VolumeSnapshot.Builder clearStorageVolume()
         Output only. The name of the volume which this snapshot belongs to.
         
        string storage_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setStorageVolumeBytes

        public VolumeSnapshot.Builder setStorageVolumeBytes​(com.google.protobuf.ByteString value)
         Output only. The name of the volume which this snapshot belongs to.
         
        string storage_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for storageVolume to set.
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         Output only. The type of the snapshot which indicates whether it was
         scheduled or manual/ad-hoc.
         
        .google.cloud.baremetalsolution.v2.VolumeSnapshot.SnapshotType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTypeValue in interface VolumeSnapshotOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public VolumeSnapshot.Builder setTypeValue​(int value)
         Output only. The type of the snapshot which indicates whether it was
         scheduled or manual/ad-hoc.
         
        .google.cloud.baremetalsolution.v2.VolumeSnapshot.SnapshotType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • getType

        public VolumeSnapshot.SnapshotType getType()
         Output only. The type of the snapshot which indicates whether it was
         scheduled or manual/ad-hoc.
         
        .google.cloud.baremetalsolution.v2.VolumeSnapshot.SnapshotType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getType in interface VolumeSnapshotOrBuilder
        Returns:
        The type.
      • setType

        public VolumeSnapshot.Builder setType​(VolumeSnapshot.SnapshotType value)
         Output only. The type of the snapshot which indicates whether it was
         scheduled or manual/ad-hoc.
         
        .google.cloud.baremetalsolution.v2.VolumeSnapshot.SnapshotType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public VolumeSnapshot.Builder clearType()
         Output only. The type of the snapshot which indicates whether it was
         scheduled or manual/ad-hoc.
         
        .google.cloud.baremetalsolution.v2.VolumeSnapshot.SnapshotType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final VolumeSnapshot.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<VolumeSnapshot.Builder>
      • mergeUnknownFields

        public final VolumeSnapshot.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<VolumeSnapshot.Builder>