blob: 3b55266509908796f2dd7ff0be72b751a65d747e [file] [log] [blame]
// 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
// Data is only visible up to the offset to which it was flushed.
WriteStream_BUFFERED WriteStream_Type = 3
)
var WriteStream_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "COMMITTED",
2: "PENDING",
3: "BUFFERED",
}
var WriteStream_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"COMMITTED": 1,
"PENDING": 2,
"BUFFERED": 3,
}
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}/datasets/{dataset}/tables/{table}/streams/{stream}`.
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{
// 504 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x4f, 0x6f, 0xd3, 0x30,
0x18, 0xc6, 0xc9, 0xda, 0x0d, 0xe6, 0x0c, 0x54, 0x59, 0x48, 0x94, 0x5e, 0x56, 0x4d, 0x08, 0x55,
0x3b, 0xd8, 0xa2, 0xe5, 0x80, 0xe0, 0x42, 0xbb, 0xa6, 0xa8, 0x87, 0x96, 0xd2, 0x66, 0x42, 0xfc,
0x91, 0x2a, 0x37, 0x79, 0x97, 0x06, 0x25, 0x75, 0xb0, 0xdd, 0x8a, 0xaa, 0xea, 0x27, 0xe3, 0x9b,
0x70, 0xe2, 0xbc, 0x4f, 0x81, 0x62, 0xc7, 0x5a, 0x6f, 0x8b, 0x38, 0xc5, 0x79, 0xe2, 0xe7, 0xe7,
0xe7, 0x7d, 0xfd, 0x06, 0x75, 0x22, 0xce, 0xa3, 0x04, 0x68, 0x90, 0xf0, 0x75, 0x48, 0x17, 0x71,
0xf4, 0x73, 0x0d, 0x62, 0x4b, 0xa5, 0xe2, 0x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