Class BatchCreateSessionsResponse.Builder (6.77.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
<