github.com/keltia/go-ipfs@v0.3.8-0.20150909044612-210793031c63/namesys/pb/namesys.pb.go (about)

     1  // Code generated by protoc-gen-gogo.
     2  // source: namesys.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  Package namesys_pb is a generated protocol buffer package.
     7  
     8  It is generated from these files:
     9  	namesys.proto
    10  
    11  It has these top-level messages:
    12  	IpnsEntry
    13  */
    14  package namesys_pb
    15  
    16  import proto "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/gogo/protobuf/proto"
    17  import math "math"
    18  
    19  // Reference imports to suppress errors if they are not otherwise used.
    20  var _ = proto.Marshal
    21  var _ = math.Inf
    22  
    23  type IpnsEntry_ValidityType int32
    24  
    25  const (
    26  	// setting an EOL says "this record is valid until..."
    27  	IpnsEntry_EOL IpnsEntry_ValidityType = 0
    28  )
    29  
    30  var IpnsEntry_ValidityType_name = map[int32]string{
    31  	0: "EOL",
    32  }
    33  var IpnsEntry_ValidityType_value = map[string]int32{
    34  	"EOL": 0,
    35  }
    36  
    37  func (x IpnsEntry_ValidityType) Enum() *IpnsEntry_ValidityType {
    38  	p := new(IpnsEntry_ValidityType)
    39  	*p = x
    40  	return p
    41  }
    42  func (x IpnsEntry_ValidityType) String() string {
    43  	return proto.EnumName(IpnsEntry_ValidityType_name, int32(x))
    44  }
    45  func (x *IpnsEntry_ValidityType) UnmarshalJSON(data []byte) error {
    46  	value, err := proto.UnmarshalJSONEnum(IpnsEntry_ValidityType_value, data, "IpnsEntry_ValidityType")
    47  	if err != nil {
    48  		return err
    49  	}
    50  	*x = IpnsEntry_ValidityType(value)
    51  	return nil
    52  }
    53  
    54  type IpnsEntry struct {
    55  	Value            []byte                  `protobuf:"bytes,1,req,name=value" json:"value,omitempty"`
    56  	Signature        []byte                  `protobuf:"bytes,2,req,name=signature" json:"signature,omitempty"`
    57  	ValidityType     *IpnsEntry_ValidityType `protobuf:"varint,3,opt,name=validityType,enum=namesys.pb.IpnsEntry_ValidityType" json:"validityType,omitempty"`
    58  	Validity         []byte                  `protobuf:"bytes,4,opt,name=validity" json:"validity,omitempty"`
    59  	XXX_unrecognized []byte                  `json:"-"`
    60  }
    61  
    62  func (m *IpnsEntry) Reset()         { *m = IpnsEntry{} }
    63  func (m *IpnsEntry) String() string { return proto.CompactTextString(m) }
    64  func (*IpnsEntry) ProtoMessage()    {}
    65  
    66  func (m *IpnsEntry) GetValue() []byte {
    67  	if m != nil {
    68  		return m.Value
    69  	}
    70  	return nil
    71  }
    72  
    73  func (m *IpnsEntry) GetSignature() []byte {
    74  	if m != nil {
    75  		return m.Signature
    76  	}
    77  	return nil
    78  }
    79  
    80  func (m *IpnsEntry) GetValidityType() IpnsEntry_ValidityType {
    81  	if m != nil && m.ValidityType != nil {
    82  		return *m.ValidityType
    83  	}
    84  	return IpnsEntry_EOL
    85  }
    86  
    87  func (m *IpnsEntry) GetValidity() []byte {
    88  	if m != nil {
    89  		return m.Validity
    90  	}
    91  	return nil
    92  }
    93  
    94  func init() {
    95  	proto.RegisterEnum("namesys.pb.IpnsEntry_ValidityType", IpnsEntry_ValidityType_name, IpnsEntry_ValidityType_value)
    96  }