public final class ListSessionsRequest extends GeneratedMessageV3 implements ListSessionsRequestOrBuilder
The request for [ListSessions][google.spanner.v1.Spanner.ListSessions].Protobuf type
google.spanner.v1.ListSessionsRequest| Modifier and Type | Class and Description |
|---|---|
static class |
ListSessionsRequest.Builder
The request for [ListSessions][google.spanner.v1.Spanner.ListSessions].
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
DATABASE_FIELD_NUMBER |
static int |
FILTER_FIELD_NUMBER |
static int |
PAGE_SIZE_FIELD_NUMBER |
static int |
PAGE_TOKEN_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDatabase()
Required.
|
ByteString |
getDatabaseBytes()
Required.
|
static ListSessionsRequest |
getDefaultInstance() |
ListSessionsRequest |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getFilter()
An expression for filtering the results of the request.
|
ByteString |
getFilterBytes()
An expression for filtering the results of the request.
|
int |
getPageSize()
Number of sessions to be returned in the response.
|
java.lang.String |
getPageToken()
If non-empty, `page_token` should contain a
[next_page_token][google.spanner.v1.ListSessionsResponse.next_page_token] from a previous
[ListSessionsResponse][google.spanner.v1.ListSessionsResponse].
|
ByteString |
getPageTokenBytes()
If non-empty, `page_token` should contain a
[next_page_token][google.spanner.v1.ListSessionsResponse.next_page_token] from a previous
[ListSessionsResponse][google.spanner.v1.ListSessionsResponse].
|
Parser<ListSessionsRequest> |
getParserForType() |
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ListSessionsRequest.Builder |
newBuilder() |
static ListSessionsRequest.Builder |
newBuilder(ListSessionsRequest prototype) |
ListSessionsRequest.Builder |
newBuilderForType() |
protected ListSessionsRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static ListSessionsRequest |
parseDelimitedFrom(java.io.InputStream input) |
static ListSessionsRequest |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static ListSessionsRequest |
parseFrom(byte[] data) |
static ListSessionsRequest |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static ListSessionsRequest |
parseFrom(java.nio.ByteBuffer data) |
static ListSessionsRequest |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static ListSessionsRequest |
parseFrom(ByteString data) |
static ListSessionsRequest |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static ListSessionsRequest |
parseFrom(CodedInputStream input) |
static ListSessionsRequest |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static ListSessionsRequest |
parseFrom(java.io.InputStream input) |
static ListSessionsRequest |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<ListSessionsRequest> |
parser() |
ListSessionsRequest.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int DATABASE_FIELD_NUMBER
public static final int PAGE_SIZE_FIELD_NUMBER
public static final int PAGE_TOKEN_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.String getDatabase()
Required. The database in which to list sessions.
string database = 1;getDatabase in interface ListSessionsRequestOrBuilderpublic ByteString getDatabaseBytes()
Required. The database in which to list sessions.
string database = 1;getDatabaseBytes in interface ListSessionsRequestOrBuilderpublic int getPageSize()
Number of sessions to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.
int32 page_size = 2;getPageSize in interface ListSessionsRequestOrBuilderpublic java.lang.String getPageToken()
If non-empty, `page_token` should contain a [next_page_token][google.spanner.v1.ListSessionsResponse.next_page_token] from a previous [ListSessionsResponse][google.spanner.v1.ListSessionsResponse].
string page_token = 3;getPageToken in interface ListSessionsRequestOrBuilderpublic ByteString getPageTokenBytes()
If non-empty, `page_token` should contain a [next_page_token][google.spanner.v1.ListSessionsResponse.next_page_token] from a previous [ListSessionsResponse][google.spanner.v1.ListSessionsResponse].
string page_token = 3;getPageTokenBytes in interface ListSessionsRequestOrBuilderpublic java.lang.String getFilter()
An expression for filtering the results of the request. Filter rules are
case insensitive. The fields eligible for filtering are:
* `labels.key` where key is the name of a label
Some examples of using filters are:
* `labels.env:*` --> The session has the label "env".
* `labels.env:dev` --> The session has the label "env" and the value of
the label contains the string "dev".
string filter = 4;getFilter in interface ListSessionsRequestOrBuilderpublic ByteString getFilterBytes()
An expression for filtering the results of the request. Filter rules are
case insensitive. The fields eligible for filtering are:
* `labels.key` where key is the name of a label
Some examples of using filters are:
* `labels.env:*` --> The session has the label "env".
* `labels.env:dev` --> The session has the label "env" and the value of
the label contains the string "dev".
string filter = 4;getFilterBytes in interface ListSessionsRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static ListSessionsRequest parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ListSessionsRequest parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ListSessionsRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ListSessionsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ListSessionsRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ListSessionsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ListSessionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ListSessionsRequest parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ListSessionsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ListSessionsRequest parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ListSessionsRequest parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ListSessionsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic ListSessionsRequest.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static ListSessionsRequest.Builder newBuilder()
public static ListSessionsRequest.Builder newBuilder(ListSessionsRequest prototype)
public ListSessionsRequest.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected ListSessionsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static ListSessionsRequest getDefaultInstance()
public static Parser<ListSessionsRequest> parser()
public Parser<ListSessionsRequest> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public ListSessionsRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder