Package list golang-github-farsightsec-go-nmsg / debian/0.0_git20190917.04d2174-2 nmsg_base / http.pb.go
debian/0.0_git20190917.04d2174-2

Tree @debian/0.0_git20190917.04d2174-2 (Download .tar.gz)

http.pb.go @debian/0.0_git20190917.04d2174-2raw · history · blame

// Code generated by protoc-gen-go.
// source: http.proto
// DO NOT EDIT!

package nmsg_base

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

type HttpType int32

const (
	// unknown = 0;
	HttpType_sinkhole HttpType = 1
)

var HttpType_name = map[int32]string{
	1: "sinkhole",
}
var HttpType_value = map[string]int32{
	"sinkhole": 1,
}

func (x HttpType) Enum() *HttpType {
	p := new(HttpType)
	*p = x
	return p
}
func (x HttpType) String() string {
	return proto.EnumName(HttpType_name, int32(x))
}
func (x *HttpType) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(HttpType_value, data, "HttpType")
	if err != nil {
		return err
	}
	*x = HttpType(value)
	return nil
}
func (HttpType) EnumDescriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }

type Http struct {
	Type             *HttpType `protobuf:"varint,1,req,name=type,enum=nmsg.base.HttpType" json:"type,omitempty"`
	Srcip            []byte    `protobuf:"bytes,2,opt,name=srcip" json:"srcip,omitempty"`
	Srchost          []byte    `protobuf:"bytes,3,opt,name=srchost" json:"srchost,omitempty"`
	Srcport          *uint32   `protobuf:"varint,4,opt,name=srcport" json:"srcport,omitempty"`
	Dstip            []byte    `protobuf:"bytes,5,opt,name=dstip" json:"dstip,omitempty"`
	Dstport          *uint32   `protobuf:"varint,6,opt,name=dstport" json:"dstport,omitempty"`
	Request          []byte    `protobuf:"bytes,7,opt,name=request" json:"request,omitempty"`
	P0FGenre         []byte    `protobuf:"bytes,65,opt,name=p0f_genre" json:"p0f_genre,omitempty"`
	P0FDetail        []byte    `protobuf:"bytes,66,opt,name=p0f_detail" json:"p0f_detail,omitempty"`
	P0FDist          *int32    `protobuf:"varint,67,opt,name=p0f_dist" json:"p0f_dist,omitempty"`
	P0FLink          []byte    `protobuf:"bytes,68,opt,name=p0f_link" json:"p0f_link,omitempty"`
	P0FTos           []byte    `protobuf:"bytes,69,opt,name=p0f_tos" json:"p0f_tos,omitempty"`
	P0FFw            *uint32   `protobuf:"varint,70,opt,name=p0f_fw" json:"p0f_fw,omitempty"`
	P0FNat           *uint32   `protobuf:"varint,71,opt,name=p0f_nat" json:"p0f_nat,omitempty"`
	P0FReal          *uint32   `protobuf:"varint,72,opt,name=p0f_real" json:"p0f_real,omitempty"`
	P0FScore         *int32    `protobuf:"varint,73,opt,name=p0f_score" json:"p0f_score,omitempty"`
	P0FMflags        *uint32   `protobuf:"varint,74,opt,name=p0f_mflags" json:"p0f_mflags,omitempty"`
	P0FUptime        *int32    `protobuf:"varint,75,opt,name=p0f_uptime" json:"p0f_uptime,omitempty"`
	XXX_unrecognized []byte    `json:"-"`
}

func (m *Http) Reset()                    { *m = Http{} }
func (m *Http) String() string            { return proto.CompactTextString(m) }
func (*Http) ProtoMessage()               {}
func (*Http) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }

func (m *Http) GetType() HttpType {
	if m != nil && m.Type != nil {
		return *m.Type
	}
	return HttpType_sinkhole
}

func (m *Http) GetSrcip() []byte {
	if m != nil {
		return m.Srcip
	}
	return nil
}

func (m *Http) GetSrchost() []byte {
	if m != nil {
		return m.Srchost
	}
	return nil
}

func (m *Http) GetSrcport() uint32 {
	if m != nil && m.Srcport != nil {
		return *m.Srcport
	}
	return 0
}

func (m *Http) GetDstip() []byte {
	if m != nil {
		return m.Dstip
	}
	return nil
}

func (m *Http) GetDstport() uint32 {
	if m != nil && m.Dstport != nil {
		return *m.Dstport
	}
	return 0
}

func (m *Http) GetRequest() []byte {
	if m != nil {
		return m.Request
	}
	return nil
}

func (m *Http) GetP0FGenre() []byte {
	if m != nil {
		return m.P0FGenre
	}
	return nil
}

func (m *Http) GetP0FDetail() []byte {
	if m != nil {
		return m.P0FDetail
	}
	return nil
}

func (m *Http) GetP0FDist() int32 {
	if m != nil && m.P0FDist != nil {
		return *m.P0FDist
	}
	return 0
}

func (m *Http) GetP0FLink() []byte {
	if m != nil {
		return m.P0FLink
	}
	return nil
}

func (m *Http) GetP0FTos() []byte {
	if m != nil {
		return m.P0FTos
	}
	return nil
}

func (m *Http) GetP0FFw() uint32 {
	if m != nil && m.P0FFw != nil {
		return *m.P0FFw
	}
	return 0
}

func (m *Http) GetP0FNat() uint32 {
	if m != nil && m.P0FNat != nil {
		return *m.P0FNat
	}
	return 0
}

func (m *Http) GetP0FReal() uint32 {
	if m != nil && m.P0FReal != nil {
		return *m.P0FReal
	}
	return 0
}

func (m *Http) GetP0FScore() int32 {
	if m != nil && m.P0FScore != nil {
		return *m.P0FScore
	}
	return 0
}

func (m *Http) GetP0FMflags() uint32 {
	if m != nil && m.P0FMflags != nil {
		return *m.P0FMflags
	}
	return 0
}

func (m *Http) GetP0FUptime() int32 {
	if m != nil && m.P0FUptime != nil {
		return *m.P0FUptime
	}
	return 0
}

func init() {
	proto.RegisterType((*Http)(nil), "nmsg.base.Http")
	proto.RegisterEnum("nmsg.base.HttpType", HttpType_name, HttpType_value)
}

func init() { proto.RegisterFile("http.proto", fileDescriptor4) }

var fileDescriptor4 = []byte{
	// 268 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x4c, 0xd0, 0x4d, 0x4f, 0xf3, 0x30,
	0x0c, 0x07, 0x70, 0xb5, 0x4f, 0xbb, 0x75, 0xd6, 0xb6, 0x67, 0x94, 0x8b, 0x8f, 0x83, 0xd3, 0xc4,
	0xa1, 0x42, 0x7c, 0x03, 0xde, 0x07, 0x5c, 0xb9, 0xa3, 0xb2, 0xa5, 0x2f, 0x22, 0x6d, 0x42, 0xe2,
	0x09, 0xf1, 0x41, 0xf9, 0x3e, 0x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