Class UpdateSnapshotRequest.Builder (1.40.0)

public static final class UpdateSnapshotRequest.Builder extends GeneratedMessageV3.Builder<UpdateSnapshotRequest.Builder> implements UpdateSnapshotRequestOrBuilder

UpdateSnapshotRequest updates description and/or labels for a snapshot.

Protobuf type google.cloud.filestore.v1.UpdateSnapshotRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateSnapshotRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateSnapshotRequest.Builder
Overrides

build()

public UpdateSnapshotRequest build()
Returns
TypeDescription
UpdateSnapshotRequest

buildPartial()

public UpdateSnapshotRequest buildPartial()
Returns
TypeDescription
UpdateSnapshotRequest

clear()

public UpdateSnapshotRequest.Builder clear()
Returns
TypeDescription
UpdateSnapshotRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UpdateSnapshotRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpdateSnapshotRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateSnapshotRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateSnapshotRequest.Builder
Overrides

clearSnapshot()

public UpdateSnapshotRequest.Builder clearSnapshot()

Required. A snapshot resource.

.google.cloud.filestore.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateSnapshotRequest.Builder

clearUpdateMask()

public UpdateSnapshotRequest.Builder clearUpdateMask()

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateSnapshotRequest.Builder

clone()

public UpdateSnapshotRequest.Builder clone()
Returns
TypeDescription
UpdateSnapshotRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateSnapshotRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateSnapshotRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSnapshot()

public Snapshot getSnapshot()

Required. A snapshot resource.

.google.cloud.filestore.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Snapshot

The snapshot.

getSnapshotBuilder()

public Snapshot.Builder getSnapshotBuilder()

Required. A snapshot resource.

.google.cloud.filestore.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Snapshot.Builder

getSnapshotOrBuilder()

public SnapshotOrBuilder getSnapshotOrBuilder()

Required. A snapshot resource.

.google.cloud.filestore.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SnapshotOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMaskOrBuilder

hasSnapshot()

public boolean hasSnapshot()

Required. A snapshot resource.

.google.cloud.filestore.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the snapshot field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateSnapshotRequest other)

public UpdateSnapshotRequest.Builder mergeFrom(UpdateSnapshotRequest other)
Parameter
NameDescription
otherUpdateSnapshotRequest
Returns
TypeDescription
UpdateSnapshotRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateSnapshotRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateSnapshotRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpdateSnapshotRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateSnapshotRequest.Builder
Overrides

mergeSnapshot(Snapshot value)

public UpdateSnapshotRequest.Builder mergeSnapshot(Snapshot value)

Required. A snapshot resource.

.google.cloud.filestore.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueSnapshot
Returns
TypeDescription
UpdateSnapshotRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSnapshotRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateSnapshotRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateSnapshotRequest.Builder mergeUpdateMask(FieldMask value)

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateSnapshotRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateSnapshotRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateSnapshotRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UpdateSnapshotRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateSnapshotRequest.Builder
Overrides

setSnapshot(Snapshot value)

public UpdateSnapshotRequest.Builder setSnapshot(Snapshot value)

Required. A snapshot resource.

.google.cloud.filestore.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueSnapshot
Returns
TypeDescription
UpdateSnapshotRequest.Builder

setSnapshot(Snapshot.Builder builderForValue)

public UpdateSnapshotRequest.Builder setSnapshot(Snapshot.Builder builderForValue)

Required. A snapshot resource.

.google.cloud.filestore.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueSnapshot.Builder
Returns
TypeDescription
UpdateSnapshotRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSnapshotRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateSnapshotRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateSnapshotRequest.Builder setUpdateMask(FieldMask value)

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateSnapshotRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSnapshotRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateSnapshotRequest.Builder