Class Storage.ReadSession

  • All Implemented Interfaces:
    Storage.ReadSessionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    Storage

    public static final class Storage.ReadSession
    extends com.google.protobuf.GeneratedMessageV3
    implements Storage.ReadSessionOrBuilder
     Information returned from a `CreateReadSession` request.
     
    Protobuf type google.cloud.bigquery.storage.v1beta1.ReadSession
    See Also:
    Serialized Form
    • 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
      • getName

        public String getName()
         Unique identifier for the session, in the form
         `projects/{project_id}/locations/{location}/sessions/{session_id}`.
         
        string name = 1;
        Specified by:
        getName in interface Storage.ReadSessionOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Unique identifier for the session, in the form
         `projects/{project_id}/locations/{location}/sessions/{session_id}`.
         
        string name = 1;
        Specified by:
        getNameBytes in interface Storage.ReadSessionOrBuilder
        Returns:
        The bytes for name.
      • hasExpireTime

        public boolean hasExpireTime()
         Time at which the session becomes invalid. After this time, subsequent
         requests to read this Session will return errors.
         
        .google.protobuf.Timestamp expire_time = 2;
        Specified by:
        hasExpireTime in interface Storage.ReadSessionOrBuilder
        Returns:
        Whether the expireTime field is set.
      • getExpireTime

        public com.google.protobuf.Timestamp getExpireTime()
         Time at which the session becomes invalid. After this time, subsequent
         requests to read this Session will return errors.
         
        .google.protobuf.Timestamp expire_time = 2;
        Specified by:
        getExpireTime in interface Storage.ReadSessionOrBuilder
        Returns:
        The expireTime.
      • getExpireTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
         Time at which the session becomes invalid. After this time, subsequent
         requests to read this Session will return errors.
         
        .google.protobuf.Timestamp expire_time = 2;
        Specified by:
        getExpireTimeOrBuilder in interface Storage.ReadSessionOrBuilder
      • hasAvroSchema

        public boolean hasAvroSchema()
         Avro schema.
         
        .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5;
        Specified by:
        hasAvroSchema in interface Storage.ReadSessionOrBuilder
        Returns:
        Whether the avroSchema field is set.
      • hasArrowSchema

        public boolean hasArrowSchema()
         Arrow schema.
         
        .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6;
        Specified by:
        hasArrowSchema in interface Storage.ReadSessionOrBuilder
        Returns:
        Whether the arrowSchema field is set.
      • getStreamsCount

        public int getStreamsCount()
         Streams associated with this session.
         
        repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4;
        Specified by:
        getStreamsCount in interface Storage.ReadSessionOrBuilder
      • hasTableReference

        public boolean hasTableReference()
         Table that this ReadSession is reading from.
         
        .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7;
        Specified by:
        hasTableReference in interface Storage.ReadSessionOrBuilder
        Returns:
        Whether the tableReference field is set.
      • hasTableModifiers

        public boolean hasTableModifiers()
         Any modifiers which are applied when reading from the specified table.
         
        .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8;
        Specified by:
        hasTableModifiers in interface Storage.ReadSessionOrBuilder
        Returns:
        Whether the tableModifiers field is set.
      • getShardingStrategyValue

        public int getShardingStrategyValue()
         The strategy to use for distributing data among the streams.
         
        .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9;
        Specified by:
        getShardingStrategyValue in interface Storage.ReadSessionOrBuilder
        Returns:
        The enum numeric value on the wire for shardingStrategy.
      • 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 Storage.ReadSession parseFrom​(ByteBuffer data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

        public static Storage.ReadSession parseFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

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

        public com.google.protobuf.Parser<Storage.ReadSession> 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 Storage.ReadSession getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder