util

package
v0.0.0-...-c201ef6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestAllTypes_NestedEnum_name = map[int32]string{
		1: "FOO",
		2: "BAR",
		3: "BAZ",
	}
	TestAllTypes_NestedEnum_value = map[string]int32{
		"FOO": 1,
		"BAR": 2,
		"BAZ": 3,
	}
)

Enum value maps for TestAllTypes_NestedEnum.

View Source
var (
	TestPBEnum_name = map[int32]string{
		1: "FOO",
		2: "BAR",
		3: "BAZ",
	}
	TestPBEnum_value = map[string]int32{
		"FOO": 1,
		"BAR": 2,
		"BAZ": 3,
	}
)

Enum value maps for TestPBEnum.

View Source
var File_yb_util_encryption_proto protoreflect.FileDescriptor
View Source
var File_yb_util_histogram_proto protoreflect.FileDescriptor
View Source
var File_yb_util_jsonwriter_test_proto protoreflect.FileDescriptor
View Source
var File_yb_util_opid_proto protoreflect.FileDescriptor
View Source
var File_yb_util_pb_util_proto protoreflect.FileDescriptor
View Source
var File_yb_util_proto_container_test2_proto protoreflect.FileDescriptor
View Source
var File_yb_util_proto_container_test3_proto protoreflect.FileDescriptor
View Source
var File_yb_util_proto_container_test_proto protoreflect.FileDescriptor
View Source
var File_yb_util_version_info_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ContainerSupHeaderPB

type ContainerSupHeaderPB struct {

	// The protobuf schema for the messages expected in this container.
	//
	// This schema is complete, that is, it includes all of its dependencies
	// (i.e. other schemas defined in .proto files imported by this schema's
	// .proto file).
	Protos *descriptorpb.FileDescriptorSet `protobuf:"bytes,1,req,name=protos" json:"protos,omitempty"`
	// The PB message type expected in each data entry in this container. Must
	// be fully qualified (i.e. yb.tablet.RaftGroupReplicaSuperBlockPB).
	PbType *string `protobuf:"bytes,2,req,name=pb_type,json=pbType" json:"pb_type,omitempty"`
	// contains filtered or unexported fields
}

Supplemental protobuf container header, after the main header (see pb_util.h for details).

func (*ContainerSupHeaderPB) Descriptor deprecated

func (*ContainerSupHeaderPB) Descriptor() ([]byte, []int)

Deprecated: Use ContainerSupHeaderPB.ProtoReflect.Descriptor instead.

func (*ContainerSupHeaderPB) GetPbType

func (x *ContainerSupHeaderPB) GetPbType() string

func (*ContainerSupHeaderPB) GetProtos

func (*ContainerSupHeaderPB) MarshalJSON

func (m *ContainerSupHeaderPB) MarshalJSON() ([]byte, error)

func (*ContainerSupHeaderPB) ProtoMessage

func (*ContainerSupHeaderPB) ProtoMessage()

func (*ContainerSupHeaderPB) ProtoReflect

func (x *ContainerSupHeaderPB) ProtoReflect() protoreflect.Message

func (*ContainerSupHeaderPB) Reset

func (x *ContainerSupHeaderPB) Reset()

func (*ContainerSupHeaderPB) String

func (x *ContainerSupHeaderPB) String() string

func (*ContainerSupHeaderPB) UnmarshalJSON

func (m *ContainerSupHeaderPB) UnmarshalJSON(b []byte) error

type EncryptionParamsPB

type EncryptionParamsPB struct {
	DataKey []byte `protobuf:"bytes,1,opt,name=data_key,json=dataKey,proto3" json:"data_key,omitempty"`
	Nonce   []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Counter int32  `protobuf:"varint,3,opt,name=counter,proto3" json:"counter,omitempty"`
	// When computing counter increment, do we want to overflow the counter into the rest of the
	// initialization vector as part of the new format.
	OpensslCompatibleCounterOverflow bool `` /* 162-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*EncryptionParamsPB) Descriptor deprecated

func (*EncryptionParamsPB) Descriptor() ([]byte, []int)

Deprecated: Use EncryptionParamsPB.ProtoReflect.Descriptor instead.

func (*EncryptionParamsPB) GetCounter

func (x *EncryptionParamsPB) GetCounter() int32

func (*EncryptionParamsPB) GetDataKey

func (x *EncryptionParamsPB) GetDataKey() []byte

func (*EncryptionParamsPB) GetNonce

func (x *EncryptionParamsPB) GetNonce() []byte

func (*EncryptionParamsPB) GetOpensslCompatibleCounterOverflow

func (x *EncryptionParamsPB) GetOpensslCompatibleCounterOverflow() bool

func (*EncryptionParamsPB) MarshalJSON

func (m *EncryptionParamsPB) MarshalJSON() ([]byte, error)

func (*EncryptionParamsPB) ProtoMessage

func (*EncryptionParamsPB) ProtoMessage()

func (*EncryptionParamsPB) ProtoReflect

func (x *EncryptionParamsPB) ProtoReflect() protoreflect.Message

func (*EncryptionParamsPB) Reset

func (x *EncryptionParamsPB) Reset()

func (*EncryptionParamsPB) String

func (x *EncryptionParamsPB) String() string

func (*EncryptionParamsPB) UnmarshalJSON

func (m *EncryptionParamsPB) UnmarshalJSON(b []byte) error

type HistogramSnapshotPB

type HistogramSnapshotPB struct {
	Type                 *string  `protobuf:"bytes,1,req,name=type" json:"type,omitempty"`
	Name                 *string  `protobuf:"bytes,2,req,name=name" json:"name,omitempty"`
	Description          *string  `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
	Level                *string  `protobuf:"bytes,20,opt,name=level" json:"level,omitempty"`
	Unit                 *string  `protobuf:"bytes,4,req,name=unit" json:"unit,omitempty"`
	Label                *string  `protobuf:"bytes,19,opt,name=label" json:"label,omitempty"`
	MaxTrackableValue    *uint64  `protobuf:"varint,5,req,name=max_trackable_value,json=maxTrackableValue" json:"max_trackable_value,omitempty"`
	NumSignificantDigits *int32   `protobuf:"varint,6,req,name=num_significant_digits,json=numSignificantDigits" json:"num_significant_digits,omitempty"`
	TotalCount           *uint64  `protobuf:"varint,7,req,name=total_count,json=totalCount" json:"total_count,omitempty"`
	TotalSum             *uint64  `protobuf:"varint,18,opt,name=total_sum,json=totalSum" json:"total_sum,omitempty"`
	Min                  *uint64  `protobuf:"varint,8,req,name=min" json:"min,omitempty"`
	Mean                 *float64 `protobuf:"fixed64,9,req,name=mean" json:"mean,omitempty"`
	Percentile_75        *uint64  `protobuf:"varint,10,req,name=percentile_75,json=percentile75" json:"percentile_75,omitempty"`
	Percentile_95        *uint64  `protobuf:"varint,11,req,name=percentile_95,json=percentile95" json:"percentile_95,omitempty"`
	Percentile_99        *uint64  `protobuf:"varint,12,req,name=percentile_99,json=percentile99" json:"percentile_99,omitempty"`
	Percentile_99_9      *uint64  `protobuf:"varint,13,req,name=percentile_99_9,json=percentile999" json:"percentile_99_9,omitempty"`
	Percentile_99_99     *uint64  `protobuf:"varint,14,req,name=percentile_99_99,json=percentile9999" json:"percentile_99_99,omitempty"`
	Max                  *uint64  `protobuf:"varint,15,req,name=max" json:"max,omitempty"`
	Values               []uint64 `protobuf:"varint,16,rep,packed,name=values" json:"values,omitempty"`
	Counts               []uint64 `protobuf:"varint,17,rep,packed,name=counts" json:"counts,omitempty"`
	// contains filtered or unexported fields
}

Captures the state of an Histogram.

func (*HistogramSnapshotPB) Descriptor deprecated

func (*HistogramSnapshotPB) Descriptor() ([]byte, []int)

Deprecated: Use HistogramSnapshotPB.ProtoReflect.Descriptor instead.

func (*HistogramSnapshotPB) GetCounts

func (x *HistogramSnapshotPB) GetCounts() []uint64

func (*HistogramSnapshotPB) GetDescription

func (x *HistogramSnapshotPB) GetDescription() string

func (*HistogramSnapshotPB) GetLabel

func (x *HistogramSnapshotPB) GetLabel() string

func (*HistogramSnapshotPB) GetLevel

func (x *HistogramSnapshotPB) GetLevel() string

func (*HistogramSnapshotPB) GetMax

func (x *HistogramSnapshotPB) GetMax() uint64

func (*HistogramSnapshotPB) GetMaxTrackableValue

func (x *HistogramSnapshotPB) GetMaxTrackableValue() uint64

func (*HistogramSnapshotPB) GetMean

func (x *HistogramSnapshotPB) GetMean() float64

func (*HistogramSnapshotPB) GetMin

func (x *HistogramSnapshotPB) GetMin() uint64

func (*HistogramSnapshotPB) GetName

func (x *HistogramSnapshotPB) GetName() string

func (*HistogramSnapshotPB) GetNumSignificantDigits

func (x *HistogramSnapshotPB) GetNumSignificantDigits() int32

func (*HistogramSnapshotPB) GetPercentile_75

func (x *HistogramSnapshotPB) GetPercentile_75() uint64

func (*HistogramSnapshotPB) GetPercentile_95

func (x *HistogramSnapshotPB) GetPercentile_95() uint64

func (*HistogramSnapshotPB) GetPercentile_99

func (x *HistogramSnapshotPB) GetPercentile_99() uint64

func (*HistogramSnapshotPB) GetPercentile_99_9

func (x *HistogramSnapshotPB) GetPercentile_99_9() uint64

func (*HistogramSnapshotPB) GetPercentile_99_99

func (x *HistogramSnapshotPB) GetPercentile_99_99() uint64

func (*HistogramSnapshotPB) GetTotalCount

func (x *HistogramSnapshotPB) GetTotalCount() uint64

func (*HistogramSnapshotPB) GetTotalSum

func (x *HistogramSnapshotPB) GetTotalSum() uint64

func (*HistogramSnapshotPB) GetType

func (x *HistogramSnapshotPB) GetType() string

func (*HistogramSnapshotPB) GetUnit

func (x *HistogramSnapshotPB) GetUnit() string

func (*HistogramSnapshotPB) GetValues

func (x *HistogramSnapshotPB) GetValues() []uint64

func (*HistogramSnapshotPB) MarshalJSON

func (m *HistogramSnapshotPB) MarshalJSON() ([]byte, error)

func (*HistogramSnapshotPB) ProtoMessage

func (*HistogramSnapshotPB) ProtoMessage()

func (*HistogramSnapshotPB) ProtoReflect

func (x *HistogramSnapshotPB) ProtoReflect() protoreflect.Message

func (*HistogramSnapshotPB) Reset

func (x *HistogramSnapshotPB) Reset()

func (*HistogramSnapshotPB) String

func (x *HistogramSnapshotPB) String() string

func (*HistogramSnapshotPB) UnmarshalJSON

func (m *HistogramSnapshotPB) UnmarshalJSON(b []byte) error

type HistogramSnapshotsListPB

type HistogramSnapshotsListPB struct {
	Histograms []*HistogramSnapshotPB `protobuf:"bytes,1,rep,name=histograms" json:"histograms,omitempty"`
	// contains filtered or unexported fields
}

func (*HistogramSnapshotsListPB) Descriptor deprecated

func (*HistogramSnapshotsListPB) Descriptor() ([]byte, []int)

Deprecated: Use HistogramSnapshotsListPB.ProtoReflect.Descriptor instead.

func (*HistogramSnapshotsListPB) GetHistograms

func (x *HistogramSnapshotsListPB) GetHistograms() []*HistogramSnapshotPB

func (*HistogramSnapshotsListPB) MarshalJSON

func (m *HistogramSnapshotsListPB) MarshalJSON() ([]byte, error)

func (*HistogramSnapshotsListPB) ProtoMessage

func (*HistogramSnapshotsListPB) ProtoMessage()

func (*HistogramSnapshotsListPB) ProtoReflect

func (x *HistogramSnapshotsListPB) ProtoReflect() protoreflect.Message

func (*HistogramSnapshotsListPB) Reset

func (x *HistogramSnapshotsListPB) Reset()

func (*HistogramSnapshotsListPB) String

func (x *HistogramSnapshotsListPB) String() string

func (*HistogramSnapshotsListPB) UnmarshalJSON

func (m *HistogramSnapshotsListPB) UnmarshalJSON(b []byte) error

type OpIdPB

type OpIdPB struct {

	// The term of an operation or the leader's sequence id.
	Term  *int64 `protobuf:"varint,1,req,name=term" json:"term,omitempty"`
	Index *int64 `protobuf:"varint,2,req,name=index" json:"index,omitempty"`
	// contains filtered or unexported fields
}

An id for a generic state machine operation. Composed of the leaders' term plus the index of the operation in that term, e.g., the <index>th operation of the <term>th leader.

func (*OpIdPB) Descriptor deprecated

func (*OpIdPB) Descriptor() ([]byte, []int)

Deprecated: Use OpIdPB.ProtoReflect.Descriptor instead.

func (*OpIdPB) GetIndex

func (x *OpIdPB) GetIndex() int64

func (*OpIdPB) GetTerm

func (x *OpIdPB) GetTerm() int64

func (*OpIdPB) MarshalJSON

func (m *OpIdPB) MarshalJSON() ([]byte, error)

func (*OpIdPB) ProtoMessage

func (*OpIdPB) ProtoMessage()

func (*OpIdPB) ProtoReflect

func (x *OpIdPB) ProtoReflect() protoreflect.Message

func (*OpIdPB) Reset

func (x *OpIdPB) Reset()

func (*OpIdPB) String

func (x *OpIdPB) String() string

func (*OpIdPB) UnmarshalJSON

func (m *OpIdPB) UnmarshalJSON(b []byte) error

type ProtoContainerTest2PB

type ProtoContainerTest2PB struct {
	Record *ProtoContainerTestPB `protobuf:"bytes,1,req,name=record" json:"record,omitempty"`
	// contains filtered or unexported fields
}

Arbitrary protobuf that has one PB dependency.

func (*ProtoContainerTest2PB) Descriptor deprecated

func (*ProtoContainerTest2PB) Descriptor() ([]byte, []int)

Deprecated: Use ProtoContainerTest2PB.ProtoReflect.Descriptor instead.

func (*ProtoContainerTest2PB) GetRecord

func (*ProtoContainerTest2PB) MarshalJSON

func (m *ProtoContainerTest2PB) MarshalJSON() ([]byte, error)

func (*ProtoContainerTest2PB) ProtoMessage

func (*ProtoContainerTest2PB) ProtoMessage()

func (*ProtoContainerTest2PB) ProtoReflect

func (x *ProtoContainerTest2PB) ProtoReflect() protoreflect.Message

func (*ProtoContainerTest2PB) Reset

func (x *ProtoContainerTest2PB) Reset()

func (*ProtoContainerTest2PB) String

func (x *ProtoContainerTest2PB) String() string

func (*ProtoContainerTest2PB) UnmarshalJSON

func (m *ProtoContainerTest2PB) UnmarshalJSON(b []byte) error

type ProtoContainerTest3PB

type ProtoContainerTest3PB struct {
	RecordOne *ProtoContainerTestPB  `protobuf:"bytes,1,req,name=record_one,json=recordOne" json:"record_one,omitempty"`
	RecordTwo *ProtoContainerTest2PB `protobuf:"bytes,2,req,name=record_two,json=recordTwo" json:"record_two,omitempty"`
	// contains filtered or unexported fields
}

Arbitrary protobuf has two PB dependencies. dependency.

func (*ProtoContainerTest3PB) Descriptor deprecated

func (*ProtoContainerTest3PB) Descriptor() ([]byte, []int)

Deprecated: Use ProtoContainerTest3PB.ProtoReflect.Descriptor instead.

func (*ProtoContainerTest3PB) GetRecordOne

func (x *ProtoContainerTest3PB) GetRecordOne() *ProtoContainerTestPB

func (*ProtoContainerTest3PB) GetRecordTwo

func (x *ProtoContainerTest3PB) GetRecordTwo() *ProtoContainerTest2PB

func (*ProtoContainerTest3PB) MarshalJSON

func (m *ProtoContainerTest3PB) MarshalJSON() ([]byte, error)

func (*ProtoContainerTest3PB) ProtoMessage

func (*ProtoContainerTest3PB) ProtoMessage()

func (*ProtoContainerTest3PB) ProtoReflect

func (x *ProtoContainerTest3PB) ProtoReflect() protoreflect.Message

func (*ProtoContainerTest3PB) Reset

func (x *ProtoContainerTest3PB) Reset()

func (*ProtoContainerTest3PB) String

func (x *ProtoContainerTest3PB) String() string

func (*ProtoContainerTest3PB) UnmarshalJSON

func (m *ProtoContainerTest3PB) UnmarshalJSON(b []byte) error

type ProtoContainerTestPB

type ProtoContainerTestPB struct {
	Name  *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	Value *int32  `protobuf:"varint,2,req,name=value" json:"value,omitempty"`
	Note  *string `protobuf:"bytes,3,opt,name=note" json:"note,omitempty"`
	// contains filtered or unexported fields
}

Arbitrary protobuf to test writing a containerized protobuf.

func (*ProtoContainerTestPB) Descriptor deprecated

func (*ProtoContainerTestPB) Descriptor() ([]byte, []int)

Deprecated: Use ProtoContainerTestPB.ProtoReflect.Descriptor instead.

func (*ProtoContainerTestPB) GetName

func (x *ProtoContainerTestPB) GetName() string

func (*ProtoContainerTestPB) GetNote

func (x *ProtoContainerTestPB) GetNote() string

func (*ProtoContainerTestPB) GetValue

func (x *ProtoContainerTestPB) GetValue() int32

func (*ProtoContainerTestPB) MarshalJSON

func (m *ProtoContainerTestPB) MarshalJSON() ([]byte, error)

func (*ProtoContainerTestPB) ProtoMessage

func (*ProtoContainerTestPB) ProtoMessage()

func (*ProtoContainerTestPB) ProtoReflect

func (x *ProtoContainerTestPB) ProtoReflect() protoreflect.Message

func (*ProtoContainerTestPB) Reset

func (x *ProtoContainerTestPB) Reset()

func (*ProtoContainerTestPB) String

func (x *ProtoContainerTestPB) String() string

func (*ProtoContainerTestPB) UnmarshalJSON

func (m *ProtoContainerTestPB) UnmarshalJSON(b []byte) error

type TestAllTypes

type TestAllTypes struct {

	// Singular
	OptionalInt32         *int32                      `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
	OptionalInt64         *int64                      `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty"`
	OptionalUint32        *uint32                     `protobuf:"varint,3,opt,name=optional_uint32,json=optionalUint32" json:"optional_uint32,omitempty"`
	OptionalUint64        *uint64                     `protobuf:"varint,4,opt,name=optional_uint64,json=optionalUint64" json:"optional_uint64,omitempty"`
	OptionalSint32        *int32                      `protobuf:"zigzag32,5,opt,name=optional_sint32,json=optionalSint32" json:"optional_sint32,omitempty"`
	OptionalSint64        *int64                      `protobuf:"zigzag64,6,opt,name=optional_sint64,json=optionalSint64" json:"optional_sint64,omitempty"`
	OptionalFixed32       *uint32                     `protobuf:"fixed32,7,opt,name=optional_fixed32,json=optionalFixed32" json:"optional_fixed32,omitempty"`
	OptionalFixed64       *uint64                     `protobuf:"fixed64,8,opt,name=optional_fixed64,json=optionalFixed64" json:"optional_fixed64,omitempty"`
	OptionalSfixed32      *int32                      `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32" json:"optional_sfixed32,omitempty"`
	OptionalSfixed64      *int64                      `protobuf:"fixed64,10,opt,name=optional_sfixed64,json=optionalSfixed64" json:"optional_sfixed64,omitempty"`
	OptionalFloat         *float32                    `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat" json:"optional_float,omitempty"`
	OptionalDouble        *float64                    `protobuf:"fixed64,12,opt,name=optional_double,json=optionalDouble" json:"optional_double,omitempty"`
	OptionalBool          *bool                       `protobuf:"varint,13,opt,name=optional_bool,json=optionalBool" json:"optional_bool,omitempty"`
	OptionalString        *string                     `protobuf:"bytes,14,opt,name=optional_string,json=optionalString" json:"optional_string,omitempty"`
	OptionalBytes         []byte                      `protobuf:"bytes,15,opt,name=optional_bytes,json=optionalBytes" json:"optional_bytes,omitempty"`
	OptionalNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,18,opt,name=optional_nested_message,json=optionalNestedMessage" json:"optional_nested_message,omitempty"`
	OptionalNestedEnum    *TestAllTypes_NestedEnum    `` /* 157-byte string literal not displayed */
	// Repeated
	RepeatedInt32         []int32                       `protobuf:"varint,31,rep,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty"`
	RepeatedInt64         []int64                       `protobuf:"varint,32,rep,name=repeated_int64,json=repeatedInt64" json:"repeated_int64,omitempty"`
	RepeatedUint32        []uint32                      `protobuf:"varint,33,rep,name=repeated_uint32,json=repeatedUint32" json:"repeated_uint32,omitempty"`
	RepeatedUint64        []uint64                      `protobuf:"varint,34,rep,name=repeated_uint64,json=repeatedUint64" json:"repeated_uint64,omitempty"`
	RepeatedSint32        []int32                       `protobuf:"zigzag32,35,rep,name=repeated_sint32,json=repeatedSint32" json:"repeated_sint32,omitempty"`
	RepeatedSint64        []int64                       `protobuf:"zigzag64,36,rep,name=repeated_sint64,json=repeatedSint64" json:"repeated_sint64,omitempty"`
	RepeatedFixed32       []uint32                      `protobuf:"fixed32,37,rep,name=repeated_fixed32,json=repeatedFixed32" json:"repeated_fixed32,omitempty"`
	RepeatedFixed64       []uint64                      `protobuf:"fixed64,38,rep,name=repeated_fixed64,json=repeatedFixed64" json:"repeated_fixed64,omitempty"`
	RepeatedSfixed32      []int32                       `protobuf:"fixed32,39,rep,name=repeated_sfixed32,json=repeatedSfixed32" json:"repeated_sfixed32,omitempty"`
	RepeatedSfixed64      []int64                       `protobuf:"fixed64,40,rep,name=repeated_sfixed64,json=repeatedSfixed64" json:"repeated_sfixed64,omitempty"`
	RepeatedFloat         []float32                     `protobuf:"fixed32,41,rep,name=repeated_float,json=repeatedFloat" json:"repeated_float,omitempty"`
	RepeatedDouble        []float64                     `protobuf:"fixed64,42,rep,name=repeated_double,json=repeatedDouble" json:"repeated_double,omitempty"`
	RepeatedBool          []bool                        `protobuf:"varint,43,rep,name=repeated_bool,json=repeatedBool" json:"repeated_bool,omitempty"`
	RepeatedString        []string                      `protobuf:"bytes,44,rep,name=repeated_string,json=repeatedString" json:"repeated_string,omitempty"`
	RepeatedBytes         [][]byte                      `protobuf:"bytes,45,rep,name=repeated_bytes,json=repeatedBytes" json:"repeated_bytes,omitempty"`
	RepeatedNestedMessage []*TestAllTypes_NestedMessage `protobuf:"bytes,48,rep,name=repeated_nested_message,json=repeatedNestedMessage" json:"repeated_nested_message,omitempty"`
	RepeatedNestedEnum    []TestAllTypes_NestedEnum     `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

This proto includes every type of field in both singular and repeated forms. This is mostly copied from 'unittest.proto' in the protobuf source (hence the odd field numbers which skip some).

func (*TestAllTypes) Descriptor deprecated

func (*TestAllTypes) Descriptor() ([]byte, []int)

Deprecated: Use TestAllTypes.ProtoReflect.Descriptor instead.

func (*TestAllTypes) GetOptionalBool

func (x *TestAllTypes) GetOptionalBool() bool

func (*TestAllTypes) GetOptionalBytes

func (x *TestAllTypes) GetOptionalBytes() []byte

func (*TestAllTypes) GetOptionalDouble

func (x *TestAllTypes) GetOptionalDouble() float64

func (*TestAllTypes) GetOptionalFixed32

func (x *TestAllTypes) GetOptionalFixed32() uint32

func (*TestAllTypes) GetOptionalFixed64

func (x *TestAllTypes) GetOptionalFixed64() uint64

func (*TestAllTypes) GetOptionalFloat

func (x *TestAllTypes) GetOptionalFloat() float32

func (*TestAllTypes) GetOptionalInt32

func (x *TestAllTypes) GetOptionalInt32() int32

func (*TestAllTypes) GetOptionalInt64

func (x *TestAllTypes) GetOptionalInt64() int64

func (*TestAllTypes) GetOptionalNestedEnum

func (x *TestAllTypes) GetOptionalNestedEnum() TestAllTypes_NestedEnum

func (*TestAllTypes) GetOptionalNestedMessage

func (x *TestAllTypes) GetOptionalNestedMessage() *TestAllTypes_NestedMessage

func (*TestAllTypes) GetOptionalSfixed32

func (x *TestAllTypes) GetOptionalSfixed32() int32

func (*TestAllTypes) GetOptionalSfixed64

func (x *TestAllTypes) GetOptionalSfixed64() int64

func (*TestAllTypes) GetOptionalSint32

func (x *TestAllTypes) GetOptionalSint32() int32

func (*TestAllTypes) GetOptionalSint64

func (x *TestAllTypes) GetOptionalSint64() int64

func (*TestAllTypes) GetOptionalString

func (x *TestAllTypes) GetOptionalString() string

func (*TestAllTypes) GetOptionalUint32

func (x *TestAllTypes) GetOptionalUint32() uint32

func (*TestAllTypes) GetOptionalUint64

func (x *TestAllTypes) GetOptionalUint64() uint64

func (*TestAllTypes) GetRepeatedBool

func (x *TestAllTypes) GetRepeatedBool() []bool

func (*TestAllTypes) GetRepeatedBytes

func (x *TestAllTypes) GetRepeatedBytes() [][]byte

func (*TestAllTypes) GetRepeatedDouble

func (x *TestAllTypes) GetRepeatedDouble() []float64

func (*TestAllTypes) GetRepeatedFixed32

func (x *TestAllTypes) GetRepeatedFixed32() []uint32

func (*TestAllTypes) GetRepeatedFixed64

func (x *TestAllTypes) GetRepeatedFixed64() []uint64

func (*TestAllTypes) GetRepeatedFloat

func (x *TestAllTypes) GetRepeatedFloat() []float32

func (*TestAllTypes) GetRepeatedInt32

func (x *TestAllTypes) GetRepeatedInt32() []int32

func (*TestAllTypes) GetRepeatedInt64

func (x *TestAllTypes) GetRepeatedInt64() []int64

func (*TestAllTypes) GetRepeatedNestedEnum

func (x *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum

func (*TestAllTypes) GetRepeatedNestedMessage

func (x *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage

func (*TestAllTypes) GetRepeatedSfixed32

func (x *TestAllTypes) GetRepeatedSfixed32() []int32

func (*TestAllTypes) GetRepeatedSfixed64

func (x *TestAllTypes) GetRepeatedSfixed64() []int64

func (*TestAllTypes) GetRepeatedSint32

func (x *TestAllTypes) GetRepeatedSint32() []int32

func (*TestAllTypes) GetRepeatedSint64

func (x *TestAllTypes) GetRepeatedSint64() []int64

func (*TestAllTypes) GetRepeatedString

func (x *TestAllTypes) GetRepeatedString() []string

func (*TestAllTypes) GetRepeatedUint32

func (x *TestAllTypes) GetRepeatedUint32() []uint32

func (*TestAllTypes) GetRepeatedUint64

func (x *TestAllTypes) GetRepeatedUint64() []uint64

func (*TestAllTypes) MarshalJSON

func (m *TestAllTypes) MarshalJSON() ([]byte, error)

func (*TestAllTypes) ProtoMessage

func (*TestAllTypes) ProtoMessage()

func (*TestAllTypes) ProtoReflect

func (x *TestAllTypes) ProtoReflect() protoreflect.Message

func (*TestAllTypes) Reset

func (x *TestAllTypes) Reset()

func (*TestAllTypes) String

func (x *TestAllTypes) String() string

func (*TestAllTypes) UnmarshalJSON

func (m *TestAllTypes) UnmarshalJSON(b []byte) error

type TestAllTypes_NestedEnum

type TestAllTypes_NestedEnum int32
const (
	TestAllTypes_FOO TestAllTypes_NestedEnum = 1
	TestAllTypes_BAR TestAllTypes_NestedEnum = 2
	TestAllTypes_BAZ TestAllTypes_NestedEnum = 3
)

func (TestAllTypes_NestedEnum) Descriptor

func (TestAllTypes_NestedEnum) Enum

func (TestAllTypes_NestedEnum) EnumDescriptor deprecated

func (TestAllTypes_NestedEnum) EnumDescriptor() ([]byte, []int)

Deprecated: Use TestAllTypes_NestedEnum.Descriptor instead.

func (TestAllTypes_NestedEnum) Number

func (TestAllTypes_NestedEnum) String

func (x TestAllTypes_NestedEnum) String() string

func (TestAllTypes_NestedEnum) Type

func (*TestAllTypes_NestedEnum) UnmarshalJSON deprecated

func (x *TestAllTypes_NestedEnum) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type TestAllTypes_NestedMessage

type TestAllTypes_NestedMessage struct {
	IntField *int32 `protobuf:"varint,1,opt,name=int_field,json=intField" json:"int_field,omitempty"`
	// contains filtered or unexported fields
}

func (*TestAllTypes_NestedMessage) Descriptor deprecated

func (*TestAllTypes_NestedMessage) Descriptor() ([]byte, []int)

Deprecated: Use TestAllTypes_NestedMessage.ProtoReflect.Descriptor instead.

func (*TestAllTypes_NestedMessage) GetIntField

func (x *TestAllTypes_NestedMessage) GetIntField() int32

func (*TestAllTypes_NestedMessage) ProtoMessage

func (*TestAllTypes_NestedMessage) ProtoMessage()

func (*TestAllTypes_NestedMessage) ProtoReflect

func (*TestAllTypes_NestedMessage) Reset

func (x *TestAllTypes_NestedMessage) Reset()

func (*TestAllTypes_NestedMessage) String

func (x *TestAllTypes_NestedMessage) String() string

type TestObjectRepeatedPB

type TestObjectRepeatedPB struct {
	String1 []string                `protobuf:"bytes,1,rep,name=string1" json:"string1,omitempty"`
	Record  []*TestStringRepeatedPB `protobuf:"bytes,2,rep,name=record" json:"record,omitempty"`
	String2 []string                `protobuf:"bytes,3,rep,name=string2" json:"string2,omitempty"`
	// contains filtered or unexported fields
}

func (*TestObjectRepeatedPB) Descriptor deprecated

func (*TestObjectRepeatedPB) Descriptor() ([]byte, []int)

Deprecated: Use TestObjectRepeatedPB.ProtoReflect.Descriptor instead.

func (*TestObjectRepeatedPB) GetRecord

func (x *TestObjectRepeatedPB) GetRecord() []*TestStringRepeatedPB

func (*TestObjectRepeatedPB) GetString1

func (x *TestObjectRepeatedPB) GetString1() []string

func (*TestObjectRepeatedPB) GetString2

func (x *TestObjectRepeatedPB) GetString2() []string

func (*TestObjectRepeatedPB) MarshalJSON

func (m *TestObjectRepeatedPB) MarshalJSON() ([]byte, error)

func (*TestObjectRepeatedPB) ProtoMessage

func (*TestObjectRepeatedPB) ProtoMessage()

func (*TestObjectRepeatedPB) ProtoReflect

func (x *TestObjectRepeatedPB) ProtoReflect() protoreflect.Message

func (*TestObjectRepeatedPB) Reset

func (x *TestObjectRepeatedPB) Reset()

func (*TestObjectRepeatedPB) String

func (x *TestObjectRepeatedPB) String() string

func (*TestObjectRepeatedPB) UnmarshalJSON

func (m *TestObjectRepeatedPB) UnmarshalJSON(b []byte) error

type TestObjectRequiredPB

type TestObjectRequiredPB struct {
	String1 *string               `protobuf:"bytes,1,req,name=string1" json:"string1,omitempty"`
	Record  *TestStringRequiredPB `protobuf:"bytes,2,req,name=record" json:"record,omitempty"`
	String2 *string               `protobuf:"bytes,3,req,name=string2" json:"string2,omitempty"`
	// contains filtered or unexported fields
}

func (*TestObjectRequiredPB) Descriptor deprecated

func (*TestObjectRequiredPB) Descriptor() ([]byte, []int)

Deprecated: Use TestObjectRequiredPB.ProtoReflect.Descriptor instead.

func (*TestObjectRequiredPB) GetRecord

func (*TestObjectRequiredPB) GetString1

func (x *TestObjectRequiredPB) GetString1() string

func (*TestObjectRequiredPB) GetString2

func (x *TestObjectRequiredPB) GetString2() string

func (*TestObjectRequiredPB) MarshalJSON

func (m *TestObjectRequiredPB) MarshalJSON() ([]byte, error)

func (*TestObjectRequiredPB) ProtoMessage

func (*TestObjectRequiredPB) ProtoMessage()

func (*TestObjectRequiredPB) ProtoReflect

func (x *TestObjectRequiredPB) ProtoReflect() protoreflect.Message

func (*TestObjectRequiredPB) Reset

func (x *TestObjectRequiredPB) Reset()

func (*TestObjectRequiredPB) String

func (x *TestObjectRequiredPB) String() string

func (*TestObjectRequiredPB) UnmarshalJSON

func (m *TestObjectRequiredPB) UnmarshalJSON(b []byte) error

type TestPBEnum

type TestPBEnum int32
const (
	TestPBEnum_FOO TestPBEnum = 1
	TestPBEnum_BAR TestPBEnum = 2
	TestPBEnum_BAZ TestPBEnum = 3
)

func (TestPBEnum) Descriptor

func (TestPBEnum) Descriptor() protoreflect.EnumDescriptor

func (TestPBEnum) Enum

func (x TestPBEnum) Enum() *TestPBEnum

func (TestPBEnum) EnumDescriptor deprecated

func (TestPBEnum) EnumDescriptor() ([]byte, []int)

Deprecated: Use TestPBEnum.Descriptor instead.

func (TestPBEnum) Number

func (x TestPBEnum) Number() protoreflect.EnumNumber

func (TestPBEnum) String

func (x TestPBEnum) String() string

func (TestPBEnum) Type

func (*TestPBEnum) UnmarshalJSON deprecated

func (x *TestPBEnum) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type TestStringRepeatedPB

type TestStringRepeatedPB struct {
	Text []string `protobuf:"bytes,1,rep,name=text" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*TestStringRepeatedPB) Descriptor deprecated

