public static final class Snapshot.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder> implements SnapshotOrBuilder
Snapshot is a point-in-time version of a Volume's content.Protobuf type
google.cloud.netapp.v1.Snapshot| Modifier and Type | Method and Description |
|---|---|
Snapshot.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Snapshot |
build() |
Snapshot |
buildPartial() |
Snapshot.Builder |
clear() |
Snapshot.Builder |
clearCreateTime()
Output only.
|
Snapshot.Builder |
clearDescription()
A description of the snapshot with 2048 characters or less.
|
Snapshot.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Snapshot.Builder |
clearLabels() |
Snapshot.Builder |
clearName()
Identifier.
|
Snapshot.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Snapshot.Builder |
clearState()
Output only.
|
Snapshot.Builder |
clearStateDetails()
Output only.
|
Snapshot.Builder |
clearUsedBytes()
Output only.
|
Snapshot.Builder |
clone() |
boolean |
containsLabels(String key)
Resource labels to represent user provided metadata.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
Snapshot |
getDefaultInstanceForType() |
String |
getDescription()
A description of the snapshot with 2048 characters or less.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
A description of the snapshot with 2048 characters or less.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Resource labels to represent user provided metadata.
|
Map<String,String> |
getLabelsMap()
Resource labels to represent user provided metadata.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Resource labels to represent user provided metadata.
|
String |
getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
String |
getName()
Identifier.
|
com.google.protobuf.ByteString |
getNameBytes()
Identifier.
|
Snapshot.State |
getState()
Output only.
|
String |
getStateDetails()
Output only.
|
com.google.protobuf.ByteString |
getStateDetailsBytes()
Output only.
|
int |
getStateValue()
Output only.
|
double |
getUsedBytes()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Snapshot.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Snapshot.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Snapshot.Builder |
mergeFrom(com.google.protobuf.Message other) |
Snapshot.Builder |
mergeFrom(Snapshot other) |
Snapshot.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Snapshot.Builder |
putAllLabels(Map<String,String> values)
Resource labels to represent user provided metadata.
|
Snapshot.Builder |
putLabels(String key,
String value)
Resource labels to represent user provided metadata.
|
Snapshot.Builder |
removeLabels(String key)
Resource labels to represent user provided metadata.
|
Snapshot.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Snapshot.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Snapshot.Builder |
setDescription(String value)
A description of the snapshot with 2048 characters or less.
|
Snapshot.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
A description of the snapshot with 2048 characters or less.
|
Snapshot.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Snapshot.Builder |
setName(String value)
Identifier.
|
Snapshot.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Identifier.
|
Snapshot.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Snapshot.Builder |
setState(Snapshot.State value)
Output only.
|
Snapshot.Builder |
setStateDetails(String value)
Output only.
|
Snapshot.Builder |
setStateDetailsBytes(com.google.protobuf.ByteString value)
Output only.
|
Snapshot.Builder |
setStateValue(int value)
Output only.
|
Snapshot.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Snapshot.Builder |
setUsedBytes(double value)
Output only.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Snapshot build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Snapshot buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Snapshot.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Snapshot.Builder>public Snapshot.Builder mergeFrom(Snapshot other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Snapshot.Builder>IOExceptionpublic String getName()
Identifier. The resource name of the snapshot.
Format:
`projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getName in interface SnapshotOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Identifier. The resource name of the snapshot.
Format:
`projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getNameBytes in interface SnapshotOrBuilderpublic Snapshot.Builder setName(String value)
Identifier. The resource name of the snapshot.
Format:
`projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];value - The name to set.public Snapshot.Builder clearName()
Identifier. The resource name of the snapshot.
Format:
`projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];public Snapshot.Builder setNameBytes(com.google.protobuf.ByteString value)
Identifier. The resource name of the snapshot.
Format:
`projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];value - The bytes for name to set.public int getStateValue()
Output only. The snapshot state.
.google.cloud.netapp.v1.Snapshot.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface SnapshotOrBuilderpublic Snapshot.Builder setStateValue(int value)
Output only. The snapshot state.
.google.cloud.netapp.v1.Snapshot.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for state to set.public Snapshot.State getState()
Output only. The snapshot state.
.google.cloud.netapp.v1.Snapshot.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface SnapshotOrBuilderpublic Snapshot.Builder setState(Snapshot.State value)
Output only. The snapshot state.
.google.cloud.netapp.v1.Snapshot.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The state to set.public Snapshot.Builder clearState()
Output only. The snapshot state.
.google.cloud.netapp.v1.Snapshot.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public String getStateDetails()
Output only. State details of the storage pool
string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];getStateDetails in interface SnapshotOrBuilderpublic com.google.protobuf.ByteString getStateDetailsBytes()
Output only. State details of the storage pool
string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];getStateDetailsBytes in interface SnapshotOrBuilderpublic Snapshot.Builder setStateDetails(String value)
Output only. State details of the storage pool
string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The stateDetails to set.public Snapshot.Builder clearStateDetails()
Output only. State details of the storage pool
string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];public Snapshot.Builder setStateDetailsBytes(com.google.protobuf.ByteString value)
Output only. State details of the storage pool
string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for stateDetails to set.public String getDescription()
A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 4;getDescription in interface SnapshotOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 4;getDescriptionBytes in interface SnapshotOrBuilderpublic Snapshot.Builder setDescription(String value)
A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 4;value - The description to set.public Snapshot.Builder clearDescription()
A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 4;public Snapshot.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 4;value - The bytes for description to set.public double getUsedBytes()
Output only. Current storage usage for the snapshot in bytes.
double used_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];getUsedBytes in interface SnapshotOrBuilderpublic Snapshot.Builder setUsedBytes(double value)
Output only. Current storage usage for the snapshot in bytes.
double used_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The usedBytes to set.public Snapshot.Builder clearUsedBytes()
Output only. Current storage usage for the snapshot in bytes.
double used_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];public boolean hasCreateTime()
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface SnapshotOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface SnapshotOrBuilderpublic Snapshot.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Snapshot.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Snapshot.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Snapshot.Builder clearCreateTime()
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface SnapshotOrBuilderpublic int getLabelsCount()
SnapshotOrBuilderResource labels to represent user provided metadata.
map<string, string> labels = 7;getLabelsCount in interface SnapshotOrBuilderpublic boolean containsLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 7;containsLabels in interface SnapshotOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface SnapshotOrBuilderpublic Map<String,String> getLabelsMap()
Resource labels to represent user provided metadata.
map<string, string> labels = 7;getLabelsMap in interface SnapshotOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata.
map<string, string> labels = 7;getLabelsOrDefault in interface SnapshotOrBuilderpublic String getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 7;getLabelsOrThrow in interface SnapshotOrBuilderpublic Snapshot.Builder clearLabels()
public Snapshot.Builder removeLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 7;@Deprecated public Map<String,String> getMutableLabels()
public Snapshot.Builder putLabels(String key, String value)
Resource labels to represent user provided metadata.
map<string, string> labels = 7;public Snapshot.Builder putAllLabels(Map<String,String> values)
Resource labels to represent user provided metadata.
map<string, string> labels = 7;public final Snapshot.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public final Snapshot.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>Copyright © 2024 Google LLC. All rights reserved.