Class WriteStream (3.10.3) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.10.3keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  WriteStream   extends   GeneratedMessageV3   implements   WriteStreamOrBuilder  
   Information about a single stream that gets data inside the storage system.
 Protobuf type google.cloud.bigquery.storage.v1beta2.WriteStream
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  COMMIT_TIME_FIELD_NUMBER 
  
    
public   static   final   int   COMMIT_TIME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  CREATE_TIME_FIELD_NUMBER 
  
    
public   static   final   int   CREATE_TIME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  NAME_FIELD_NUMBER 
  
    
public   static   final   int   NAME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  TABLE_SCHEMA_FIELD_NUMBER 
  
    
public   static   final   int   TABLE_SCHEMA_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  TYPE_FIELD_NUMBER 
  
    
public   static   final   int   TYPE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   WriteStream   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   WriteStream . Builder   newBuilder ()  
  
  newBuilder(WriteStream prototype) 
  
    
public   static   WriteStream . Builder   newBuilder ( WriteStream   prototype )  
  
  
  
    
public   static   WriteStream   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   WriteStream   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   WriteStream   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   WriteStream   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   WriteStream   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   WriteStream   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   WriteStream   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   WriteStream   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   WriteStream   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   WriteStream   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   WriteStream   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   WriteStream   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<WriteStream>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getCommitTime() 
  
    
public   Timestamp   getCommitTime ()  
   Output only. Commit time of the stream.
 If a stream is of COMMITTED type, then it will have a commit_time same as
 create_time. If the stream is of PENDING type, commit_time being empty
 means it is not committed.
 .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Returns  
      
        Type Description  
      
        Timestamp The commitTime.
 
     
  
  getCommitTimeOrBuilder() 
  
    
public   TimestampOrBuilder   getCommitTimeOrBuilder ()  
   Output only. Commit time of the stream.
 If a stream is of COMMITTED type, then it will have a commit_time same as
 create_time. If the stream is of PENDING type, commit_time being empty
 means it is not committed.
 .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getCreateTime() 
  
    
public   Timestamp   getCreateTime ()  
   Output only. Create time of the stream. For the _default stream, this is the
 creation_time of the table.
 .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Returns  
      
        Type Description  
      
        Timestamp The createTime.
 
     
  
  getCreateTimeOrBuilder() 
  
    
public   TimestampOrBuilder   getCreateTimeOrBuilder ()  
   Output only. Create time of the stream. For the _default stream, this is the
 creation_time of the table.
 .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getDefaultInstanceForType() 
  
    
public   WriteStream   getDefaultInstanceForType ()  
  
  getName() 
  
   Output only. Name of the stream, in the form
 projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}.
 string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Returns  
      
        Type Description  
      
        String The name.
 
     
  
  getNameBytes() 
  
    
public   ByteString   getNameBytes ()  
   Output only. Name of the stream, in the form
 projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}.
 string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for name.
 
     
  
  getParserForType() 
  
    
public   Parser<WriteStream>   getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getTableSchema() 
  
    
public   TableSchema   getTableSchema ()  
   Output only. The schema of the destination table. It is only returned in
 CreateWriteStream response. Caller should generate data that's
 compatible with this schema to send in initial AppendRowsRequest.
 The table schema could go out of date during the life time of the stream.
 
 .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getTableSchemaOrBuilder() 
  
    
public   TableSchemaOrBuilder   getTableSchemaOrBuilder ()  
   Output only. The schema of the destination table. It is only returned in
 CreateWriteStream response. Caller should generate data that's
 compatible with this schema to send in initial AppendRowsRequest.
 The table schema could go out of date during the life time of the stream.
 
 .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getType() 
  
    
public   WriteStream . Type   getType ()  
   Immutable. Type of the stream.
 
 .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];
 
getTypeValue() 
  
    
public   int   getTypeValue ()  
   Immutable. Type of the stream.
 
 .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];
 
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for type.
 
     
  
  hasCommitTime() 
  
    
public   boolean   hasCommitTime ()  
   Output only. Commit time of the stream.
 If a stream is of COMMITTED type, then it will have a commit_time same as
 create_time. If the stream is of PENDING type, commit_time being empty
 means it is not committed.
 .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the commitTime field is set.
 
     
  
  hasCreateTime() 
  
    
public   boolean   hasCreateTime ()  
   Output only. Create time of the stream. For the _default stream, this is the
 creation_time of the table.
 .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the createTime field is set.
 
     
  
  hasTableSchema() 
  
    
public   boolean   hasTableSchema ()  
   Output only. The schema of the destination table. It is only returned in
 CreateWriteStream response. Caller should generate data that's
 compatible with this schema to send in initial AppendRowsRequest.
 The table schema could go out of date during the life time of the stream.
 
 .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the tableSchema field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   WriteStream . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   WriteStream . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   WriteStream . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]