public static final class CreateReadSessionRequest.Builder extends GeneratedMessage.Builder<CreateReadSessionRequest.Builder> implements CreateReadSessionRequestOrBuilder Request message for CreateReadSession.
Protobuf type google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateReadSessionRequest.BuilderImplements
CreateReadSessionRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateReadSessionRequest build()| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest |
|
buildPartial()
public CreateReadSessionRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest |
|
clear()
public CreateReadSessionRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest.Builder |
|
clearMaxStreamCount()
public CreateReadSessionRequest.Builder clearMaxStreamCount()Max initial number of streams. If unset or zero, the server will provide a value of streams so as to produce reasonable throughput. Must be non-negative. The number of streams may be lower than the requested number, depending on the amount parallelism that is reasonable for the table. Error will be returned if the max count is greater than the current system max limit of 1,000.
Streams must be read starting from offset 0.
int32 max_stream_count = 3;
| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest.Builder |
This builder for chaining. |
clearParent()
public CreateReadSessionRequest.Builder clearParent() Required. The request project that owns the session, in the form of
projects/{project_id}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest.Builder |
This builder for chaining. |
clearReadSession()
public CreateReadSessionRequest.Builder clearReadSession()Required. Session to be created.
.google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest.Builder |
|
getDefaultInstanceForType()
public CreateReadSessionRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMaxStreamCount()
public int getMaxStreamCount()Max initial number of streams. If unset or zero, the server will provide a value of streams so as to produce reasonable throughput. Must be non-negative. The number of streams may be lower than the requested number, depending on the amount parallelism that is reasonable for the table. Error will be returned if the max count is greater than the current system max limit of 1,000.
Streams must be read starting from offset 0.
int32 max_stream_count = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The maxStreamCount. |
getParent()
public String getParent() Required. The request project that owns the session, in the form of
projects/{project_id}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes() Required. The request project that owns the session, in the form of
projects/{project_id}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
getReadSession()
public ReadSession getReadSession()Required. Session to be created.
.google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ReadSession |
The readSession. |
getReadSessionBuilder()
public ReadSession.Builder getReadSessionBuilder()Required. Session to be created.
.google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ReadSession.Builder |
|
getReadSessionOrBuilder()
public ReadSessionOrBuilder getReadSessionOrBuilder()Required. Session to be created.
.google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ReadSessionOrBuilder |
|
hasReadSession()
public boolean hasReadSession()Required. Session to be created.
.google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the readSession field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CreateReadSessionRequest other)
public CreateReadSessionRequest.Builder mergeFrom(CreateReadSessionRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateReadSessionRequest |
| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateReadSessionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateReadSessionRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest.Builder |
|
mergeReadSession(ReadSession value)
public CreateReadSessionRequest.Builder mergeReadSession(ReadSession value)Required. Session to be created.
.google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ReadSession |
| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest.Builder |
|
setMaxStreamCount(int value)
public CreateReadSessionRequest.Builder setMaxStreamCount(int value)Max initial number of streams. If unset or zero, the server will provide a value of streams so as to produce reasonable throughput. Must be non-negative. The number of streams may be lower than the requested number, depending on the amount parallelism that is reasonable for the table. Error will be returned if the max count is greater than the current system max limit of 1,000.
Streams must be read starting from offset 0.
int32 max_stream_count = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe maxStreamCount to set. |
| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest.Builder |
This builder for chaining. |
setParent(String value)
public CreateReadSessionRequest.Builder setParent(String value) Required. The request project that owns the session, in the form of
projects/{project_id}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateReadSessionRequest.Builder setParentBytes(ByteString value) Required. The request project that owns the session, in the form of
projects/{project_id}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest.Builder |
This builder for chaining. |
setReadSession(ReadSession value)
public CreateReadSessionRequest.Builder setReadSession(ReadSession value)Required. Session to be created.
.google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ReadSession |
| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest.Builder |
|
setReadSession(ReadSession.Builder builderForValue)
public CreateReadSessionRequest.Builder setReadSession(ReadSession.Builder builderForValue)Required. Session to be created.
.google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ReadSession.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateReadSessionRequest.Builder |
|