blob: 5d97f8db432e7df2e234a72b3ac018bd455f0a3c [file]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/luci/luci-go/logdog/api/config/svcconfig/transport.proto
package svcconfig
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// Transport is the transport configuration.
type Transport struct {
// Type is the transport configuration that is being used.
//
// Types that are valid to be assigned to Type:
// *Transport_Pubsub
Type isTransport_Type `protobuf_oneof:"Type"`
}
func (m *Transport) Reset() { *m = Transport{} }
func (m *Transport) String() string { return proto.CompactTextString(m) }
func (*Transport) ProtoMessage() {}
func (*Transport) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
type isTransport_Type interface {
isTransport_Type()
}
type Transport_Pubsub struct {
Pubsub *Transport_PubSub `protobuf:"bytes,1,opt,name=pubsub,oneof"`
}
func (*Transport_Pubsub) isTransport_Type() {}
func (m *Transport) GetType() isTransport_Type {
if m != nil {
return m.Type
}
return nil
}
func (m *Transport) GetPubsub() *Transport_PubSub {
if x, ok := m.GetType().(*Transport_Pubsub); ok {
return x.Pubsub
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Transport) 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 _Transport_OneofMarshaler, _Transport_OneofUnmarshaler, _Transport_OneofSizer, []interface{}{
(*Transport_Pubsub)(nil),
}
}
func _Transport_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Transport)
// Type
switch x := m.Type.(type) {
case *Transport_Pubsub:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Pubsub); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Transport.Type has unexpected type %T", x)
}
return nil
}
func _Transport_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Transport)
switch tag {
case 1: // Type.pubsub
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Transport_PubSub)
err := b.DecodeMessage(msg)
m.Type = &Transport_Pubsub{msg}
return true, err
default:
return false, nil
}
}
func _Transport_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Transport)
// Type
switch x := m.Type.(type) {
case *Transport_Pubsub:
s := proto.Size(x.Pubsub)
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
}
// PubSub is a transport configuration for Google Cloud Pub/Sub.
type Transport_PubSub struct {
// The name of the authentication group for administrators.
Project string `protobuf:"bytes,1,opt,name=project" json:"project,omitempty"`
// The name of the authentication group for administrators.
Topic string `protobuf:"bytes,2,opt,name=topic" json:"topic,omitempty"`
// The name of the authentication group for administrators.
Subscription string `protobuf:"bytes,3,opt,name=subscription" json:"subscription,omitempty"`
}
func (m *Transport_PubSub) Reset() { *m = Transport_PubSub{} }
func (m *Transport_PubSub) String() string { return proto.CompactTextString(m) }
func (*Transport_PubSub) ProtoMessage() {}
func (*Transport_PubSub) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0, 0} }
func (m *Transport_PubSub) GetProject() string {
if m != nil {
return m.Project
}
return ""
}
func (m *Transport_PubSub) GetTopic() string {
if m != nil {
return m.Topic
}
return ""
}
func (m *Transport_PubSub) GetSubscription() string {
if m != nil {
return m.Subscription
}
return ""
}
func init() {
proto.RegisterType((*Transport)(nil), "svcconfig.Transport")
proto.RegisterType((*Transport_PubSub)(nil), "svcconfig.Transport.PubSub")
}
func init() {
proto.RegisterFile("github.com/luci/luci-go/logdog/api/config/svcconfig/transport.proto", fileDescriptor4)
}
var fileDescriptor4 = []byte{
// 205 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,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