| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: github.com/luci/luci-go/logdog/api/config/svcconfig/storage.proto |
| |
| package svcconfig |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| import google_protobuf "github.com/golang/protobuf/ptypes/duration" |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // Storage is the in-transit storage configuration. |
| type Storage struct { |
| // Type is the transport configuration that is being used. |
| // |
| // Types that are valid to be assigned to Type: |
| // *Storage_Bigtable |
| Type isStorage_Type `protobuf_oneof:"Type"` |
| // The maximum lifetime of a log's intermediate storage entries. The Storage |
| // instance is free to begin deleting log entries if they are older than this. |
| // |
| // It is recommended that this be set to 4*[terminal archival threshold], |
| // where the terminal archival threshold is the amount of time that the |
| // Coordinator will wait on a log stream that has not been terminated before |
| // constructing an archive. |
| // |
| // Waiting at least the archival threshold ensures that the log entries are |
| // available for streams that expire. Waiting longer than the threshold is |
| // good because a user may be streaming logs from intermediate storage as they |
| // become archived. Waiting a *lot* longer is useful to prevent data loss in |
| // the event of issues with the archival process. |
| MaxLogAge *google_protobuf.Duration `protobuf:"bytes,2,opt,name=max_log_age,json=maxLogAge" json:"max_log_age,omitempty"` |
| } |
| |
| func (m *Storage) Reset() { *m = Storage{} } |
| func (m *Storage) String() string { return proto.CompactTextString(m) } |
| func (*Storage) ProtoMessage() {} |
| func (*Storage) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} } |
| |
| type isStorage_Type interface { |
| isStorage_Type() |
| } |
| |
| type Storage_Bigtable struct { |
| Bigtable *Storage_BigTable `protobuf:"bytes,1,opt,name=bigtable,oneof"` |
| } |
| |
| func (*Storage_Bigtable) isStorage_Type() {} |
| |
| func (m *Storage) GetType() isStorage_Type { |
| if m != nil { |
| return m.Type |
| } |
| return nil |
| } |
| |
| func (m *Storage) GetBigtable() *Storage_BigTable { |
| if x, ok := m.GetType().(*Storage_Bigtable); ok { |
| return x.Bigtable |
| } |
| return nil |
| } |
| |
| func (m *Storage) GetMaxLogAge() *google_protobuf.Duration { |
| if m != nil { |
| return m.MaxLogAge |
| } |
| return nil |
| } |
| |
| // XXX_OneofFuncs is for the internal use of the proto package. |
| func (*Storage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { |
| return _Storage_OneofMarshaler, _Storage_OneofUnmarshaler, _Storage_OneofSizer, []interface{}{ |
| (*Storage_Bigtable)(nil), |
| } |
| } |
| |
| func _Storage_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
| m := msg.(*Storage) |
| // Type |
| switch x := m.Type.(type) { |
| case *Storage_Bigtable: |
| b.EncodeVarint(1<<3 | proto.WireBytes) |
| if err := b.EncodeMessage(x.Bigtable); err != nil { |
| return err |
| } |
| case nil: |
| default: |
| return fmt.Errorf("Storage.Type has unexpected type %T", x) |
| } |
| return nil |
| } |
| |
| func _Storage_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
| m := msg.(*Storage) |
| switch tag { |
| case 1: // Type.bigtable |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| msg := new(Storage_BigTable) |
| err := b.DecodeMessage(msg) |
| m.Type = &Storage_Bigtable{msg} |
| return true, err |
| default: |
| return false, nil |
| } |
| } |
| |
| func _Storage_OneofSizer(msg proto.Message) (n int) { |
| m := msg.(*Storage) |
| // Type |
| switch x := m.Type.(type) { |
| case *Storage_Bigtable: |
| s := proto.Size(x.Bigtable) |
| n += proto.SizeVarint(1<<3 | proto.WireBytes) |
| n += proto.SizeVarint(uint64(s)) |
| n += s |
| case nil: |
| default: |
| panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) |
| } |
| return n |
| } |
| |
| // BigTable is the set of BigTable configuration parameters. |
| type Storage_BigTable struct { |
| // The name of the BigTable instance project. |
| Project string `protobuf:"bytes,1,opt,name=project" json:"project,omitempty"` |
| // The name of the BigTable instance. |
| Instance string `protobuf:"bytes,2,opt,name=instance" json:"instance,omitempty"` |
| // The name of the BigTable instance's log table. |
| LogTableName string `protobuf:"bytes,3,opt,name=log_table_name,json=logTableName" json:"log_table_name,omitempty"` |
| } |
| |
| func (m *Storage_BigTable) Reset() { *m = Storage_BigTable{} } |
| func (m *Storage_BigTable) String() string { return proto.CompactTextString(m) } |
| func (*Storage_BigTable) ProtoMessage() {} |
| func (*Storage_BigTable) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} } |
| |
| func (m *Storage_BigTable) GetProject() string { |
| if m != nil { |
| return m.Project |
| } |
| return "" |
| } |
| |
| func (m *Storage_BigTable) GetInstance() string { |
| if m != nil { |
| return m.Instance |
| } |
| return "" |
| } |
| |
| func (m *Storage_BigTable) GetLogTableName() string { |
| if m != nil { |
| return m.LogTableName |
| } |
| return "" |
| } |
| |
| func init() { |
| proto.RegisterType((*Storage)(nil), "svcconfig.Storage") |
| proto.RegisterType((*Storage_BigTable)(nil), "svcconfig.Storage.BigTable") |
| } |
| |
| func init() { |
| proto.RegisterFile("github.com/luci/luci-go/logdog/api/config/svcconfig/storage.proto", fileDescriptor3) |
| } |
| |
| var fileDescriptor3 = []byte{ |
| // 261 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x8e, 0xb1, 0x4e, 0xc3, 0x30, |
| 0x10, 0x86, 0x09, 0xa0, 0x36, 0x71, 0x11, 0x83, 0xa7, 0x10, 0x24, 0x84, 0x10, 0x03, 0x0b, 0xb6, |
| 0x04, 0x53, 0xc7, 0x56, 0x0c, 0x0c, 0x88, 0x21, 0x74, 0x8f, 0x2e, 0xae, 0x73, 0x18, 0x39, 0xbe, |
| 0x28, 0x75, 0x50, 0x79, 0x6a, 0x5e, 0xa1, 0xaa, 0xdd, 0x64,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