public static final class ListSessionsRequest.Builder extends GeneratedMessageV3.Builder<ListSessionsRequest.Builder> implements ListSessionsRequestOrBuilder
The request for [ListSessions][google.spanner.v1.Spanner.ListSessions].Protobuf type
google.spanner.v1.ListSessionsRequest
Modifier and Type | Method and Description |
---|---|
ListSessionsRequest.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
ListSessionsRequest |
build() |
ListSessionsRequest |
buildPartial() |
ListSessionsRequest.Builder |
clear() |
ListSessionsRequest.Builder |
clearDatabase()
Required.
|
ListSessionsRequest.Builder |
clearField(Descriptors.FieldDescriptor field) |
ListSessionsRequest.Builder |
clearFilter()
An expression for filtering the results of the request.
|
ListSessionsRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
ListSessionsRequest.Builder |
clearPageSize()
Number of sessions to be returned in the response.
|
ListSessionsRequest.Builder |
clearPageToken()
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].
|
ListSessionsRequest.Builder |
clone() |
String |
getDatabase()
Required.
|
ByteString |
getDatabaseBytes()
Required.
|
ListSessionsRequest |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
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.
|
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].
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ListSessionsRequest.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
ListSessionsRequest.Builder |
mergeFrom(ListSessionsRequest other) |
ListSessionsRequest.Builder |
mergeFrom(Message other) |
ListSessionsRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
ListSessionsRequest.Builder |
setDatabase(String value)
Required.
|
ListSessionsRequest.Builder |
setDatabaseBytes(ByteString value)
Required.
|
ListSessionsRequest.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
ListSessionsRequest.Builder |
setFilter(String value)
An expression for filtering the results of the request.
|
ListSessionsRequest.Builder |
setFilterBytes(ByteString value)
An expression for filtering the results of the request.
|
ListSessionsRequest.Builder |
setPageSize(int value)
Number of sessions to be returned in the response.
|
ListSessionsRequest.Builder |
setPageToken(String value)
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].
|
ListSessionsRequest.Builder |
setPageTokenBytes(ByteString value)
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].
|
ListSessionsRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
ListSessionsRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ListSessionsRequest.Builder>
public ListSessionsRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ListSessionsRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ListSessionsRequest.Builder>
public ListSessionsRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ListSessionsRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ListSessionsRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ListSessionsRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ListSessionsRequest.Builder>
public ListSessionsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ListSessionsRequest.Builder>
public ListSessionsRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ListSessionsRequest.Builder>
public ListSessionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ListSessionsRequest.Builder>
public ListSessionsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ListSessionsRequest.Builder>
public ListSessionsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ListSessionsRequest.Builder>
public ListSessionsRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ListSessionsRequest.Builder>
public ListSessionsRequest.Builder mergeFrom(ListSessionsRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ListSessionsRequest.Builder>
public ListSessionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ListSessionsRequest.Builder>
IOException
public String getDatabase()
Required. The database in which to list sessions.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getDatabase
in interface ListSessionsRequestOrBuilder
public ByteString getDatabaseBytes()
Required. The database in which to list sessions.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getDatabaseBytes
in interface ListSessionsRequestOrBuilder
public ListSessionsRequest.Builder setDatabase(String value)
Required. The database in which to list sessions.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The database to set.public ListSessionsRequest.Builder clearDatabase()
Required. The database in which to list sessions.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public ListSessionsRequest.Builder setDatabaseBytes(ByteString value)
Required. The database in which to list sessions.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The bytes for database to set.public 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 ListSessionsRequestOrBuilder
public ListSessionsRequest.Builder setPageSize(int value)
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;
value
- The pageSize to set.public ListSessionsRequest.Builder clearPageSize()
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;
public 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 ListSessionsRequestOrBuilder
public 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 ListSessionsRequestOrBuilder
public ListSessionsRequest.Builder setPageToken(String value)
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;
value
- The pageToken to set.public ListSessionsRequest.Builder clearPageToken()
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;
public ListSessionsRequest.Builder setPageTokenBytes(ByteString value)
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;
value
- The bytes for pageToken to set.public 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 ListSessionsRequestOrBuilder
public 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 ListSessionsRequestOrBuilder
public ListSessionsRequest.Builder setFilter(String value)
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;
value
- The filter to set.public ListSessionsRequest.Builder clearFilter()
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;
public ListSessionsRequest.Builder setFilterBytes(ByteString value)
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;
value
- The bytes for filter to set.public final ListSessionsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ListSessionsRequest.Builder>
public final ListSessionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ListSessionsRequest.Builder>
Copyright © 2022 Google LLC. All rights reserved.