func (*TestStringRepeatedPB) Descriptor() ([]byte, []int)

Deprecated: Use TestStringRepeatedPB.ProtoReflect.Descriptor instead.

func (*TestStringRepeatedPB) GetText

func (x *TestStringRepeatedPB) GetText() []string

func (*TestStringRepeatedPB) MarshalJSON

func (m *TestStringRepeatedPB) MarshalJSON() ([]byte, error)

func (*TestStringRepeatedPB) ProtoMessage

func (*TestStringRepeatedPB) ProtoMessage()

func (*TestStringRepeatedPB) ProtoReflect

func (x *TestStringRepeatedPB) ProtoReflect() protoreflect.Message

func (*TestStringRepeatedPB) Reset

func (x *TestStringRepeatedPB) Reset()

func (*TestStringRepeatedPB) String

func (x *TestStringRepeatedPB) String() string

func (*TestStringRepeatedPB) UnmarshalJSON

func (m *TestStringRepeatedPB) UnmarshalJSON(b []byte) error

type TestStringRequiredPB

type TestStringRequiredPB struct {
	Text *string `protobuf:"bytes,1,req,name=text" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*TestStringRequiredPB) Descriptor deprecated

func (*TestStringRequiredPB) Descriptor() ([]byte, []int)

Deprecated: Use TestStringRequiredPB.ProtoReflect.Descriptor instead.

func (*TestStringRequiredPB) GetText

func (x *TestStringRequiredPB) GetText() string

func (*TestStringRequiredPB) MarshalJSON

func (m *TestStringRequiredPB) MarshalJSON() ([]byte, error)

func (*TestStringRequiredPB) ProtoMessage

func (*TestStringRequiredPB) ProtoMessage()

func (*TestStringRequiredPB) ProtoReflect

func (x *TestStringRequiredPB) ProtoReflect() protoreflect.Message

func (*TestStringRequiredPB) Reset

func (x *TestStringRequiredPB) Reset()

func (*TestStringRequiredPB) String

func (x *TestStringRequiredPB) String() string

func (*TestStringRequiredPB) UnmarshalJSON

func (m *TestStringRequiredPB) UnmarshalJSON(b []byte) error

type UniverseKeyRegistryPB

type UniverseKeyRegistryPB struct {
	EncryptionEnabled bool                           `protobuf:"varint,1,opt,name=encryption_enabled,json=encryptionEnabled,proto3" json:"encryption_enabled,omitempty"`
	UniverseKeys      map[string]*EncryptionParamsPB `` /* 185-byte string literal not displayed */
	LatestVersionId   string                         `protobuf:"bytes,3,opt,name=latest_version_id,json=latestVersionId,proto3" json:"latest_version_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UniverseKeyRegistryPB) Descriptor deprecated

func (*UniverseKeyRegistryPB) Descriptor() ([]byte, []int)

Deprecated: Use UniverseKeyRegistryPB.ProtoReflect.Descriptor instead.

func (*UniverseKeyRegistryPB) GetEncryptionEnabled

func (x *UniverseKeyRegistryPB) GetEncryptionEnabled() bool

func (*UniverseKeyRegistryPB) GetLatestVersionId

func (x *UniverseKeyRegistryPB) GetLatestVersionId() string

func (*UniverseKeyRegistryPB) GetUniverseKeys

func (x *UniverseKeyRegistryPB) GetUniverseKeys() map[string]*EncryptionParamsPB

func (*UniverseKeyRegistryPB) MarshalJSON

func (m *UniverseKeyRegistryPB) MarshalJSON() ([]byte, error)

func (*UniverseKeyRegistryPB) ProtoMessage

func (*UniverseKeyRegistryPB) ProtoMessage()

func (*UniverseKeyRegistryPB) ProtoReflect

func (x *UniverseKeyRegistryPB) ProtoReflect() protoreflect.Message

func (*UniverseKeyRegistryPB) Reset

func (x *UniverseKeyRegistryPB) Reset()

func (*UniverseKeyRegistryPB) String

func (x *UniverseKeyRegistryPB) String() string

func (*UniverseKeyRegistryPB) UnmarshalJSON

func (m *UniverseKeyRegistryPB) UnmarshalJSON(b []byte) error

type UniverseKeysPB

type UniverseKeysPB struct {
	Map map[string][]byte `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UniverseKeysPB) Descriptor deprecated

func (*UniverseKeysPB) Descriptor() ([]byte, []int)

Deprecated: Use UniverseKeysPB.ProtoReflect.Descriptor instead.

func (*UniverseKeysPB) GetMap

func (x *UniverseKeysPB) GetMap() map[string][]byte

func (*UniverseKeysPB) MarshalJSON

func (m *UniverseKeysPB) MarshalJSON() ([]byte, error)

func (*UniverseKeysPB) ProtoMessage

func (*UniverseKeysPB) ProtoMessage()

func (*UniverseKeysPB) ProtoReflect

func (x *UniverseKeysPB) ProtoReflect() protoreflect.Message

func (*UniverseKeysPB) Reset

func (x *UniverseKeysPB) Reset()

func (*UniverseKeysPB) String

func (x *UniverseKeysPB) String() string

func (*UniverseKeysPB) UnmarshalJSON

func (m *UniverseKeysPB) UnmarshalJSON(b []byte) error

type VersionInfoPB

type VersionInfoPB struct {
	GitHash        *string `protobuf:"bytes,1,opt,name=git_hash,json=gitHash" json:"git_hash,omitempty"`
	BuildHostname  *string `protobuf:"bytes,2,opt,name=build_hostname,json=buildHostname" json:"build_hostname,omitempty"`
	BuildTimestamp *string `protobuf:"bytes,3,opt,name=build_timestamp,json=buildTimestamp" json:"build_timestamp,omitempty"`
	BuildUsername  *string `protobuf:"bytes,4,opt,name=build_username,json=buildUsername" json:"build_username,omitempty"`
	BuildCleanRepo *bool   `protobuf:"varint,5,opt,name=build_clean_repo,json=buildCleanRepo" json:"build_clean_repo,omitempty"`
	BuildId        *string `protobuf:"bytes,6,opt,name=build_id,json=buildId" json:"build_id,omitempty"`
	BuildType      *string `protobuf:"bytes,7,opt,name=build_type,json=buildType" json:"build_type,omitempty"`
	VersionNumber  *string `protobuf:"bytes,9,opt,name=version_number,json=versionNumber" json:"version_number,omitempty"`
	BuildNumber    *string `protobuf:"bytes,10,opt,name=build_number,json=buildNumber" json:"build_number,omitempty"`
	// contains filtered or unexported fields
}

Information about the build environment, configuration, etc.

func (*VersionInfoPB) Descriptor deprecated

func (*VersionInfoPB) Descriptor() ([]byte, []int)

Deprecated: Use VersionInfoPB.ProtoReflect.Descriptor instead.

func (*VersionInfoPB) GetBuildCleanRepo

func (x *VersionInfoPB) GetBuildCleanRepo() bool

func (*VersionInfoPB) GetBuildHostname

func (x *VersionInfoPB) GetBuildHostname() string

func (*VersionInfoPB) GetBuildId

func (x *VersionInfoPB) GetBuildId() string

func (*VersionInfoPB) GetBuildNumber

func (x *VersionInfoPB) GetBuildNumber() string

func (*VersionInfoPB) GetBuildTimestamp

func (x *VersionInfoPB) GetBuildTimestamp() string

func (*VersionInfoPB) GetBuildType

func (x *VersionInfoPB) GetBuildType() string

func (*VersionInfoPB) GetBuildUsername

func (x *VersionInfoPB) GetBuildUsername() string

func (*VersionInfoPB) GetGitHash

func (x *VersionInfoPB) GetGitHash() string

func (*VersionInfoPB) GetVersionNumber

func (x *VersionInfoPB) GetVersionNumber() string

func (*VersionInfoPB) MarshalJSON

func (m *VersionInfoPB) MarshalJSON() ([]byte, error)

func (*VersionInfoPB) ProtoMessage

func (*VersionInfoPB) ProtoMessage()

func (*VersionInfoPB) ProtoReflect

func (x *VersionInfoPB) ProtoReflect() protoreflect.Message

func (*VersionInfoPB) Reset

func (x *VersionInfoPB) Reset()

func (*VersionInfoPB) String

func (x *VersionInfoPB) String() string

func (*VersionInfoPB) UnmarshalJSON

func (m *VersionInfoPB) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL