Class ReadSession.TableReadOptions

    • Field Detail

      • SELECTED_FIELDS_FIELD_NUMBER

        public static final int SELECTED_FIELDS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ROW_RESTRICTION_FIELD_NUMBER

        public static final int ROW_RESTRICTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ARROW_SERIALIZATION_OPTIONS_FIELD_NUMBER

        public static final int ARROW_SERIALIZATION_OPTIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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:
        getSelectedFieldsList in interface ReadSession.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:
        getSelectedFieldsCount in interface ReadSession.TableReadOptionsOrBuilder
        Returns:
        The count of selectedFields.
      • getSelectedFields

        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;
        Specified by:
        getSelectedFields in interface ReadSession.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:
        getSelectedFieldsBytes in interface ReadSession.TableReadOptionsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the selectedFields at the given index.
      • 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;
        Specified by:
        getRowRestriction in interface ReadSession.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:
        getRowRestrictionBytes in interface ReadSession.TableReadOptionsOrBuilder
        Returns:
        The bytes for rowRestriction.
      • 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:
        hasArrowSerializationOptions in interface ReadSession.TableReadOptionsOrBuilder
        Returns:
        Whether the arrowSerializationOptions field is set.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ReadSession.TableReadOptions parseFrom​(ByteBuffer data)
                                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReadSession.TableReadOptions parseFrom​(ByteBuffer data,
                                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReadSession.TableReadOptions parseFrom​(com.google.protobuf.ByteString data)
                                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReadSession.TableReadOptions parseFrom​(com.google.protobuf.ByteString data,
                                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReadSession.TableReadOptions parseFrom​(byte[] data)
                                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReadSession.TableReadOptions parseFrom​(byte[] data,
                                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public ReadSession.TableReadOptions.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ReadSession.TableReadOptions.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ReadSession.TableReadOptions.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ReadSession.TableReadOptions> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ReadSession.TableReadOptions getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder