Class ExecuteChangeStreamQuery.Builder (6.56.0)

public static final class ExecuteChangeStreamQuery.Builder extends GeneratedMessageV3.Builder<ExecuteChangeStreamQuery.Builder> implements ExecuteChangeStreamQueryOrBuilder

Execute a change stream TVF query.

Protobuf type google.spanner.executor.v1.ExecuteChangeStreamQuery

Static Methods

getDescriptor()

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

Methods

addAllReadOptions(Iterable<String> values)

public ExecuteChangeStreamQuery.Builder addAllReadOptions(Iterable<String> values)

Read options for this change stream query.

repeated string read_options = 5;

Parameter
NameDescription
valuesIterable<String>

The readOptions to add.

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

addReadOptions(String value)

public ExecuteChangeStreamQuery.Builder addReadOptions(String value)

Read options for this change stream query.

repeated string read_options = 5;

Parameter
NameDescription
valueString

The readOptions to add.

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

addReadOptionsBytes(ByteString value)

public ExecuteChangeStreamQuery.Builder addReadOptionsBytes(ByteString value)

Read options for this change stream query.

repeated string read_options = 5;

Parameter
NameDescription
valueByteString

The bytes of the readOptions to add.

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExecuteChangeStreamQuery build()
Returns
TypeDescription
ExecuteChangeStreamQuery

buildPartial()

public ExecuteChangeStreamQuery buildPartial()
Returns
TypeDescription
ExecuteChangeStreamQuery

clear()

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

clearCloudDatabaseRole()

public ExecuteChangeStreamQuery.Builder clearCloudDatabaseRole()

Database role to assume while performing this action. This should only be set for cloud requests. Setting the database role will enforce additional role-based access checks on this action.

optional string cloud_database_role = 8;

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

clearDeadlineSeconds()

public ExecuteChangeStreamQuery.Builder clearDeadlineSeconds()

Deadline for this change stream query, in seconds.

optional int64 deadline_seconds = 7;

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

clearEndTime()

public ExecuteChangeStreamQuery.Builder clearEndTime()

Specifies that records with commit_timestamp less than or equal to end_time should be returned.

optional .google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHeartbeatMilliseconds()

public ExecuteChangeStreamQuery.Builder clearHeartbeatMilliseconds()

Determines how frequently a heartbeat ChangeRecord will be returned in case there are no transactions committed in this partition, in milliseconds.

optional int32 heartbeat_milliseconds = 6;

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

clearName()

public ExecuteChangeStreamQuery.Builder clearName()

Name for this change stream.

string name = 1;

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartitionToken()

public ExecuteChangeStreamQuery.Builder clearPartitionToken()

Specifies which change stream partition to query, based on the content of child partitions records.

optional string partition_token = 4;

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

clearReadOptions()

public ExecuteChangeStreamQuery.Builder clearReadOptions()

Read options for this change stream query.

repeated string read_options = 5;

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

clearStartTime()

public ExecuteChangeStreamQuery.Builder clearStartTime()

Specifies that records with commit_timestamp greater than or equal to start_time should be returned.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

clone()

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

getCloudDatabaseRole()

public String getCloudDatabaseRole()

Database role to assume while performing this action. This should only be set for cloud requests. Setting the database role will enforce additional role-based access checks on this action.

optional string cloud_database_role = 8;

Returns
TypeDescription
String

The cloudDatabaseRole.

getCloudDatabaseRoleBytes()

public ByteString getCloudDatabaseRoleBytes()

Database role to assume while performing this action. This should only be set for cloud requests. Setting the database role will enforce additional role-based access checks on this action.

optional string cloud_database_role = 8;

Returns
TypeDescription
ByteString

The bytes for cloudDatabaseRole.

getDeadlineSeconds()

public long getDeadlineSeconds()

Deadline for this change stream query, in seconds.

optional int64 deadline_seconds = 7;

Returns
TypeDescription
long

The deadlineSeconds.

getDefaultInstanceForType()

