Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1805)

Unified Diff: common/tsmon/ts_mon_proto/acquisition_network_device.pb.go

Issue 1857643003: Revert of Migrate tsmon protos to proto3 (Closed) Base URL: git@github.com:luci/luci-go.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: common/tsmon/ts_mon_proto/acquisition_network_device.pb.go
diff --git a/common/tsmon/ts_mon_proto/acquisition_network_device.pb.go b/common/tsmon/ts_mon_proto/acquisition_network_device.pb.go
index 3d93876071b513efe8ca29ffbd31d96256e13711..78be7844b460fec7de3b8b6e4ea204eb58a147bd 100644
--- a/common/tsmon/ts_mon_proto/acquisition_network_device.pb.go
+++ b/common/tsmon/ts_mon_proto/acquisition_network_device.pb.go
@@ -29,15 +29,116 @@
var _ = fmt.Errorf
var _ = math.Inf
-type NetworkDevice struct {
- Alertable bool `protobuf:"varint,101,opt,name=alertable" json:"alertable,omitempty"`
- Realm string `protobuf:"bytes,102,opt,name=realm" json:"realm,omitempty"`
- Metro string `protobuf:"bytes,104,opt,name=metro" json:"metro,omitempty"`
- Role string `protobuf:"bytes,105,opt,name=role" json:"role,omitempty"`
- Hostname string `protobuf:"bytes,106,opt,name=hostname" json:"hostname,omitempty"`
- Hostgroup string `protobuf:"bytes,108,opt,name=hostgroup" json:"hostgroup,omitempty"`
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the proto package it is being compiled against.
+const _ = proto.ProtoPackageIsVersion1
+
+type NetworkDevice_TypeId int32
+
+const (
+ NetworkDevice_MESSAGE_TYPE_ID NetworkDevice_TypeId = 34049749
+)
+
+var NetworkDevice_TypeId_name = map[int32]string{
+ 34049749: "MESSAGE_TYPE_ID",
+}
+var NetworkDevice_TypeId_value = map[string]int32{
+ "MESSAGE_TYPE_ID": 34049749,
}
-func (m *NetworkDevice) Reset() { *m = NetworkDevice{} }
-func (m *NetworkDevice) String() string { return proto.CompactTextString(m) }
-func (*NetworkDevice) ProtoMessage() {}
+func (x NetworkDevice_TypeId) Enum() *NetworkDevice_TypeId {
+ p := new(NetworkDevice_TypeId)
+ *p = x
+ return p
+}
+func (x NetworkDevice_TypeId) String() string {
+ return proto.EnumName(NetworkDevice_TypeId_name, int32(x))
+}
+func (x *NetworkDevice_TypeId) UnmarshalJSON(data []byte) error {
+ value, err := proto.UnmarshalJSONEnum(NetworkDevice_TypeId_value, data, "NetworkDevice_TypeId")
+ if err != nil {
+ return err
+ }
+ *x = NetworkDevice_TypeId(value)
+ return nil
+}
+func (NetworkDevice_TypeId) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
+
+type NetworkDevice struct {
+ Alertable *bool `protobuf:"varint,101,opt,name=alertable" json:"alertable,omitempty"`
+ Realm *string `protobuf:"bytes,102,opt,name=realm" json:"realm,omitempty"`
+ Metro *string `protobuf:"bytes,104,opt,name=metro" json:"metro,omitempty"`
+ Role *string `protobuf:"bytes,105,opt,name=role" json:"role,omitempty"`
+ Hostname *string `protobuf:"bytes,106,opt,name=hostname" json:"hostname,omitempty"`
+ Hostgroup *string `protobuf:"bytes,108,opt,name=hostgroup" json:"hostgroup,omitempty"`
+ XXX_unrecognized []byte `json:"-"`
+}
+
+func (m *NetworkDevice) Reset() { *m = NetworkDevice{} }
+func (m *NetworkDevice) String() string { return proto.CompactTextString(m) }
+func (*NetworkDevice) ProtoMessage() {}
+func (*NetworkDevice) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
+
+func (m *NetworkDevice) GetAlertable() bool {
+ if m != nil && m.Alertable != nil {
+ return *m.Alertable
+ }
+ return false
+}
+
+func (m *NetworkDevice) GetRealm() string {
+ if m != nil && m.Realm != nil {
+ return *m.Realm
+ }
+ return ""
+}
+
+func (m *NetworkDevice) GetMetro() string {
+ if m != nil && m.Metro != nil {
+ return *m.Metro
+ }
+ return ""
+}
+
+func (m *NetworkDevice) GetRole() string {
+ if m != nil && m.Role != nil {
+ return *m.Role
+ }
+ return ""
+}
+
+func (m *NetworkDevice) GetHostname() string {
+ if m != nil && m.Hostname != nil {
+ return *m.Hostname
+ }
+ return ""
+}
+
+func (m *NetworkDevice) GetHostgroup() string {
+ if m != nil && m.Hostgroup != nil {
+ return *m.Hostgroup
+ }
+ return ""
+}
+
+func init() {
+ proto.RegisterType((*NetworkDevice)(nil), "ts_mon.proto.NetworkDevice")
+ proto.RegisterEnum("ts_mon.proto.NetworkDevice_TypeId", NetworkDevice_TypeId_name, NetworkDevice_TypeId_value)
+}
+
+var fileDescriptor0 = []byte{
+ // 194 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x52, 0x48, 0x4c, 0x2e, 0x2c,
+ 0xcd, 0x2c, 0xce, 0x2c, 0xc9, 0xcc, 0xcf, 0x8b, 0xcf, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0x8e,
+ 0x4f, 0x49, 0x2d, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x29, 0x29,
+ 0x8e, 0xcf, 0xcd, 0xcf, 0x83, 0xf0, 0x94, 0xa6, 0x32, 0x72, 0xf1, 0xfa, 0x41, 0x94, 0xb9, 0x80,
+ 0x55, 0x09, 0x09, 0x72, 0x71, 0x26, 0xe6, 0xa4, 0x16, 0x95, 0x24, 0x26, 0xe5, 0xa4, 0x4a, 0xa4,
+ 0x2a, 0x30, 0x6a, 0x70, 0x08, 0xf1, 0x72, 0xb1, 0x16, 0xa5, 0x26, 0xe6, 0xe4, 0x4a, 0xa4, 0x01,
+ 0xb9, 0x9c, 0x20, 0x6e, 0x6e, 0x6a, 0x49, 0x51, 0xbe, 0x44, 0x06, 0x98, 0xcb, 0xc3, 0xc5, 0x52,
+ 0x94, 0x0f, 0x54, 0x9b, 0x09, 0xe6, 0x09, 0x70, 0x71, 0x64, 0xe4, 0x17, 0x97, 0xe4, 0x25, 0xe6,
+ 0xa6, 0x4a, 0x64, 0x81, 0x45, 0x80, 0x06, 0x82, 0x44, 0xd2, 0x8b, 0xf2, 0x4b, 0x0b, 0x24, 0x72,
+ 0x40, 0x42, 0x4a, 0x0a, 0x5c, 0x6c, 0x21, 0x95, 0x05, 0xa9, 0x9e, 0x29, 0x42, 0x62, 0x5c, 0xfc,
+ 0xbe, 0xae, 0xc1, 0xc1, 0x8e, 0xee, 0xae, 0xf1, 0x21, 0x91, 0x01, 0xae, 0xf1, 0x9e, 0x2e, 0x02,
+ 0x57, 0xe7, 0xce, 0x13, 0x00, 0x04, 0x00, 0x00, 0xff, 0xff, 0x7b, 0x02, 0xd9, 0xa7, 0xc8, 0x00,
+ 0x00, 0x00,
+}
« no previous file with comments | « common/tsmon/ts_mon_proto/acquisition_network_device.proto ('k') | common/tsmon/ts_mon_proto/acquisition_task.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698