Class BatchCreateSessionsResponse.Builder (6.66.0)

public static final class BatchCreateSessionsResponse.Builder extends GeneratedMessageV3.Builder<BatchCreateSessionsResponse.Builder> implements BatchCreateSessionsResponseOrBuilder

The response for BatchCreateSessions.

Protobuf type google.spanner.v1.BatchCreateSessionsResponse

Static Methods

getDescriptor()

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

Methods

addAllSession(Iterable<? extends Session> values)

public BatchCreateSessionsResponse.Builder addAllSession(Iterable<? extends Session> values)

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Parameter
Name Description
values Iterable<? extends com.google.spanner.v1.Session>
Returns
Type Description
BatchCreateSessionsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateSessionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchCreateSessionsResponse.Builder
Overrides

addSession(Session value)

public BatchCreateSessionsResponse.Builder addSession(Session value)

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Parameter
Name Description
value Session
Returns
Type Description
BatchCreateSessionsResponse.Builder

addSession(Session.Builder builderForValue)

public BatchCreateSessionsResponse.Builder addSession(Session.Builder builderForValue)

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Parameter
Name Description
builderForValue Session.Builder
Returns
Type Description
BatchCreateSessionsResponse.Builder

addSession(int index, Session value)

public BatchCreateSessionsResponse.Builder addSession(int index, Session value)

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Parameters
Name Description
index int
value Session
Returns
Type Description
BatchCreateSessionsResponse.Builder

addSession(int index, Session.Builder builderForValue)

public BatchCreateSessionsResponse.Builder addSession(int index, Session.Builder builderForValue)

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Parameters
Name Description
index int
builderForValue Session.Builder
Returns
Type Description
BatchCreateSessionsResponse.Builder

addSessionBuilder()

public Session.Builder addSessionBuilder()

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Returns
Type Description
Session.Builder

addSessionBuilder(int index)

public Session.Builder addSessionBuilder(int index)

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Parameter
Name Description
index int
Returns
Type Description
Session.Builder

build()

public BatchCreateSessionsResponse build()
Returns
Type Description
BatchCreateSessionsResponse

buildPartial()

public BatchCreateSessionsResponse buildPartial()
Returns
Type Description
BatchCreateSessionsResponse

clear()

public BatchCreateSessionsResponse.Builder clear()
Returns
Type Description
BatchCreateSessionsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchCreateSessionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchCreateSessionsResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateSessionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchCreateSessionsResponse.Builder
Overrides

clearSession()

public BatchCreateSessionsResponse.Builder clearSession()

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Returns
Type Description
BatchCreateSessionsResponse.Builder

clone()

public BatchCreateSessionsResponse.Builder clone()
Returns
Type Description
BatchCreateSessionsResponse.Builder
Overrides

getDefaultInstanceForType()

public BatchCreateSessionsResponse getDefaultInstanceForType()
Returns
Type Description
BatchCreateSessionsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSession(int index)

public Session getSession(int index)

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Parameter
Name Description
index int
Returns
Type Description
Session

getSessionBuilder(int index)

public Session.Builder getSessionBuilder(int index)

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Parameter
Name Description
index int
Returns
Type Description
Session.Builder

getSessionBuilderList()

public List<Session.Builder> getSessionBuilderList()

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Returns
Type Description
List<Builder>

getSessionCount()

public int getSessionCount()

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Returns
Type Description
int

getSessionList()

public List<Session> getSessionList()

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Returns
Type Description
List<Session>

getSessionOrBuilder(int index)

public SessionOrBuilder getSessionOrBuilder(int index)

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Parameter
Name Description
index int
Returns
Type Description
SessionOrBuilder

getSessionOrBuilderList()

public List<? extends SessionOrBuilder> getSessionOrBuilderList()

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Returns
Type Description
List<? extends com.google.spanner.v1.SessionOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCreateSessionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateSessionsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchCreateSessionsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchCreateSessionsResponse.Builder
Overrides

mergeFrom(BatchCreateSessionsResponse other)

public BatchCreateSessionsResponse.Builder mergeFrom(BatchCreateSessionsResponse other)
Parameter
Name Description
other BatchCreateSessionsResponse
Returns
Type Description
BatchCreateSessionsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateSessionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchCreateSessionsResponse.Builder
Overrides

removeSession(int index)

public BatchCreateSessionsResponse.Builder removeSession(int index)

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Parameter
Name Description
index int
Returns
Type Description
BatchCreateSessionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateSessionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchCreateSessionsResponse.Builder
Overrides

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

public BatchCreateSessionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchCreateSessionsResponse.Builder
Overrides

setSession(int index, Session value)

public BatchCreateSessionsResponse.Builder setSession(int index, Session value)

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Parameters
Name Description
index int
value Session
Returns
Type Description
BatchCreateSessionsResponse.Builder

setSession(int index, Session.Builder builderForValue)

public BatchCreateSessionsResponse.Builder setSession(int index, Session.Builder builderForValue)

The freshly created sessions.

repeated .google.spanner.v1.Session session = 1;

Parameters
Name Description
index int
builderForValue Session.Builder
Returns
Type Description
BatchCreateSessionsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateSessionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchCreateSessionsResponse.Builder
Overrides