public static final class ReadOptions.TableReadOptions extends com.google.protobuf.GeneratedMessageV3 implements ReadOptions.TableReadOptionsOrBuilder
Options dictating how we read a table.Protobuf type
google.cloud.bigquery.storage.v1beta1.TableReadOptions| Modifier and Type | Class and Description |
|---|---|
static class |
ReadOptions.TableReadOptions.Builder
Options dictating how we read a table.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ROW_RESTRICTION_FIELD_NUMBER |
static int |
SELECTED_FIELDS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static ReadOptions.TableReadOptions |
getDefaultInstance() |
ReadOptions.TableReadOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<ReadOptions.TableReadOptions> |
getParserForType() |
String |
getRowRestriction()
Optional.
|
com.google.protobuf.ByteString |
getRowRestrictionBytes()
Optional.
|
String |
getSelectedFields(int index)
Optional.
|
com.google.protobuf.ByteString |
getSelectedFieldsBytes(int index)
Optional.
|
int |
getSelectedFieldsCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getSelectedFieldsList()
Optional.
|
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ReadOptions.TableReadOptions.Builder |
newBuilder() |
static ReadOptions.TableReadOptions.Builder |
newBuilder(ReadOptions.TableReadOptions prototype) |
ReadOptions.TableReadOptions.Builder |
newBuilderForType() |
protected ReadOptions.TableReadOptions.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ReadOptions.TableReadOptions |
parseDelimitedFrom(InputStream input) |
static ReadOptions.TableReadOptions |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ReadOptions.TableReadOptions |
parseFrom(byte[] data) |
static ReadOptions.TableReadOptions |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ReadOptions.TableReadOptions |
parseFrom(ByteBuffer data) |
static ReadOptions.TableReadOptions |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ReadOptions.TableReadOptions |
parseFrom(com.google.protobuf.ByteString data) |
static ReadOptions.TableReadOptions |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ReadOptions.TableReadOptions |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ReadOptions.TableReadOptions |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ReadOptions.TableReadOptions |
parseFrom(InputStream input) |
static ReadOptions.TableReadOptions |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ReadOptions.TableReadOptions> |
parser() |
ReadOptions.TableReadOptions.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SELECTED_FIELDS_FIELD_NUMBER
public static final int ROW_RESTRICTION_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public com.google.protobuf.ProtocolStringList getSelectedFieldsList()
Optional. The names of the fields in the table to be returned. If no
field names are specified, then all fields in the table are returned.
Nested fields -- the child elements of a STRUCT field -- can be selected
individually using their fully-qualified names, and will be returned as
record fields containing only the selected nested fields. If a STRUCT
field is specified in the selected fields list, all of the child elements
will be returned.
As an example, consider a table with the following schema:
{
"name": "struct_field",
"type": "RECORD",
"mode": "NULLABLE",
"fields": [
{
"name": "string_field1",
"type": "STRING",
. "mode": "NULLABLE"
},
{
"name": "string_field2",
"type": "STRING",
"mode": "NULLABLE"
}
]
}
Specifying "struct_field" in the selected fields list will result in a
read session schema with the following logical structure:
struct_field {
string_field1
string_field2
}
Specifying "struct_field.string_field1" in the selected fields list will
result in a read session schema with the following logical structure:
struct_field {
string_field1
}
The order of the fields in the read session schema is derived from the
table schema and does not correspond to the order in which the fields are
specified in this list.
repeated string selected_fields = 1;getSelectedFieldsList in interface ReadOptions.TableReadOptionsOrBuilderpublic int getSelectedFieldsCount()
Optional. The names of the fields in the table to be returned. If no
field names are specified, then all fields in the table are returned.
Nested fields -- the child elements of a STRUCT field -- can be selected
individually using their fully-qualified names, and will be returned as
record fields containing only the selected nested fields. If a STRUCT
field is specified in the selected fields list, all of the child elements
will be returned.
As an example, consider a table with the following schema:
{
"name": "struct_field",
"type": "RECORD",
"mode": "NULLABLE",
"fields": [
{
"name": "string_field1",
"type": "STRING",
. "mode": "NULLABLE"
},
{
"name": "string_field2",
"type": "STRING",
"mode": "NULLABLE"
}
]
}
Specifying "struct_field" in the selected fields list will result in a
read session schema with the following logical structure:
struct_field {
string_field1
string_field2
}
Specifying "struct_field.string_field1" in the selected fields list will
result in a read session schema with the following logical structure:
struct_field {
string_field1
}
The order of the fields in the read session schema is derived from the
table schema and does not correspond to the order in which the fields are
specified in this list.
repeated string selected_fields = 1;getSelectedFieldsCount in interface ReadOptions.TableReadOptionsOrBuilderpublic String getSelectedFields(int index)
Optional. The names of the fields in the table to be returned. If no
field names are specified, then all fields in the table are returned.
Nested fields -- the child elements of a STRUCT field -- can be selected
individually using their fully-qualified names, and will be returned as
record fields containing only the selected nested fields. If a STRUCT
field is specified in the selected fields list, all of the child elements
will be returned.
As an example, consider a table with the following schema:
{
"name": "struct_field",
"type": "RECORD",
"mode": "NULLABLE",
"fields": [
{
"name": "string_field1",
"type": "STRING",
. "mode": "NULLABLE"
},
{
"name": "string_field2",
"type": "STRING",
"mode": "NULLABLE"
}
]
}
Specifying "struct_field" in the selected fields list will result in a
read session schema with the following logical structure:
struct_field {
string_field1
string_field2
}
Specifying "struct_field.string_field1" in the selected fields list will
result in a read session schema with the following logical structure:
struct_field {
string_field1
}
The order of the fields in the read session schema is derived from the
table schema and does not correspond to the order in which the fields are
specified in this list.
repeated string selected_fields = 1;getSelectedFields in interface ReadOptions.TableReadOptionsOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getSelectedFieldsBytes(int index)
Optional. The names of the fields in the table to be returned. If no
field names are specified, then all fields in the table are returned.
Nested fields -- the child elements of a STRUCT field -- can be selected
individually using their fully-qualified names, and will be returned as
record fields containing only the selected nested fields. If a STRUCT
field is specified in the selected fields list, all of the child elements
will be returned.
As an example, consider a table with the following schema:
{
"name": "struct_field",
"type": "RECORD",
"mode": "NULLABLE",
"fields": [
{
"name": "string_field1",
"type": "STRING",
. "mode": "NULLABLE"
},
{
"name": "string_field2",
"type": "STRING",
"mode": "NULLABLE"
}
]
}
Specifying "struct_field" in the selected fields list will result in a
read session schema with the following logical structure:
struct_field {
string_field1
string_field2
}
Specifying "struct_field.string_field1" in the selected fields list will
result in a read session schema with the following logical structure:
struct_field {
string_field1
}
The order of the fields in the read session schema is derived from the
table schema and does not correspond to the order in which the fields are
specified in this list.
repeated string selected_fields = 1;getSelectedFieldsBytes in interface ReadOptions.TableReadOptionsOrBuilderindex - The index of the value to return.public String getRowRestriction()
Optional. SQL text filtering statement, similar to a WHERE clause in
a SQL 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;getRowRestriction in interface ReadOptions.TableReadOptionsOrBuilderpublic com.google.protobuf.ByteString getRowRestrictionBytes()
Optional. SQL text filtering statement, similar to a WHERE clause in
a SQL 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;getRowRestrictionBytes in interface ReadOptions.TableReadOptionsOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ReadOptions.TableReadOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ReadOptions.TableReadOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ReadOptions.TableReadOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ReadOptions.TableReadOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ReadOptions.TableReadOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ReadOptions.TableReadOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ReadOptions.TableReadOptions parseFrom(InputStream input) throws IOException
IOExceptionpublic static ReadOptions.TableReadOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ReadOptions.TableReadOptions parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ReadOptions.TableReadOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ReadOptions.TableReadOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ReadOptions.TableReadOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ReadOptions.TableReadOptions.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ReadOptions.TableReadOptions.Builder newBuilder()
public static ReadOptions.TableReadOptions.Builder newBuilder(ReadOptions.TableReadOptions prototype)
public ReadOptions.TableReadOptions.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ReadOptions.TableReadOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ReadOptions.TableReadOptions getDefaultInstance()
public static com.google.protobuf.Parser<ReadOptions.TableReadOptions> parser()
public com.google.protobuf.Parser<ReadOptions.TableReadOptions> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ReadOptions.TableReadOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.