| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/cloud/bigquery/storage/v1alpha2/stream.proto |
| |
| package storage |
| |
| import ( |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| timestamp "github.com/golang/protobuf/ptypes/timestamp" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| type WriteStream_Type int32 |
| |
| const ( |
| // Unknown type. |
| WriteStream_TYPE_UNSPECIFIED WriteStream_Type = 0 |
| // Data will commit automatically and appear as soon as the write is |
| // acknowledged. |
| WriteStream_COMMITTED WriteStream_Type = 1 |
| // Data is invisible until the stream is committed. |
| WriteStream_PENDING WriteStream_Type = 2 |
| ) |
| |
| var WriteStream_Type_name = map[int32]string{ |
| 0: "TYPE_UNSPECIFIED", |
| 1: "COMMITTED", |
| 2: "PENDING", |
| } |
| |
| var WriteStream_Type_value = map[string]int32{ |
| "TYPE_UNSPECIFIED": 0, |
| "COMMITTED": 1, |
| "PENDING": 2, |
| } |
| |
| func (x WriteStream_Type) String() string { |
| return proto.EnumName(WriteStream_Type_name, int32(x)) |
| } |
| |
| func (WriteStream_Type) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_cfe5157f29fe5b3a, []int{0, 0} |
| } |
| |
| // Information about a single stream that gets data inside the storage system. |
| type WriteStream struct { |
| // Output only. Name of the stream, in the form |
| // `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}/streams/{stream_id}`. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| Type WriteStream_Type `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.bigquery.storage.v1alpha2.WriteStream_Type" json:"type,omitempty"` |
| // Output only. Create time of the stream. |
| CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` |
| // 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. |
| CommitTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=commit_time,json=commitTime,proto3" json:"commit_time,omitempty"` |
| // 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. |
| TableSchema *TableSchema `protobuf:"bytes,5,opt,name=table_schema,json=tableSchema,proto3" json:"table_schema,omitempty"` |
| // Id set by client to annotate its identity. |
| ExternalId string `protobuf:"bytes,6,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *WriteStream) Reset() { *m = WriteStream{} } |
| func (m *WriteStream) String() string { return proto.CompactTextString(m) } |
| func (*WriteStream) ProtoMessage() {} |
| func (*WriteStream) Descriptor() ([]byte, []int) { |
| return fileDescriptor_cfe5157f29fe5b3a, []int{0} |
| } |
| |
| func (m *WriteStream) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_WriteStream.Unmarshal(m, b) |
| } |
| func (m *WriteStream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_WriteStream.Marshal(b, m, deterministic) |
| } |
| func (m *WriteStream) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_WriteStream.Merge(m, src) |
| } |
| func (m *WriteStream) XXX_Size() int { |
| return xxx_messageInfo_WriteStream.Size(m) |
| } |
| func (m *WriteStream) XXX_DiscardUnknown() { |
| xxx_messageInfo_WriteStream.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_WriteStream proto.InternalMessageInfo |
| |
| func (m *WriteStream) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *WriteStream) GetType() WriteStream_Type { |
| if m != nil { |
| return m.Type |
| } |
| return WriteStream_TYPE_UNSPECIFIED |
| } |
| |
| func (m *WriteStream) GetCreateTime() *timestamp.Timestamp { |
| if m != nil { |
| return m.CreateTime |
| } |
| return nil |
| } |
| |
| func (m *WriteStream) GetCommitTime() *timestamp.Timestamp { |
| if m != nil { |
| return m.CommitTime |
| } |
| return nil |
| } |
| |
| func (m *WriteStream) GetTableSchema() *TableSchema { |
| if m != nil { |
| return m.TableSchema |
| } |
| return nil |
| } |
| |
| func (m *WriteStream) GetExternalId() string { |
| if m != nil { |
| return m.ExternalId |
| } |
| return "" |
| } |
| |
| func init() { |
| proto.RegisterEnum("google.cloud.bigquery.storage.v1alpha2.WriteStream_Type", WriteStream_Type_name, WriteStream_Type_value) |
| proto.RegisterType((*WriteStream)(nil), "google.cloud.bigquery.storage.v1alpha2.WriteStream") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/cloud/bigquery/storage/v1alpha2/stream.proto", fileDescriptor_cfe5157f29fe5b3a) |
| } |
| |
| var fileDescriptor_cfe5157f29fe5b3a = []byte{ |
| // 405 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6e, 0xd3, 0x30, |
| 0x1c, 0xc6, 0xc9, 0xda, 0x0d, 0xcd, 0x01, 0x54, 0x59, 0x48, 0x44, 0xbd, 0xac, 0xda, 0x01, 0x55, |
| 0x1c, 0x6c, 0x91, 0x5e, 0x26, 0x71, 0x81, 0xad, 0x01, 0xe5, 0xd0, 0x52, 0xda, 0x20, 0x04, 0x1c, |
| 0x22, 0x27, 0xf9, 0xcf, 0xb5, 0x14, 0xc7, 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