- 1.54.0 (latest)
- 1.53.0
- 1.52.0
- 1.50.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.2.0
public static final class Snapshot.Builder extends GeneratedMessageV3.Builder<Snapshot.Builder> implements SnapshotOrBuilder
A Filestore snapshot.
Protobuf type google.cloud.filestore.v1beta1.Snapshot
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Snapshot.BuilderImplements
SnapshotOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Snapshot.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Snapshot.Builder |
build()
public Snapshot build()
Type | Description |
Snapshot |
buildPartial()
public Snapshot buildPartial()
Type | Description |
Snapshot |
clear()
public Snapshot.Builder clear()
Type | Description |
Snapshot.Builder |
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];
Type | Description |
Snapshot.Builder |
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;
Type | Description |
Snapshot.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Snapshot.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Snapshot.Builder |
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 = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Snapshot.Builder | This builder for chaining. |
clearLabels()
public Snapshot.Builder clearLabels()
Type | Description |
Snapshot.Builder |
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];
Type | Description |
Snapshot.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Snapshot.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Snapshot.Builder |
clearState()
public Snapshot.Builder clearState()
Output only. The snapshot state.
.google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Snapshot.Builder | This builder for chaining. |
clone()
public Snapshot.Builder clone()
Type | Description |
Snapshot.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
Name | Description |
key | String |
Type | Description |
boolean |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Snapshot getDefaultInstanceForType()
Type | Description |
Snapshot |
getDescription()
public String getDescription()
A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 2;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 2;
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getFilesystemUsedBytes()
public long getFilesystemUsedBytes()
Output only. The amount of bytes needed to allocate a full copy of the snapshot content
int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
long | The filesystemUsedBytes. |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
Name | Description |
key | String |
Type | Description |
String |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
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];
Type | Description |
String | The name. |
getNameBytes()
public 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];
Type | Description |
ByteString | The bytes for name. |
getState()
public Snapshot.State getState()
Output only. The snapshot state.
.google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Snapshot.State | The state. |
getStateValue()
public int getStateValue()
Output only. The snapshot state.
.google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
int | The enum numeric value on the wire for state. |
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];
Type | Description |
boolean | Whether the createTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public Snapshot.Builder mergeCreateTime(Timestamp value)
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Snapshot.Builder |
mergeFrom(Snapshot other)
public Snapshot.Builder mergeFrom(Snapshot other)
Name | Description |
other | Snapshot |
Type | Description |
Snapshot.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Snapshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Snapshot.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Snapshot.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Snapshot.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Snapshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Snapshot.Builder |
putAllLabels(Map<String,String> values)
public Snapshot.Builder putAllLabels(Map<String,String> values)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
Name | Description |
values | Map<String,String> |
Type | Description |
Snapshot.Builder |
putLabels(String key, String value)
public Snapshot.Builder putLabels(String key, String value)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
Name | Description |
key | String |
value | String |
Type | Description |
Snapshot.Builder |
removeLabels(String key)
public Snapshot.Builder removeLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
Name | Description |
key | String |
Type | Description |
Snapshot.Builder |
setCreateTime(Timestamp value)
public Snapshot.Builder setCreateTime(Timestamp value)
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Snapshot.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public Snapshot.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The time when the snapshot was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
Snapshot.Builder |
setDescription(String value)
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;
Name | Description |
value | String The description to set. |
Type | Description |
Snapshot.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public Snapshot.Builder setDescriptionBytes(ByteString value)
A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 2;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
Snapshot.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Snapshot.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Snapshot.Builder |
setFilesystemUsedBytes(long value)
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 = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | long The filesystemUsedBytes to set. |
Type | Description |
Snapshot.Builder | This builder for chaining. |
setName(String value)
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];
Name | Description |
value | String The name to set. |
Type | Description |
Snapshot.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Snapshot.Builder setNameBytes(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];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Snapshot.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Snapshot.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Snapshot.Builder |
setState(Snapshot.State value)
public Snapshot.Builder setState(Snapshot.State value)
Output only. The snapshot state.
.google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Snapshot.State The state to set. |
Type | Description |
Snapshot.Builder | This builder for chaining. |
setStateValue(int value)
public Snapshot.Builder setStateValue(int value)
Output only. The snapshot state.
.google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Type | Description |
Snapshot.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Snapshot.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Snapshot.Builder |