public ExecuteChangeStreamQuery getDefaultInstanceForType()
Returns
TypeDescription
ExecuteChangeStreamQuery

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

Specifies that records with commit_timestamp less than or equal to end_time should be returned.

optional .google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Specifies that records with commit_timestamp less than or equal to end_time should be returned.

optional .google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Specifies that records with commit_timestamp less than or equal to end_time should be returned.

optional .google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getHeartbeatMilliseconds()

public int getHeartbeatMilliseconds()

Determines how frequently a heartbeat ChangeRecord will be returned in case there are no transactions committed in this partition, in milliseconds.

optional int32 heartbeat_milliseconds = 6;

Returns
TypeDescription
int

The heartbeatMilliseconds.

getName()

public String getName()

Name for this change stream.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name for this change stream.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getPartitionToken()

public String getPartitionToken()

Specifies which change stream partition to query, based on the content of child partitions records.

optional string partition_token = 4;

Returns
TypeDescription
String

The partitionToken.

getPartitionTokenBytes()

public ByteString getPartitionTokenBytes()

Specifies which change stream partition to query, based on the content of child partitions records.

optional string partition_token = 4;

Returns
TypeDescription
ByteString

The bytes for partitionToken.

getReadOptions(int index)

public String getReadOptions(int index)

Read options for this change stream query.

repeated string read_options = 5;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The readOptions at the given index.

getReadOptionsBytes(int index)

public ByteString getReadOptionsBytes(int index)

Read options for this change stream query.

repeated string read_options = 5;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the readOptions at the given index.

getReadOptionsCount()

public int getReadOptionsCount()

Read options for this change stream query.

repeated string read_options = 5;

Returns
TypeDescription
int

The count of readOptions.

getReadOptionsList()

public ProtocolStringList getReadOptionsList()

Read options for this change stream query.

repeated string read_options = 5;

Returns
TypeDescription
ProtocolStringList

A list containing the readOptions.

getStartTime()

public Timestamp getStartTime()

Specifies that records with commit_timestamp greater than or equal to start_time should be returned.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Specifies that records with commit_timestamp greater than or equal to start_time should be returned.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Specifies that records with commit_timestamp greater than or equal to start_time should be returned.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
TimestampOrBuilder

hasCloudDatabaseRole()

public boolean hasCloudDatabaseRole()

Database role to assume while performing this action. This should only be set for cloud requests. Setting the database role will enforce additional role-based access checks on this action.

optional string cloud_database_role = 8;

Returns
TypeDescription
boolean

Whether the cloudDatabaseRole field is set.

hasDeadlineSeconds()

public boolean hasDeadlineSeconds()

Deadline for this change stream query, in seconds.

optional int64 deadline_seconds = 7;

Returns
TypeDescription
boolean

Whether the deadlineSeconds field is set.

hasEndTime()

public boolean hasEndTime()

Specifies that records with commit_timestamp less than or equal to end_time should be returned.

optional .google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasHeartbeatMilliseconds()

public boolean hasHeartbeatMilliseconds()

Determines how frequently a heartbeat ChangeRecord will be returned in case there are no transactions committed in this partition, in milliseconds.

optional int32 heartbeat_milliseconds = 6;

Returns
TypeDescription
boolean

Whether the heartbeatMilliseconds field is set.

hasPartitionToken()

public boolean hasPartitionToken()

Specifies which change stream partition to query, based on the content of child partitions records.

optional string partition_token = 4;

Returns
TypeDescription
boolean

Whether the partitionToken field is set.

hasStartTime()

public boolean hasStartTime()

Specifies that records with commit_timestamp greater than or equal to start_time should be returned.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEndTime(Timestamp value)

public ExecuteChangeStreamQuery.Builder mergeEndTime(Timestamp value)

Specifies that records with commit_timestamp less than or equal to end_time should be returned.

optional .google.protobuf.Timestamp end_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ExecuteChangeStreamQuery other)

