Class ReadSession.TableReadOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ReadSession.TableReadOptions.Builder>
com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder
- All Implemented Interfaces:
ReadSession.TableReadOptionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReadSession.TableReadOptions
public static final class ReadSession.TableReadOptions.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ReadSession.TableReadOptions.Builder>
implements ReadSession.TableReadOptionsOrBuilder
Options dictating how we read a table.Protobuf type
google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions-
Method Summary
Modifier and TypeMethodDescriptionaddAllSelectedFields(Iterable<String> values) Names of the fields in the table that should be read.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSelectedFields(String value) Names of the fields in the table that should be read.addSelectedFieldsBytes(com.google.protobuf.ByteString value) Names of the fields in the table that should be read.build()clear()Optional.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) SQL text filtering statement, similar to a WHERE clause in a query.Names of the fields in the table that should be read.clone()Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSQL text filtering statement, similar to a WHERE clause in a query.com.google.protobuf.ByteStringSQL text filtering statement, similar to a WHERE clause in a query.getSelectedFields(int index) Names of the fields in the table that should be read.com.google.protobuf.ByteStringgetSelectedFieldsBytes(int index) Names of the fields in the table that should be read.intNames of the fields in the table that should be read.com.google.protobuf.ProtocolStringListNames of the fields in the table that should be read.booleanOptional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanOptional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Optional.setArrowSerializationOptions(ArrowSerializationOptions.Builder builderForValue) Optional.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRowRestriction(String value) SQL text filtering statement, similar to a WHERE clause in a query.setRowRestrictionBytes(com.google.protobuf.ByteString value) SQL text filtering statement, similar to a WHERE clause in a query.setSelectedFields(int index, String value) Names of the fields in the table that should be read.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ReadSession.TableReadOptions.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadSession.TableReadOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ReadSession.TableReadOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ReadSession.TableReadOptions.Builder>
-
setField
public ReadSession.TableReadOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadSession.TableReadOptions.Builder>
-
clearField
public ReadSession.TableReadOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadSession.TableReadOptions.Builder>
-
clearOneof
public ReadSession.TableReadOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadSession.TableReadOptions.Builder>
-
setRepeatedField
public ReadSession.TableReadOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadSession.TableReadOptions.Builder>
-
addRepeatedField
public ReadSession.TableReadOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadSession.TableReadOptions.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReadSession.TableReadOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadSession.TableReadOptions.Builder>
-
mergeFrom
public ReadSession.TableReadOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReadSession.TableReadOptions.Builder>- Throws:
IOException
-
getSelectedFieldsList
public com.google.protobuf.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;- Specified by:
getSelectedFieldsListin interfaceReadSession.TableReadOptionsOrBuilder- Returns:
- A list containing the selectedFields.
-
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;- Specified by:
getSelectedFieldsCountin interfaceReadSession.TableReadOptionsOrBuilder- Returns:
- The count of selectedFields.
-
getSelectedFields
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;- Specified by:
getSelectedFieldsin interfaceReadSession.TableReadOptionsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The selectedFields at the given index.
-
getSelectedFieldsBytes
public com.google.protobuf.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;- Specified by:
getSelectedFieldsBytesin interfaceReadSession.TableReadOptionsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the selectedFields at the given index.
-
setSelectedFields
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;- Parameters:
index- The index to set the value at.value- The selectedFields to set.- Returns:
- This builder for chaining.
-
addSelectedFields
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;- Parameters:
value- The selectedFields to add.- Returns:
- This builder for chaining.
-
addAllSelectedFields
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;- Parameters:
values- The selectedFields to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
addSelectedFieldsBytes
public ReadSession.TableReadOptions.Builder addSelectedFieldsBytes(com.google.protobuf.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;- Parameters:
value- The bytes of the selectedFields to add.- Returns:
- This builder for chaining.
-
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;- Specified by:
getRowRestrictionin interfaceReadSession.TableReadOptionsOrBuilder- Returns:
- The rowRestriction.
-
getRowRestrictionBytes
public com.google.protobuf.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;- Specified by:
getRowRestrictionBytesin interfaceReadSession.TableReadOptionsOrBuilder- Returns:
- The bytes for rowRestriction.
-
setRowRestriction
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;- Parameters:
value- The rowRestriction to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setRowRestrictionBytes
public ReadSession.TableReadOptions.Builder setRowRestrictionBytes(com.google.protobuf.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;- Parameters:
value- The bytes for rowRestriction to set.- Returns:
- This builder for chaining.
-
hasArrowSerializationOptions
public boolean hasArrowSerializationOptions()Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasArrowSerializationOptionsin interfaceReadSession.TableReadOptionsOrBuilder- Returns:
- Whether the arrowSerializationOptions field is set.
-
getArrowSerializationOptions
Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArrowSerializationOptionsin interfaceReadSession.TableReadOptionsOrBuilder- Returns:
- The arrowSerializationOptions.
-
setArrowSerializationOptions
public ReadSession.TableReadOptions.Builder setArrowSerializationOptions(ArrowSerializationOptions value) Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setArrowSerializationOptions
public ReadSession.TableReadOptions.Builder setArrowSerializationOptions(ArrowSerializationOptions.Builder builderForValue) Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; -
mergeArrowSerializationOptions
public ReadSession.TableReadOptions.Builder mergeArrowSerializationOptions(ArrowSerializationOptions value) Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearArrowSerializationOptions
Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getArrowSerializationOptionsBuilder
Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getArrowSerializationOptionsOrBuilder
Optional. Options specific to the Apache Arrow output format.
.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArrowSerializationOptionsOrBuilderin interfaceReadSession.TableReadOptionsOrBuilder
-
setUnknownFields
public final ReadSession.TableReadOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadSession.TableReadOptions.Builder>
-
mergeUnknownFields
public final ReadSession.TableReadOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadSession.TableReadOptions.Builder>
-