public static final class BatchCreateSessionsRequest.Builder extends GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder> implements BatchCreateSessionsRequestOrBuilder
The request for [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions].Protobuf type
google.spanner.v1.BatchCreateSessionsRequest
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<BatchCreateSessionsRequest.Builder>
public BatchCreateSessionsRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder>
public BatchCreateSessionsRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public BatchCreateSessionsRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public BatchCreateSessionsRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public BatchCreateSessionsRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder>
public BatchCreateSessionsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder>
public BatchCreateSessionsRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder>
public BatchCreateSessionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder>
public BatchCreateSessionsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder>
public BatchCreateSessionsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder>
public BatchCreateSessionsRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<BatchCreateSessionsRequest.Builder>
public BatchCreateSessionsRequest.Builder mergeFrom(BatchCreateSessionsRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder>
public BatchCreateSessionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<BatchCreateSessionsRequest.Builder>
IOException
public String getDatabase()
Required. The database in which the new sessions are created.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getDatabase
in interface BatchCreateSessionsRequestOrBuilder
public ByteString getDatabaseBytes()
Required. The database in which the new sessions are created.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getDatabaseBytes
in interface BatchCreateSessionsRequestOrBuilder
public BatchCreateSessionsRequest.Builder setDatabase(String value)
Required. The database in which the new sessions are created.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The database to set.public BatchCreateSessionsRequest.Builder clearDatabase()
Required. The database in which the new sessions are created.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public BatchCreateSessionsRequest.Builder setDatabaseBytes(ByteString value)
Required. The database in which the new sessions are created.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The bytes for database to set.public boolean hasSessionTemplate()
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
hasSessionTemplate
in interface BatchCreateSessionsRequestOrBuilder
public Session getSessionTemplate()
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
getSessionTemplate
in interface BatchCreateSessionsRequestOrBuilder
public BatchCreateSessionsRequest.Builder setSessionTemplate(Session value)
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
public BatchCreateSessionsRequest.Builder setSessionTemplate(Session.Builder builderForValue)
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
public BatchCreateSessionsRequest.Builder mergeSessionTemplate(Session value)
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
public BatchCreateSessionsRequest.Builder clearSessionTemplate()
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
public Session.Builder getSessionTemplateBuilder()
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
public SessionOrBuilder getSessionTemplateOrBuilder()
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
getSessionTemplateOrBuilder
in interface BatchCreateSessionsRequestOrBuilder
public int getSessionCount()
Required. The number of sessions to be created in this batch call. The API may return fewer than the requested number of sessions. If a specific number of sessions are desired, the client can make additional calls to BatchCreateSessions (adjusting [session_count][google.spanner.v1.BatchCreateSessionsRequest.session_count] as necessary).
int32 session_count = 3 [(.google.api.field_behavior) = REQUIRED];
getSessionCount
in interface BatchCreateSessionsRequestOrBuilder
public BatchCreateSessionsRequest.Builder setSessionCount(int value)
Required. The number of sessions to be created in this batch call. The API may return fewer than the requested number of sessions. If a specific number of sessions are desired, the client can make additional calls to BatchCreateSessions (adjusting [session_count][google.spanner.v1.BatchCreateSessionsRequest.session_count] as necessary).
int32 session_count = 3 [(.google.api.field_behavior) = REQUIRED];
value
- The sessionCount to set.public BatchCreateSessionsRequest.Builder clearSessionCount()
Required. The number of sessions to be created in this batch call. The API may return fewer than the requested number of sessions. If a specific number of sessions are desired, the client can make additional calls to BatchCreateSessions (adjusting [session_count][google.spanner.v1.BatchCreateSessionsRequest.session_count] as necessary).
int32 session_count = 3 [(.google.api.field_behavior) = REQUIRED];
public final BatchCreateSessionsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder>
public final BatchCreateSessionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder>
Copyright © 2022 Google LLC. All rights reserved.