2022-03-22 20:30:00 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2022-03-30 16:51:56 +00:00
|
|
|
// versions:
|
|
|
|
// protoc-gen-go v1.23.0
|
|
|
|
// protoc v3.15.8
|
2020-07-23 15:24:20 +00:00
|
|
|
// source: proto/pbcommon/common.proto
|
2019-09-20 18:37:22 +00:00
|
|
|
|
2020-07-23 15:24:20 +00:00
|
|
|
package pbcommon
|
2019-09-20 18:37:22 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
2022-03-30 16:51:56 +00:00
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
2019-09-20 18:37:22 +00:00
|
|
|
)
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
2019-09-20 18:37:22 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
|
// of the legacy proto package is being used.
|
|
|
|
const _ = proto.ProtoPackageIsVersion4
|
2019-09-20 18:37:22 +00:00
|
|
|
|
|
|
|
// RaftIndex is used to track the index used while creating
|
|
|
|
// or modifying a given struct type.
|
2022-03-23 13:25:56 +00:00
|
|
|
//
|
|
|
|
// mog annotation:
|
|
|
|
//
|
|
|
|
// target=github.com/hashicorp/consul/agent/structs.RaftIndex
|
|
|
|
// output=common.gen.go
|
|
|
|
// name=Structs
|
|
|
|
// ignore-fields=state,sizeCache,unknownFields
|
2019-09-20 18:37:22 +00:00
|
|
|
type RaftIndex struct {
|
2022-03-30 16:51:56 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-03-22 20:30:00 +00:00
|
|
|
// @gotags: bexpr:"-"
|
2019-09-20 18:37:22 +00:00
|
|
|
CreateIndex uint64 `protobuf:"varint,1,opt,name=CreateIndex,proto3" json:"CreateIndex,omitempty" bexpr:"-"`
|
2022-03-22 20:30:00 +00:00
|
|
|
// @gotags: bexpr:"-"
|
2022-03-30 16:51:56 +00:00
|
|
|
ModifyIndex uint64 `protobuf:"varint,2,opt,name=ModifyIndex,proto3" json:"ModifyIndex,omitempty" bexpr:"-"`
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *RaftIndex) Reset() {
|
|
|
|
*x = RaftIndex{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_proto_pbcommon_common_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
2022-03-22 20:30:00 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *RaftIndex) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
|
|
|
|
func (*RaftIndex) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *RaftIndex) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_proto_pbcommon_common_proto_msgTypes[0]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// Deprecated: Use RaftIndex.ProtoReflect.Descriptor instead.
|
|
|
|
func (*RaftIndex) Descriptor() ([]byte, []int) {
|
|
|
|
return file_proto_pbcommon_common_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
2019-09-20 18:37:22 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *RaftIndex) GetCreateIndex() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.CreateIndex
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *RaftIndex) GetModifyIndex() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.ModifyIndex
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-09-20 18:37:22 +00:00
|
|
|
// TargetDatacenter is intended to be used within other messages used for RPC routing
|
|
|
|
// amongst the various Consul datacenters
|
|
|
|
type TargetDatacenter struct {
|
2022-03-30 16:51:56 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2019-09-20 18:37:22 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
Datacenter string `protobuf:"bytes,1,opt,name=Datacenter,proto3" json:"Datacenter,omitempty"`
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
2022-03-22 20:30:00 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *TargetDatacenter) Reset() {
|
|
|
|
*x = TargetDatacenter{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_proto_pbcommon_common_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
|
|
|
|
func (x *TargetDatacenter) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
|
|
|
|
func (*TargetDatacenter) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *TargetDatacenter) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_proto_pbcommon_common_proto_msgTypes[1]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// Deprecated: Use TargetDatacenter.ProtoReflect.Descriptor instead.
|
|
|
|
func (*TargetDatacenter) Descriptor() ([]byte, []int) {
|
|
|
|
return file_proto_pbcommon_common_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
2019-09-20 18:37:22 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *TargetDatacenter) GetDatacenter() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Datacenter
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-03-25 13:30:30 +00:00
|
|
|
// mog annotation:
|
|
|
|
//
|
|
|
|
// target=github.com/hashicorp/consul/agent/structs.WriteRequest
|
|
|
|
// output=common.gen.go
|
|
|
|
// name=Structs
|
|
|
|
// ignore-fields=state,sizeCache,unknownFields
|
2019-09-20 18:37:22 +00:00
|
|
|
type WriteRequest struct {
|
2022-03-30 16:51:56 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2019-09-20 18:37:22 +00:00
|
|
|
// Token is the ACL token ID. If not provided, the 'anonymous'
|
|
|
|
// token is assumed for backwards compatibility.
|
2022-03-30 16:51:56 +00:00
|
|
|
Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"`
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *WriteRequest) Reset() {
|
|
|
|
*x = WriteRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_proto_pbcommon_common_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
2022-03-22 20:30:00 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *WriteRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
|
|
|
|
func (*WriteRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *WriteRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_proto_pbcommon_common_proto_msgTypes[2]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*WriteRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_proto_pbcommon_common_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
2019-09-20 18:37:22 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *WriteRequest) GetToken() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Token
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-07-22 18:58:08 +00:00
|
|
|
// ReadRequest is a type that may be embedded into any requests for read
|
|
|
|
// operations.
|
|
|
|
// It is a replacement for QueryOptions now that we no longer need any of those
|
|
|
|
// fields because we are moving away from using blocking queries.
|
|
|
|
// It is also similar to WriteRequest. It is a separate type so that in the
|
|
|
|
// future we can introduce fields that may only be relevant for reads.
|
|
|
|
type ReadRequest struct {
|
2022-03-30 16:51:56 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2021-07-22 18:58:08 +00:00
|
|
|
// Token is the ACL token ID. If not provided, the 'anonymous'
|
|
|
|
// token is assumed for backwards compatibility.
|
|
|
|
Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"`
|
|
|
|
// RequireConsistent indicates that the request must be sent to the leader.
|
2022-03-30 16:51:56 +00:00
|
|
|
RequireConsistent bool `protobuf:"varint,2,opt,name=RequireConsistent,proto3" json:"RequireConsistent,omitempty"`
|
2021-07-22 18:58:08 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *ReadRequest) Reset() {
|
|
|
|
*x = ReadRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_proto_pbcommon_common_proto_msgTypes[3]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2021-07-22 18:58:08 +00:00
|
|
|
}
|
2022-03-22 20:30:00 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *ReadRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2021-07-22 18:58:08 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
|
|
|
|
func (*ReadRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ReadRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_proto_pbcommon_common_proto_msgTypes[3]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2021-07-22 18:58:08 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ReadRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_proto_pbcommon_common_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
2021-07-22 18:58:08 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *ReadRequest) GetToken() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Token
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *ReadRequest) GetRequireConsistent() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.RequireConsistent
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2019-09-20 18:37:22 +00:00
|
|
|
// QueryOptions is used to specify various flags for read queries
|
2022-03-22 20:30:00 +00:00
|
|
|
//
|
|
|
|
// mog annotation:
|
|
|
|
//
|
|
|
|
// target=github.com/hashicorp/consul/agent/structs.QueryOptions
|
|
|
|
// output=common.gen.go
|
|
|
|
// name=Structs
|
|
|
|
// ignore-fields=StaleIfError,AllowNotModifiedResponse,state,sizeCache,unknownFields
|
2019-09-20 18:37:22 +00:00
|
|
|
type QueryOptions struct {
|
2022-03-30 16:51:56 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2019-09-20 18:37:22 +00:00
|
|
|
// Token is the ACL token ID. If not provided, the 'anonymous'
|
|
|
|
// token is assumed for backwards compatibility.
|
|
|
|
Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"`
|
|
|
|
// If set, wait until query exceeds given index. Must be provided
|
|
|
|
// with MaxQueryTime.
|
|
|
|
MinQueryIndex uint64 `protobuf:"varint,2,opt,name=MinQueryIndex,proto3" json:"MinQueryIndex,omitempty"`
|
|
|
|
// Provided with MinQueryIndex to wait for change.
|
2022-03-22 20:30:00 +00:00
|
|
|
// mog: func-to=structs.DurationFromProto func-from=structs.DurationToProto
|
2022-03-30 16:51:56 +00:00
|
|
|
MaxQueryTime *durationpb.Duration `protobuf:"bytes,3,opt,name=MaxQueryTime,proto3" json:"MaxQueryTime,omitempty"`
|
2019-09-20 18:37:22 +00:00
|
|
|
// If set, any follower can service the request. Results
|
|
|
|
// may be arbitrarily stale.
|
|
|
|
AllowStale bool `protobuf:"varint,4,opt,name=AllowStale,proto3" json:"AllowStale,omitempty"`
|
|
|
|
// If set, the leader must verify leadership prior to
|
|
|
|
// servicing the request. Prevents a stale read.
|
|
|
|
RequireConsistent bool `protobuf:"varint,5,opt,name=RequireConsistent,proto3" json:"RequireConsistent,omitempty"`
|
|
|
|
// If set, the local agent may respond with an arbitrarily stale locally
|
|
|
|
// cached response. The semantics differ from AllowStale since the agent may
|
|
|
|
// be entirely partitioned from the servers and still considered "healthy" by
|
|
|
|
// operators. Stale responses from Servers are also arbitrarily stale, but can
|
|
|
|
// provide additional bounds on the last contact time from the leader. It's
|
|
|
|
// expected that servers that are partitioned are noticed and replaced in a
|
|
|
|
// timely way by operators while the same may not be true for client agents.
|
|
|
|
UseCache bool `protobuf:"varint,6,opt,name=UseCache,proto3" json:"UseCache,omitempty"`
|
|
|
|
// If set and AllowStale is true, will try first a stale
|
|
|
|
// read, and then will perform a consistent read if stale
|
|
|
|
// read is older than value.
|
2022-03-22 20:30:00 +00:00
|
|
|
// mog: func-to=structs.DurationFromProto func-from=structs.DurationToProto
|
2022-03-30 16:51:56 +00:00
|
|
|
MaxStaleDuration *durationpb.Duration `protobuf:"bytes,7,opt,name=MaxStaleDuration,proto3" json:"MaxStaleDuration,omitempty"`
|
2019-09-20 18:37:22 +00:00
|
|
|
// MaxAge limits how old a cached value will be returned if UseCache is true.
|
|
|
|
// If there is a cached response that is older than the MaxAge, it is treated
|
|
|
|
// as a cache miss and a new fetch invoked. If the fetch fails, the error is
|
|
|
|
// returned. Clients that wish to allow for stale results on error can set
|
|
|
|
// StaleIfError to a longer duration to change this behavior. It is ignored
|
|
|
|
// if the endpoint supports background refresh caching. See
|
|
|
|
// https://www.consul.io/api/index.html#agent-caching for more details.
|
2022-03-22 20:30:00 +00:00
|
|
|
// mog: func-to=structs.DurationFromProto func-from=structs.DurationToProto
|
2022-03-30 16:51:56 +00:00
|
|
|
MaxAge *durationpb.Duration `protobuf:"bytes,8,opt,name=MaxAge,proto3" json:"MaxAge,omitempty"`
|
2019-09-20 18:37:22 +00:00
|
|
|
// MustRevalidate forces the agent to fetch a fresh version of a cached
|
|
|
|
// resource or at least validate that the cached version is still fresh. It is
|
|
|
|
// implied by either max-age=0 or must-revalidate Cache-Control headers. It
|
|
|
|
// only makes sense when UseCache is true. We store it since MaxAge = 0 is the
|
|
|
|
// default unset value.
|
|
|
|
MustRevalidate bool `protobuf:"varint,9,opt,name=MustRevalidate,proto3" json:"MustRevalidate,omitempty"`
|
|
|
|
// StaleIfError specifies how stale the client will accept a cached response
|
|
|
|
// if the servers are unavailable to fetch a fresh one. Only makes sense when
|
|
|
|
// UseCache is true and MaxAge is set to a lower, non-zero value. It is
|
|
|
|
// ignored if the endpoint supports background refresh caching. See
|
|
|
|
// https://www.consul.io/api/index.html#agent-caching for more details.
|
2022-03-30 16:51:56 +00:00
|
|
|
StaleIfError *durationpb.Duration `protobuf:"bytes,10,opt,name=StaleIfError,proto3" json:"StaleIfError,omitempty"`
|
2019-09-20 18:37:22 +00:00
|
|
|
// Filter specifies the go-bexpr filter expression to be used for
|
|
|
|
// filtering the data prior to returning a response
|
2022-03-30 16:51:56 +00:00
|
|
|
Filter string `protobuf:"bytes,11,opt,name=Filter,proto3" json:"Filter,omitempty"`
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryOptions) Reset() {
|
|
|
|
*x = QueryOptions{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_proto_pbcommon_common_proto_msgTypes[4]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
2022-03-22 20:30:00 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryOptions) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
|
|
|
|
func (*QueryOptions) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *QueryOptions) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_proto_pbcommon_common_proto_msgTypes[4]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// Deprecated: Use QueryOptions.ProtoReflect.Descriptor instead.
|
|
|
|
func (*QueryOptions) Descriptor() ([]byte, []int) {
|
|
|
|
return file_proto_pbcommon_common_proto_rawDescGZIP(), []int{4}
|
|
|
|
}
|
2019-09-20 18:37:22 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryOptions) GetToken() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Token
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryOptions) GetMinQueryIndex() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.MinQueryIndex
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryOptions) GetMaxQueryTime() *durationpb.Duration {
|
|
|
|
if x != nil {
|
|
|
|
return x.MaxQueryTime
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryOptions) GetAllowStale() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.AllowStale
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryOptions) GetRequireConsistent() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.RequireConsistent
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryOptions) GetUseCache() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.UseCache
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryOptions) GetMaxStaleDuration() *durationpb.Duration {
|
|
|
|
if x != nil {
|
|
|
|
return x.MaxStaleDuration
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryOptions) GetMaxAge() *durationpb.Duration {
|
|
|
|
if x != nil {
|
|
|
|
return x.MaxAge
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryOptions) GetMustRevalidate() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.MustRevalidate
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryOptions) GetStaleIfError() *durationpb.Duration {
|
|
|
|
if x != nil {
|
|
|
|
return x.StaleIfError
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryOptions) GetFilter() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Filter
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-09-20 18:37:22 +00:00
|
|
|
// QueryMeta allows a query response to include potentially
|
|
|
|
// useful metadata about a query
|
2022-03-22 20:30:00 +00:00
|
|
|
//
|
|
|
|
// mog annotation:
|
|
|
|
//
|
|
|
|
// target=github.com/hashicorp/consul/agent/structs.QueryMeta
|
|
|
|
// output=common.gen.go
|
|
|
|
// name=Structs
|
|
|
|
// ignore-fields=NotModified,Backend,state,sizeCache,unknownFields
|
2019-09-20 18:37:22 +00:00
|
|
|
type QueryMeta struct {
|
2022-03-30 16:51:56 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2019-09-20 18:37:22 +00:00
|
|
|
// This is the index associated with the read
|
|
|
|
Index uint64 `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"`
|
|
|
|
// If AllowStale is used, this is time elapsed since
|
|
|
|
// last contact between the follower and leader. This
|
|
|
|
// can be used to gauge staleness.
|
2022-03-22 20:30:00 +00:00
|
|
|
// mog: func-to=structs.DurationFromProto func-from=structs.DurationToProto
|
2022-03-30 16:51:56 +00:00
|
|
|
LastContact *durationpb.Duration `protobuf:"bytes,2,opt,name=LastContact,proto3" json:"LastContact,omitempty"`
|
2019-09-20 18:37:22 +00:00
|
|
|
// Used to indicate if there is a known leader node
|
|
|
|
KnownLeader bool `protobuf:"varint,3,opt,name=KnownLeader,proto3" json:"KnownLeader,omitempty"`
|
|
|
|
// Consistencylevel returns the consistency used to serve the query
|
|
|
|
// Having `discovery_max_stale` on the agent can affect whether
|
|
|
|
// the request was served by a leader.
|
|
|
|
ConsistencyLevel string `protobuf:"bytes,4,opt,name=ConsistencyLevel,proto3" json:"ConsistencyLevel,omitempty"`
|
2021-12-03 17:11:26 +00:00
|
|
|
// ResultsFilteredByACLs is true when some of the query's results were
|
|
|
|
// filtered out by enforcing ACLs. It may be false because nothing was
|
|
|
|
// removed, or because the endpoint does not yet support this flag.
|
2022-03-30 16:51:56 +00:00
|
|
|
ResultsFilteredByACLs bool `protobuf:"varint,7,opt,name=ResultsFilteredByACLs,proto3" json:"ResultsFilteredByACLs,omitempty"`
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryMeta) Reset() {
|
|
|
|
*x = QueryMeta{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_proto_pbcommon_common_proto_msgTypes[5]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
2022-03-22 20:30:00 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryMeta) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
|
|
|
|
func (*QueryMeta) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *QueryMeta) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_proto_pbcommon_common_proto_msgTypes[5]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// Deprecated: Use QueryMeta.ProtoReflect.Descriptor instead.
|
|
|
|
func (*QueryMeta) Descriptor() ([]byte, []int) {
|
|
|
|
return file_proto_pbcommon_common_proto_rawDescGZIP(), []int{5}
|
|
|
|
}
|
2019-09-20 18:37:22 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryMeta) GetIndex() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Index
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryMeta) GetLastContact() *durationpb.Duration {
|
|
|
|
if x != nil {
|
|
|
|
return x.LastContact
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryMeta) GetKnownLeader() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.KnownLeader
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryMeta) GetConsistencyLevel() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ConsistencyLevel
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *QueryMeta) GetResultsFilteredByACLs() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.ResultsFilteredByACLs
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-10-06 20:40:44 +00:00
|
|
|
// EnterpriseMeta contains metadata that is only used by the Enterprise version
|
|
|
|
// of Consul.
|
|
|
|
type EnterpriseMeta struct {
|
2022-03-30 16:51:56 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-10-06 20:40:44 +00:00
|
|
|
// Namespace in which the entity exists.
|
|
|
|
Namespace string `protobuf:"bytes,1,opt,name=Namespace,proto3" json:"Namespace,omitempty"`
|
2021-07-22 18:58:08 +00:00
|
|
|
// Partition in which the entity exists.
|
2022-03-30 16:51:56 +00:00
|
|
|
Partition string `protobuf:"bytes,2,opt,name=Partition,proto3" json:"Partition,omitempty"`
|
2020-10-06 20:40:44 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *EnterpriseMeta) Reset() {
|
|
|
|
*x = EnterpriseMeta{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_proto_pbcommon_common_proto_msgTypes[6]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-10-06 20:40:44 +00:00
|
|
|
}
|
2022-03-22 20:30:00 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *EnterpriseMeta) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-10-06 20:40:44 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
|
|
|
|
func (*EnterpriseMeta) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *EnterpriseMeta) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_proto_pbcommon_common_proto_msgTypes[6]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-10-06 20:40:44 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// Deprecated: Use EnterpriseMeta.ProtoReflect.Descriptor instead.
|
|
|
|
func (*EnterpriseMeta) Descriptor() ([]byte, []int) {
|
|
|
|
return file_proto_pbcommon_common_proto_rawDescGZIP(), []int{6}
|
|
|
|
}
|
2020-10-06 20:40:44 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *EnterpriseMeta) GetNamespace() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Namespace
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *EnterpriseMeta) GetPartition() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Partition
|
2022-03-22 20:30:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
var File_proto_pbcommon_common_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_proto_pbcommon_common_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x1b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
|
|
|
|
0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x63,
|
|
|
|
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
|
|
|
|
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4f, 0x0a, 0x09, 0x52, 0x61, 0x66, 0x74, 0x49, 0x6e, 0x64,
|
|
|
|
0x65, 0x78, 0x12, 0x20, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x64, 0x65,
|
|
|
|
0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49,
|
|
|
|
0x6e, 0x64, 0x65, 0x78, 0x12, 0x20, 0x0a, 0x0b, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x49, 0x6e,
|
|
|
|
0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x4d, 0x6f, 0x64, 0x69, 0x66,
|
|
|
|
0x79, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x32, 0x0a, 0x10, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74,
|
|
|
|
0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x44, 0x61,
|
|
|
|
0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
|
|
|
|
0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x24, 0x0a, 0x0c, 0x57, 0x72,
|
|
|
|
0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f,
|
|
|
|
0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
|
|
|
|
0x22, 0x51, 0x0a, 0x0b, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
|
|
|
0x14, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
|
|
|
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2c, 0x0a, 0x11, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
|
|
|
|
0x43, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
|
|
|
|
0x52, 0x11, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74,
|
|
|
|
0x65, 0x6e, 0x74, 0x22, 0xec, 0x03, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x70, 0x74,
|
|
|
|
0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x24, 0x0a, 0x0d, 0x4d, 0x69,
|
|
|
|
0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
0x04, 0x52, 0x0d, 0x4d, 0x69, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x64, 0x65, 0x78,
|
|
|
|
0x12, 0x3d, 0x0a, 0x0c, 0x4d, 0x61, 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65,
|
|
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
|
|
|
|
0x6e, 0x52, 0x0c, 0x4d, 0x61, 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12,
|
|
|
|
0x1e, 0x0a, 0x0a, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20,
|
|
|
|
0x01, 0x28, 0x08, 0x52, 0x0a, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x12,
|
|
|
|
0x2c, 0x0a, 0x11, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x73, 0x69, 0x73,
|
|
|
|
0x74, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x52, 0x65, 0x71, 0x75,
|
|
|
|
0x69, 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a,
|
|
|
|
0x08, 0x55, 0x73, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52,
|
|
|
|
0x08, 0x55, 0x73, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x45, 0x0a, 0x10, 0x4d, 0x61, 0x78,
|
|
|
|
0x53, 0x74, 0x61, 0x6c, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20,
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
|
|
|
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10,
|
|
|
|
0x4d, 0x61, 0x78, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
0x12, 0x31, 0x0a, 0x06, 0x4d, 0x61, 0x78, 0x41, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b,
|
|
|
|
0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
|
|
|
|
0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x4d, 0x61, 0x78,
|
|
|
|
0x41, 0x67, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x4d, 0x75, 0x73, 0x74, 0x52, 0x65, 0x76, 0x61, 0x6c,
|
|
|
|
0x69, 0x64, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x4d, 0x75, 0x73,
|
|
|
|
0x74, 0x52, 0x65, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x53,
|
|
|
|
0x74, 0x61, 0x6c, 0x65, 0x49, 0x66, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28,
|
|
|
|
0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x53, 0x74,
|
|
|
|
0x61, 0x6c, 0x65, 0x49, 0x66, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x46, 0x69,
|
|
|
|
0x6c, 0x74, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x46, 0x69, 0x6c, 0x74,
|
|
|
|
0x65, 0x72, 0x22, 0xee, 0x01, 0x0a, 0x09, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61,
|
|
|
|
0x12, 0x14, 0x0a, 0x05, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52,
|
|
|
|
0x05, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x3b, 0x0a, 0x0b, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f,
|
|
|
|
0x6e, 0x74, 0x61, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f,
|
|
|
|
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75,
|
|
|
|
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74,
|
|
|
|
0x61, 0x63, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x4c, 0x65, 0x61, 0x64,
|
|
|
|
0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x4c,
|
|
|
|
0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74,
|
|
|
|
0x65, 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x10, 0x43, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65,
|
|
|
|
0x6c, 0x12, 0x34, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x46, 0x69, 0x6c, 0x74,
|
|
|
|
0x65, 0x72, 0x65, 0x64, 0x42, 0x79, 0x41, 0x43, 0x4c, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08,
|
|
|
|
0x52, 0x15, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x65,
|
|
|
|
0x64, 0x42, 0x79, 0x41, 0x43, 0x4c, 0x73, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x4a, 0x04, 0x08,
|
|
|
|
0x06, 0x10, 0x07, 0x22, 0x4c, 0x0a, 0x0e, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73,
|
|
|
|
0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61,
|
|
|
|
0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70,
|
|
|
|
0x61, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f,
|
|
|
|
0x6e, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
|
|
|
0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6c,
|
|
|
|
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62,
|
|
|
|
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_proto_pbcommon_common_proto_rawDescOnce sync.Once
|
|
|
|
file_proto_pbcommon_common_proto_rawDescData = file_proto_pbcommon_common_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_proto_pbcommon_common_proto_rawDescGZIP() []byte {
|
|
|
|
file_proto_pbcommon_common_proto_rawDescOnce.Do(func() {
|
|
|
|
file_proto_pbcommon_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_pbcommon_common_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_proto_pbcommon_common_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
|
|
|
var file_proto_pbcommon_common_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
|
|
var file_proto_pbcommon_common_proto_goTypes = []interface{}{
|
|
|
|
(*RaftIndex)(nil), // 0: common.RaftIndex
|
|
|
|
(*TargetDatacenter)(nil), // 1: common.TargetDatacenter
|
|
|
|
(*WriteRequest)(nil), // 2: common.WriteRequest
|
|
|
|
(*ReadRequest)(nil), // 3: common.ReadRequest
|
|
|
|
(*QueryOptions)(nil), // 4: common.QueryOptions
|
|
|
|
(*QueryMeta)(nil), // 5: common.QueryMeta
|
|
|
|
(*EnterpriseMeta)(nil), // 6: common.EnterpriseMeta
|
|
|
|
(*durationpb.Duration)(nil), // 7: google.protobuf.Duration
|
|
|
|
}
|
|
|
|
var file_proto_pbcommon_common_proto_depIdxs = []int32{
|
|
|
|
7, // 0: common.QueryOptions.MaxQueryTime:type_name -> google.protobuf.Duration
|
|
|
|
7, // 1: common.QueryOptions.MaxStaleDuration:type_name -> google.protobuf.Duration
|
|
|
|
7, // 2: common.QueryOptions.MaxAge:type_name -> google.protobuf.Duration
|
|
|
|
7, // 3: common.QueryOptions.StaleIfError:type_name -> google.protobuf.Duration
|
|
|
|
7, // 4: common.QueryMeta.LastContact:type_name -> google.protobuf.Duration
|
|
|
|
5, // [5:5] is the sub-list for method output_type
|
|
|
|
5, // [5:5] is the sub-list for method input_type
|
|
|
|
5, // [5:5] is the sub-list for extension type_name
|
|
|
|
5, // [5:5] is the sub-list for extension extendee
|
|
|
|
0, // [0:5] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_proto_pbcommon_common_proto_init() }
|
|
|
|
func file_proto_pbcommon_common_proto_init() {
|
|
|
|
if File_proto_pbcommon_common_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_proto_pbcommon_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*RaftIndex); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_proto_pbcommon_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*TargetDatacenter); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_proto_pbcommon_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*WriteRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_proto_pbcommon_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*ReadRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_proto_pbcommon_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*QueryOptions); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_proto_pbcommon_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*QueryMeta); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_proto_pbcommon_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*EnterpriseMeta); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_proto_pbcommon_common_proto_rawDesc,
|
|
|
|
NumEnums: 0,
|
|
|
|
NumMessages: 7,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 0,
|
|
|
|
},
|
|
|
|
GoTypes: file_proto_pbcommon_common_proto_goTypes,
|
|
|
|
DependencyIndexes: file_proto_pbcommon_common_proto_depIdxs,
|
|
|
|
MessageInfos: file_proto_pbcommon_common_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_proto_pbcommon_common_proto = out.File
|
|
|
|
file_proto_pbcommon_common_proto_rawDesc = nil
|
|
|
|
file_proto_pbcommon_common_proto_goTypes = nil
|
|
|
|
file_proto_pbcommon_common_proto_depIdxs = nil
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|