public ExecuteChangeStreamQuery.Builder mergeFrom(ExecuteChangeStreamQuery other)
Parameter
NameDescription
otherExecuteChangeStreamQuery
Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

mergeStartTime(Timestamp value)

public ExecuteChangeStreamQuery.Builder mergeStartTime(Timestamp value)

Specifies that records with commit_timestamp greater than or equal to start_time should be returned.

.google.protobuf.Timestamp start_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCloudDatabaseRole(String value)

public ExecuteChangeStreamQuery.Builder setCloudDatabaseRole(String value)

Database role to assume while performing this action. This should only be set for cloud requests. Setting the database role will enforce additional role-based access checks on this action.

optional string cloud_database_role = 8;

Parameter
NameDescription
valueString

The cloudDatabaseRole to set.

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

setCloudDatabaseRoleBytes(ByteString value)

public ExecuteChangeStreamQuery.Builder setCloudDatabaseRoleBytes(ByteString value)

Database role to assume while performing this action. This should only be set for cloud requests. Setting the database role will enforce additional role-based access checks on this action.

optional string cloud_database_role = 8;

Parameter
NameDescription
valueByteString

The bytes for cloudDatabaseRole to set.

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

setDeadlineSeconds(long value)

public ExecuteChangeStreamQuery.Builder setDeadlineSeconds(long value)

Deadline for this change stream query, in seconds.

optional int64 deadline_seconds = 7;

Parameter
NameDescription
valuelong

The deadlineSeconds to set.

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

setEndTime(Timestamp value)

public ExecuteChangeStreamQuery.Builder setEndTime(Timestamp value)

Specifies that records with commit_timestamp less than or equal to end_time should be returned.

optional .google.protobuf.Timestamp end_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

setEndTime(Timestamp.Builder builderForValue)

public ExecuteChangeStreamQuery.Builder setEndTime(Timestamp.Builder builderForValue)

Specifies that records with commit_timestamp less than or equal to end_time should be returned.

optional .google.protobuf.Timestamp end_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHeartbeatMilliseconds(int value)

public ExecuteChangeStreamQuery.Builder setHeartbeatMilliseconds(int value)

Determines how frequently a heartbeat ChangeRecord will be returned in case there are no transactions committed in this partition, in milliseconds.

optional int32 heartbeat_milliseconds = 6;

Parameter
NameDescription
valueint

The heartbeatMilliseconds to set.

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

setName(String value)

public ExecuteChangeStreamQuery.Builder setName(String value)

Name for this change stream.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ExecuteChangeStreamQuery.Builder setNameBytes(ByteString value)

Name for this change stream.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

setPartitionToken(String value)

public ExecuteChangeStreamQuery.Builder setPartitionToken(String value)

Specifies which change stream partition to query, based on the content of child partitions records.

optional string partition_token = 4;

Parameter
NameDescription
valueString

The partitionToken to set.

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

setPartitionTokenBytes(ByteString value)

public ExecuteChangeStreamQuery.Builder setPartitionTokenBytes(ByteString value)

Specifies which change stream partition to query, based on the content of child partitions records.

optional string partition_token = 4;

Parameter
NameDescription
valueByteString

The bytes for partitionToken to set.

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

setReadOptions(int index, String value)

public ExecuteChangeStreamQuery.Builder setReadOptions(int index, String value)

Read options for this change stream query.

repeated string read_options = 5;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The readOptions to set.

Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

This builder for chaining.

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

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

setStartTime(Timestamp value)

public ExecuteChangeStreamQuery.Builder setStartTime(Timestamp value)

Specifies that records with commit_timestamp greater than or equal to start_time should be returned.

.google.protobuf.Timestamp start_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

setStartTime(Timestamp.Builder builderForValue)

public ExecuteChangeStreamQuery.Builder setStartTime(Timestamp.Builder builderForValue)

Specifies that records with commit_timestamp greater than or equal to start_time should be returned.

.google.protobuf.Timestamp start_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ExecuteChangeStreamQuery.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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