Class UpdateSnapshotRequest.Builder (1.123.5)

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

Request for the UpdateSnapshot method.

Protobuf type google.pubsub.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. The updated snapshot object.

.google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateSnapshotRequest.Builder

clearUpdateMask()

public UpdateSnapshotRequest.Builder clearUpdateMask()

Required. Indicates which fields in the provided snapshot to update. Must be specified and non-empty.

.google.protobuf.FieldMask update_mask = 2 [(.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. The updated snapshot object.

.google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Snapshot

The snapshot.

getSnapshotBuilder()

public Snapshot.Builder getSnapshotBuilder()

Required. The updated snapshot object.

.google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Snapshot.Builder

getSnapshotOrBuilder()

public SnapshotOrBuilder getSnapshotOrBuilder()

Required. The updated snapshot object.

.google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SnapshotOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. Indicates which fields in the provided snapshot to update. Must be specified and non-empty.

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

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Indicates which fields in the provided snapshot to update. Must be specified and non-empty.

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

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Indicates which fields in the provided snapshot to update. Must be specified and non-empty.

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

Returns
TypeDescription
FieldMaskOrBuilder

hasSnapshot()

public boolean hasSnapshot()

Required. The updated snapshot object.

.google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the snapshot field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Indicates which fields in the provided snapshot to update. Must be specified and non-empty.

.google.protobuf.FieldMask update_mask = 2 [(.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(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

mergeFrom(UpdateSnapshotRequest other)

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

mergeSnapshot(Snapshot value)

public UpdateSnapshotRequest.Builder mergeSnapshot(Snapshot value)

Required. The updated snapshot object.

.google.pubsub.v1.Snapshot snapshot = 1 [(.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. Indicates which fields in the provided snapshot to update. Must be specified and non-empty.

.google.protobuf.FieldMask update_mask = 2 [(.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. The updated snapshot object.

.google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueSnapshot
Returns
TypeDescription
UpdateSnapshotRequest.Builder

setSnapshot(Snapshot.Builder builderForValue)

public UpdateSnapshotRequest.Builder setSnapshot(Snapshot.Builder builderForValue)

Required. The updated snapshot object.

.google.pubsub.v1.Snapshot snapshot = 1 [(.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. Indicates which fields in the provided snapshot to update. Must be specified and non-empty.

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

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateSnapshotRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSnapshotRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Indicates which fields in the provided snapshot to update. Must be specified and non-empty.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateSnapshotRequest.Builder