public final class Snapshot extends com.google.protobuf.GeneratedMessageV3 implements SnapshotOrBuilder
Snapshot is a point-in-time version of a Volume's content.Protobuf type
google.cloud.netapp.v1.Snapshot| Modifier and Type | Class and Description |
|---|---|
static class |
Snapshot.Builder
Snapshot is a point-in-time version of a Volume's content.
|
static class |
Snapshot.State
The Snapshot States
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
STATE_DETAILS_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
static int |
USED_BYTES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Resource labels to represent user provided metadata.
|
boolean |
equals(Object obj) |
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
static Snapshot |
getDefaultInstance() |
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() |
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.
|
String |
getName()
Identifier.
|
com.google.protobuf.ByteString |
getNameBytes()
Identifier.
|
com.google.protobuf.Parser<Snapshot> |
getParserForType() |
int |
getSerializedSize() |
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.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Snapshot.Builder |
newBuilder() |
static Snapshot.Builder |
newBuilder(Snapshot prototype) |
Snapshot.Builder |
newBuilderForType() |
protected Snapshot.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Snapshot |
parseDelimitedFrom(InputStream input) |
static Snapshot |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Snapshot |
parseFrom(byte[] data) |
static Snapshot |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Snapshot |
parseFrom(ByteBuffer data) |
static Snapshot |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Snapshot |
parseFrom(com.google.protobuf.ByteString data) |
static Snapshot |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Snapshot |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Snapshot |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Snapshot |
parseFrom(InputStream input) |
static Snapshot |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Snapshot> |
parser() |
Snapshot.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int STATE_DETAILS_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int USED_BYTES_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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.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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Snapshot parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(InputStream input) throws IOException
IOExceptionpublic static Snapshot parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Snapshot parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Snapshot parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Snapshot parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Snapshot parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Snapshot.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Snapshot.Builder newBuilder()
public static Snapshot.Builder newBuilder(Snapshot prototype)
public Snapshot.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Snapshot.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Snapshot getDefaultInstance()
public static com.google.protobuf.Parser<Snapshot> parser()
public com.google.protobuf.Parser<Snapshot> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Snapshot getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.