Class ExecuteChangeStreamQuery (6.77.0)

public final class ExecuteChangeStreamQuery extends GeneratedMessageV3 implements ExecuteChangeStreamQueryOrBuilder

Execute a change stream TVF query.

Protobuf type google.spanner.executor.v1.ExecuteChangeStreamQuery

Static Fields

CLOUD_DATABASE_ROLE_FIELD_NUMBER

public static final int CLOUD_DATABASE_ROLE_FIELD_NUMBER
Field Value
Type Description
int

DEADLINE_SECONDS_FIELD_NUMBER

public static final int DEADLINE_SECONDS_FIELD_NUMBER
Field Value
Type Description
int

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
Type Description
int

HEARTBEAT_MILLISECONDS_FIELD_NUMBER

public static final int HEARTBEAT_MILLISECONDS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PARTITION_TOKEN_FIELD_NUMBER

public static final int PARTITION_TOKEN_FIELD_NUMBER
Field Value
Type Description
int

READ_OPTIONS_FIELD_NUMBER

public static final int READ_OPTIONS_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ExecuteChangeStreamQuery getDefaultInstance()
Returns
Type Description
ExecuteChangeStreamQuery

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ExecuteChangeStreamQuery.Builder newBuilder()
Returns
Type Description
ExecuteChangeStreamQuery.Builder

newBuilder(ExecuteChangeStreamQuery prototype)

public static ExecuteChangeStreamQuery.Builder newBuilder(ExecuteChangeStreamQuery prototype)
Parameter
Name Description
prototype ExecuteChangeStreamQuery
Returns
Type Description
ExecuteChangeStreamQuery.Builder

parseDelimitedFrom(InputStream input)

public static ExecuteChangeStreamQuery parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ExecuteChangeStreamQuery
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExecuteChangeStreamQuery parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExecuteChangeStreamQuery
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ExecuteChangeStreamQuery parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ExecuteChangeStreamQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ExecuteChangeStreamQuery parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExecuteChangeStreamQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ExecuteChangeStreamQuery parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ExecuteChangeStreamQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ExecuteChangeStreamQuery parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExecuteChangeStreamQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ExecuteChangeStreamQuery parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ExecuteChangeStreamQuery
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ExecuteChangeStreamQuery parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExecuteChangeStreamQuery
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ExecuteChangeStreamQuery parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ExecuteChangeStreamQuery
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExecuteChangeStreamQuery parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExecuteChangeStreamQuery
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ExecuteChangeStreamQuery parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ExecuteChangeStreamQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ExecuteChangeStreamQuery parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExecuteChangeStreamQuery
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ExecuteChangeStreamQuery> parser()
Returns
Type Description
Parser<ExecuteChangeStreamQuery>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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
Type Description
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
Type Description
ByteString

The bytes for cloudDatabaseRole.

getDeadlineSeconds()

public long getDeadlineSeconds()

Deadline for this change stream query, in seconds.

optional int64 deadline_seconds = 7;

Returns
Type Description
long

The deadlineSeconds.

getDefaultInstanceForType()

public ExecuteChangeStreamQuery getDefaultInstanceForType()
Returns
Type Description
ExecuteChangeStreamQuery

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
Type Description
Timestamp

The endTime.

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
Type Description
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
Type Description
int

The heartbeatMilliseconds.

getName()

public String getName()

Name for this change stream.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name for this change stream.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<ExecuteChangeStreamQuery> getParserForType()
Returns
Type Description
Parser<ExecuteChangeStreamQuery>
Overrides

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
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
int

The count of readOptions.

getReadOptionsList()

public ProtocolStringList getReadOptionsList()

Read options for this change stream query.

repeated string read_options = 5;

Returns
Type Description
ProtocolStringList

A list containing the readOptions.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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
Type Description
Timestamp

The startTime.

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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the startTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ExecuteChangeStreamQuery.Builder newBuilderForType()
Returns
Type Description
ExecuteChangeStreamQuery.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ExecuteChangeStreamQuery.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ExecuteChangeStreamQuery.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ExecuteChangeStreamQuery.Builder toBuilder()
Returns
Type Description
ExecuteChangeStreamQuery.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException