public static final class ReadSession.TableReadOptions.Builder extends GeneratedMessageV3.Builder<ReadSession.TableReadOptions.Builder> implements ReadSession.TableReadOptionsOrBuilder
Options dictating how we read a table.
Protobuf type google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ReadSession.TableReadOptions.BuilderImplements
ReadSession.TableReadOptionsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllSelectedFields(Iterable<String> values)
public ReadSession.TableReadOptions.Builder addAllSelectedFields(Iterable<String> values)
Names of the fields in the table that should be read. If empty, all fields will be read. If the specified field is a nested field, all the sub-fields in the field will be selected. The output field order is unrelated to the order of fields in selected_fields.
repeated string selected_fields = 1;
Name | Description |
values | Iterable<String> The selectedFields to add. |
Type | Description |
ReadSession.TableReadOptions.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ReadSession.TableReadOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ReadSession.TableReadOptions.Builder |
addSelectedFields(String value)
public ReadSession.TableReadOptions.Builder addSelectedFields(String value)
Names of the fields in the table that should be read. If empty, all fields will be read. If the specified field is a nested field, all the sub-fields in the field will be selected. The output field order is unrelated to the order of fields in selected_fields.
repeated string selected_fields = 1;
Name | Description |
value | String The selectedFields to add. |
Type | Description |
ReadSession.TableReadOptions.Builder | This builder for chaining. |
addSelectedFieldsBytes(ByteString value)
public ReadSession.TableReadOptions.Builder addSelectedFieldsBytes(ByteString value)
Names of the fields in the table that should be read. If empty, all fields will be read. If the specified field is a nested field, all the sub-fields in the field will be selected. The output field order is unrelated to the order of fields in selected_fields.
repeated string selected_fields = 1;
Name | Description |
value | ByteString The bytes of the selectedFields to add. |
Type | Description |
ReadSession.TableReadOptions.Builder | This builder for chaining. |
build()
public ReadSession.TableReadOptions build()
Type | Description |
ReadSession.TableReadOptions |
buildPartial()
public ReadSession.TableReadOptions buildPartial()
Type | Description |
ReadSession.TableReadOptions |
clear()
public ReadSession.TableReadOptions.Builder clear()
Type | Description |
ReadSession.TableReadOptions.Builder |
clearArrowSerializationOptions()
public ReadSession.TableReadOptions.Builder clearArrowSerializationOptions()
Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ReadSession.TableReadOptions.Builder |
clearField(Descriptors.FieldDescriptor field)
public ReadSession.TableReadOptions.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ReadSession.TableReadOptions.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ReadSession.TableReadOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ReadSession.TableReadOptions.Builder |
clearOutputFormatSerializationOptions()
public ReadSession.TableReadOptions.Builder clearOutputFormatSerializationOptions()
Type | Description |
ReadSession.TableReadOptions.Builder |
clearRowRestriction()
public ReadSession.TableReadOptions.Builder clearRowRestriction()
SQL text filtering statement, similar to a WHERE clause in a query. Aggregates are not supported. Examples: "int_field > 5" "date_field = CAST('2014-9-27' as DATE)" "nullable_field is not NULL" "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" "numeric_field BETWEEN 1.0 AND 5.0" Restricted to a maximum length for 1 MB.
string row_restriction = 2;
Type | Description |
ReadSession.TableReadOptions.Builder | This builder for chaining. |
clearSelectedFields()
public ReadSession.TableReadOptions.Builder clearSelectedFields()
Names of the fields in the table that should be read. If empty, all fields will be read. If the specified field is a nested field, all the sub-fields in the field will be selected. The output field order is unrelated to the order of fields in selected_fields.
repeated string selected_fields = 1;
Type | Description |
ReadSession.TableReadOptions.Builder | This builder for chaining. |
clone()
public ReadSession.TableReadOptions.Builder clone()
Type | Description |
ReadSession.TableReadOptions.Builder |
getArrowSerializationOptions()
public ArrowSerializationOptions getArrowSerializationOptions()
Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ArrowSerializationOptions | The arrowSerializationOptions. |
getArrowSerializationOptionsBuilder()
public ArrowSerializationOptions.Builder getArrowSerializationOptionsBuilder()
Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ArrowSerializationOptions.Builder |
getArrowSerializationOptionsOrBuilder()
public ArrowSerializationOptionsOrBuilder getArrowSerializationOptionsOrBuilder()
Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ArrowSerializationOptionsOrBuilder |
getDefaultInstanceForType()
public ReadSession.TableReadOptions getDefaultInstanceForType()
Type | Description |
ReadSession.TableReadOptions |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getOutputFormatSerializationOptionsCase()
public ReadSession.TableReadOptions.OutputFormatSerializationOptionsCase getOutputFormatSerializationOptionsCase()
Type | Description |
ReadSession.TableReadOptions.OutputFormatSerializationOptionsCase |
getRowRestriction()
public String getRowRestriction()
SQL text filtering statement, similar to a WHERE clause in a query. Aggregates are not supported. Examples: "int_field > 5" "date_field = CAST('2014-9-27' as DATE)" "nullable_field is not NULL" "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" "numeric_field BETWEEN 1.0 AND 5.0" Restricted to a maximum length for 1 MB.
string row_restriction = 2;
Type | Description |
String | The rowRestriction. |
getRowRestrictionBytes()
public ByteString getRowRestrictionBytes()
SQL text filtering statement, similar to a WHERE clause in a query. Aggregates are not supported. Examples: "int_field > 5" "date_field = CAST('2014-9-27' as DATE)" "nullable_field is not NULL" "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" "numeric_field BETWEEN 1.0 AND 5.0" Restricted to a maximum length for 1 MB.
string row_restriction = 2;
Type | Description |
ByteString | The bytes for rowRestriction. |
getSelectedFields(int index)
public String getSelectedFields(int index)
Names of the fields in the table that should be read. If empty, all fields will be read. If the specified field is a nested field, all the sub-fields in the field will be selected. The output field order is unrelated to the order of fields in selected_fields.
repeated string selected_fields = 1;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The selectedFields at the given index. |
getSelectedFieldsBytes(int index)
public ByteString getSelectedFieldsBytes(int index)
Names of the fields in the table that should be read. If empty, all fields will be read. If the specified field is a nested field, all the sub-fields in the field will be selected. The output field order is unrelated to the order of fields in selected_fields.
repeated string selected_fields = 1;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the selectedFields at the given index. |
getSelectedFieldsCount()
public int getSelectedFieldsCount()
Names of the fields in the table that should be read. If empty, all fields will be read. If the specified field is a nested field, all the sub-fields in the field will be selected. The output field order is unrelated to the order of fields in selected_fields.
repeated string selected_fields = 1;
Type | Description |
int | The count of selectedFields. |
getSelectedFieldsList()
public ProtocolStringList getSelectedFieldsList()
Names of the fields in the table that should be read. If empty, all fields will be read. If the specified field is a nested field, all the sub-fields in the field will be selected. The output field order is unrelated to the order of fields in selected_fields.
repeated string selected_fields = 1;
Type | Description |
ProtocolStringList | A list containing the selectedFields. |
hasArrowSerializationOptions()
public boolean hasArrowSerializationOptions()
Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
boolean | Whether the arrowSerializationOptions field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeArrowSerializationOptions(ArrowSerializationOptions value)
public ReadSession.TableReadOptions.Builder mergeArrowSerializationOptions(ArrowSerializationOptions value)
Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ArrowSerializationOptions |
Type | Description |
ReadSession.TableReadOptions.Builder |
mergeFrom(ReadSession.TableReadOptions other)
public ReadSession.TableReadOptions.Builder mergeFrom(ReadSession.TableReadOptions other)
Name | Description |
other | ReadSession.TableReadOptions |
Type | Description |
ReadSession.TableReadOptions.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ReadSession.TableReadOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ReadSession.TableReadOptions.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ReadSession.TableReadOptions.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ReadSession.TableReadOptions.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ReadSession.TableReadOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ReadSession.TableReadOptions.Builder |
setArrowSerializationOptions(ArrowSerializationOptions value)
public ReadSession.TableReadOptions.Builder setArrowSerializationOptions(ArrowSerializationOptions value)
Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ArrowSerializationOptions |
Type | Description |
ReadSession.TableReadOptions.Builder |
setArrowSerializationOptions(ArrowSerializationOptions.Builder builderForValue)
public ReadSession.TableReadOptions.Builder setArrowSerializationOptions(ArrowSerializationOptions.Builder builderForValue)
Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
builderForValue | ArrowSerializationOptions.Builder |
Type | Description |
ReadSession.TableReadOptions.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ReadSession.TableReadOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ReadSession.TableReadOptions.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ReadSession.TableReadOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ReadSession.TableReadOptions.Builder |
setRowRestriction(String value)
public ReadSession.TableReadOptions.Builder setRowRestriction(String value)
SQL text filtering statement, similar to a WHERE clause in a query. Aggregates are not supported. Examples: "int_field > 5" "date_field = CAST('2014-9-27' as DATE)" "nullable_field is not NULL" "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" "numeric_field BETWEEN 1.0 AND 5.0" Restricted to a maximum length for 1 MB.
string row_restriction = 2;
Name | Description |
value | String The rowRestriction to set. |
Type | Description |
ReadSession.TableReadOptions.Builder | This builder for chaining. |
setRowRestrictionBytes(ByteString value)
public ReadSession.TableReadOptions.Builder setRowRestrictionBytes(ByteString value)
SQL text filtering statement, similar to a WHERE clause in a query. Aggregates are not supported. Examples: "int_field > 5" "date_field = CAST('2014-9-27' as DATE)" "nullable_field is not NULL" "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" "numeric_field BETWEEN 1.0 AND 5.0" Restricted to a maximum length for 1 MB.
string row_restriction = 2;
Name | Description |
value | ByteString The bytes for rowRestriction to set. |
Type | Description |
ReadSession.TableReadOptions.Builder | This builder for chaining. |
setSelectedFields(int index, String value)
public ReadSession.TableReadOptions.Builder setSelectedFields(int index, String value)
Names of the fields in the table that should be read. If empty, all fields will be read. If the specified field is a nested field, all the sub-fields in the field will be selected. The output field order is unrelated to the order of fields in selected_fields.
repeated string selected_fields = 1;
Name | Description |
index | int The index to set the value at. |
value | String The selectedFields to set. |
Type | Description |
ReadSession.TableReadOptions.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ReadSession.TableReadOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ReadSession.TableReadOptions.Builder |