public static final class CreateReadSessionRequest.Builder extends GeneratedMessageV3.Builder<CreateReadSessionRequest.Builder> implements CreateReadSessionRequestOrBuilder
Request message for CreateReadSession
.
Protobuf type google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateReadSessionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateReadSessionRequest build()
buildPartial()
public CreateReadSessionRequest buildPartial()
clear()
public CreateReadSessionRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateReadSessionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateReadSessionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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) = { ... }
clearReadSession()
public CreateReadSessionRequest.Builder clearReadSession()
Required. Session to be created.
.google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
clone()
public CreateReadSessionRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateReadSessionRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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];
getReadSessionBuilder()
public ReadSession.Builder getReadSessionBuilder()
Required. Session to be created.
.google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
getReadSessionOrBuilder()
public ReadSessionOrBuilder getReadSessionOrBuilder()
Required. Session to be created.
.google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateReadSessionRequest other)
public CreateReadSessionRequest.Builder mergeFrom(CreateReadSessionRequest other)
public CreateReadSessionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateReadSessionRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateReadSessionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateReadSessionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 | int
The maxStreamCount to set.
|
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 | String
The parent to set.
|
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 | ByteString
The bytes for parent to set.
|
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];
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateReadSessionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateReadSessionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides