Package com.google.cloud.filestore.v1
Class Snapshot.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
- com.google.cloud.filestore.v1.Snapshot.Builder
-
- All Implemented Interfaces:
SnapshotOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Snapshot
public static final class Snapshot.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder> implements SnapshotOrBuilder
A Filestore snapshot.
Protobuf typegoogle.cloud.filestore.v1.Snapshot
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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
clearFilesystemUsedBytes()
Output only.Snapshot.Builder
clearLabels()
Snapshot.Builder
clearName()
Output only.Snapshot.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Snapshot.Builder
clearState()
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()
long
getFilesystemUsedBytes()
Output only.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()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.Snapshot.State
getState()
Output only.int
getStateValue()
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(Snapshot other)
Snapshot.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Snapshot.Builder
mergeFrom(com.google.protobuf.Message 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 value)
Output only.Snapshot.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
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
setFilesystemUsedBytes(long value)
Output only.Snapshot.Builder
setName(String value)
Output only.Snapshot.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.Snapshot.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Snapshot.Builder
setState(Snapshot.State value)
Output only.Snapshot.Builder
setStateValue(int value)
Output only.Snapshot.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
clear
public Snapshot.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
getDefaultInstanceForType
public Snapshot getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Snapshot build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Snapshot buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Snapshot.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
setField
public Snapshot.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
clearField
public Snapshot.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
clearOneof
public Snapshot.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
setRepeatedField
public Snapshot.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
addRepeatedField
public Snapshot.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
mergeFrom
public Snapshot.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Snapshot.Builder>
-
mergeFrom
public Snapshot.Builder mergeFrom(Snapshot other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
mergeFrom
public Snapshot.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Snapshot.Builder>
- Throws:
IOException
-
getName
public String getName()
Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceSnapshotOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in interfaceSnapshotOrBuilder
- Returns:
- The bytes for name.
-
setName
public Snapshot.Builder setName(String value)
Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Snapshot.Builder clearName()
Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setNameBytes
public Snapshot.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 2;
- Specified by:
getDescription
in interfaceSnapshotOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 2;
- Specified by:
getDescriptionBytes
in interfaceSnapshotOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public Snapshot.Builder setDescription(String value)
A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 2;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Snapshot.Builder clearDescription()
A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 2;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
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 = 2;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()
Output only. The snapshot state.
.google.cloud.filestore.v1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateValue
in interfaceSnapshotOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public Snapshot.Builder setStateValue(int value)
Output only. The snapshot state.
.google.cloud.filestore.v1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public Snapshot.State getState()
Output only. The snapshot state.
.google.cloud.filestore.v1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getState
in interfaceSnapshotOrBuilder
- Returns:
- The state.
-
setState
public Snapshot.Builder setState(Snapshot.State value)
Output only. The snapshot state.
.google.cloud.filestore.v1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
clearState
public Snapshot.Builder clearState()
Output only. The snapshot state.
.google.cloud.filestore.v1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceSnapshotOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceSnapshotOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public Snapshot.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Snapshot.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Snapshot.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public Snapshot.Builder clearCreateTime()
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceSnapshotOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:SnapshotOrBuilder
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
- Specified by:
getLabelsCount
in interfaceSnapshotOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
- Specified by:
containsLabels
in interfaceSnapshotOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceSnapshotOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
- Specified by:
getLabelsMap
in interfaceSnapshotOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
- Specified by:
getLabelsOrDefault
in interfaceSnapshotOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
- Specified by:
getLabelsOrThrow
in interfaceSnapshotOrBuilder
-
clearLabels
public Snapshot.Builder clearLabels()
-
removeLabels
public Snapshot.Builder removeLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Snapshot.Builder putLabels(String key, String value)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
-
putAllLabels
public Snapshot.Builder putAllLabels(Map<String,String> values)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
-
getFilesystemUsedBytes
public long getFilesystemUsedBytes()
Output only. The amount of bytes needed to allocate a full copy of the snapshot content
int64 filesystem_used_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getFilesystemUsedBytes
in interfaceSnapshotOrBuilder
- Returns:
- The filesystemUsedBytes.
-
setFilesystemUsedBytes
public Snapshot.Builder setFilesystemUsedBytes(long value)
Output only. The amount of bytes needed to allocate a full copy of the snapshot content
int64 filesystem_used_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The filesystemUsedBytes to set.- Returns:
- This builder for chaining.
-
clearFilesystemUsedBytes
public Snapshot.Builder clearFilesystemUsedBytes()
Output only. The amount of bytes needed to allocate a full copy of the snapshot content
int64 filesystem_used_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Snapshot.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
mergeUnknownFields
public final Snapshot.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
-