2020-06-05 19:56:19 +00:00
// Code generated by protoc-gen-gogo. DO NOT EDIT.
2020-07-23 15:24:20 +00:00
// source: proto/pbconfig/config.proto
2020-06-05 19:56:19 +00:00
2020-07-23 15:24:20 +00:00
package pbconfig
2020-06-05 19:56:19 +00:00
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
io "io"
math "math"
2020-07-29 16:09:10 +00:00
math_bits "math/bits"
2020-06-05 19:56:19 +00:00
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto . Marshal
var _ = fmt . Errorf
var _ = math . Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
2021-08-12 18:05:46 +00:00
const _ = proto . ProtoPackageIsVersion3 // please upgrade the proto package
2020-06-05 19:56:19 +00:00
type Config struct {
Datacenter string ` protobuf:"bytes,1,opt,name=Datacenter,proto3" json:"Datacenter,omitempty" `
PrimaryDatacenter string ` protobuf:"bytes,2,opt,name=PrimaryDatacenter,proto3" json:"PrimaryDatacenter,omitempty" `
NodeName string ` protobuf:"bytes,3,opt,name=NodeName,proto3" json:"NodeName,omitempty" `
SegmentName string ` protobuf:"bytes,4,opt,name=SegmentName,proto3" json:"SegmentName,omitempty" `
ACL * ACL ` protobuf:"bytes,5,opt,name=ACL,proto3" json:"ACL,omitempty" `
AutoEncrypt * AutoEncrypt ` protobuf:"bytes,6,opt,name=AutoEncrypt,proto3" json:"AutoEncrypt,omitempty" `
Gossip * Gossip ` protobuf:"bytes,7,opt,name=Gossip,proto3" json:"Gossip,omitempty" `
TLS * TLS ` protobuf:"bytes,8,opt,name=TLS,proto3" json:"TLS,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
}
func ( m * Config ) Reset ( ) { * m = Config { } }
func ( m * Config ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * Config ) ProtoMessage ( ) { }
func ( * Config ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2020-07-23 15:24:20 +00:00
return fileDescriptor_aefa824db7b74d77 , [ ] int { 0 }
2020-06-05 19:56:19 +00:00
}
func ( m * Config ) XXX_Unmarshal ( b [ ] byte ) error {
return m . Unmarshal ( b )
}
func ( m * Config ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
if deterministic {
return xxx_messageInfo_Config . Marshal ( b , m , deterministic )
} else {
b = b [ : cap ( b ) ]
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( b )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return b [ : n ] , nil
}
}
func ( m * Config ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_Config . Merge ( m , src )
}
func ( m * Config ) XXX_Size ( ) int {
return m . Size ( )
}
func ( m * Config ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_Config . DiscardUnknown ( m )
}
var xxx_messageInfo_Config proto . InternalMessageInfo
func ( m * Config ) GetDatacenter ( ) string {
if m != nil {
return m . Datacenter
}
return ""
}
func ( m * Config ) GetPrimaryDatacenter ( ) string {
if m != nil {
return m . PrimaryDatacenter
}
return ""
}
func ( m * Config ) GetNodeName ( ) string {
if m != nil {
return m . NodeName
}
return ""
}
func ( m * Config ) GetSegmentName ( ) string {
if m != nil {
return m . SegmentName
}
return ""
}
func ( m * Config ) GetACL ( ) * ACL {
if m != nil {
return m . ACL
}
return nil
}
func ( m * Config ) GetAutoEncrypt ( ) * AutoEncrypt {
if m != nil {
return m . AutoEncrypt
}
return nil
}
func ( m * Config ) GetGossip ( ) * Gossip {
if m != nil {
return m . Gossip
}
return nil
}
func ( m * Config ) GetTLS ( ) * TLS {
if m != nil {
return m . TLS
}
return nil
}
type Gossip struct {
Encryption * GossipEncryption ` protobuf:"bytes,1,opt,name=Encryption,proto3" json:"Encryption,omitempty" `
RetryJoinLAN [ ] string ` protobuf:"bytes,2,rep,name=RetryJoinLAN,proto3" json:"RetryJoinLAN,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
}
func ( m * Gossip ) Reset ( ) { * m = Gossip { } }
func ( m * Gossip ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * Gossip ) ProtoMessage ( ) { }
func ( * Gossip ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2020-07-23 15:24:20 +00:00
return fileDescriptor_aefa824db7b74d77 , [ ] int { 1 }
2020-06-05 19:56:19 +00:00
}
func ( m * Gossip ) XXX_Unmarshal ( b [ ] byte ) error {
return m . Unmarshal ( b )
}
func ( m * Gossip ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
if deterministic {
return xxx_messageInfo_Gossip . Marshal ( b , m , deterministic )
} else {
b = b [ : cap ( b ) ]
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( b )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return b [ : n ] , nil
}
}
func ( m * Gossip ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_Gossip . Merge ( m , src )
}
func ( m * Gossip ) XXX_Size ( ) int {
return m . Size ( )
}
func ( m * Gossip ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_Gossip . DiscardUnknown ( m )
}
var xxx_messageInfo_Gossip proto . InternalMessageInfo
func ( m * Gossip ) GetEncryption ( ) * GossipEncryption {
if m != nil {
return m . Encryption
}
return nil
}
func ( m * Gossip ) GetRetryJoinLAN ( ) [ ] string {
if m != nil {
return m . RetryJoinLAN
}
return nil
}
type GossipEncryption struct {
Key string ` protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty" `
VerifyIncoming bool ` protobuf:"varint,2,opt,name=VerifyIncoming,proto3" json:"VerifyIncoming,omitempty" `
VerifyOutgoing bool ` protobuf:"varint,3,opt,name=VerifyOutgoing,proto3" json:"VerifyOutgoing,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
}
func ( m * GossipEncryption ) Reset ( ) { * m = GossipEncryption { } }
func ( m * GossipEncryption ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * GossipEncryption ) ProtoMessage ( ) { }
func ( * GossipEncryption ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2020-07-23 15:24:20 +00:00
return fileDescriptor_aefa824db7b74d77 , [ ] int { 2 }
2020-06-05 19:56:19 +00:00
}
func ( m * GossipEncryption ) XXX_Unmarshal ( b [ ] byte ) error {
return m . Unmarshal ( b )
}
func ( m * GossipEncryption ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
if deterministic {
return xxx_messageInfo_GossipEncryption . Marshal ( b , m , deterministic )
} else {
b = b [ : cap ( b ) ]
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( b )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return b [ : n ] , nil
}
}
func ( m * GossipEncryption ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_GossipEncryption . Merge ( m , src )
}
func ( m * GossipEncryption ) XXX_Size ( ) int {
return m . Size ( )
}
func ( m * GossipEncryption ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_GossipEncryption . DiscardUnknown ( m )
}
var xxx_messageInfo_GossipEncryption proto . InternalMessageInfo
func ( m * GossipEncryption ) GetKey ( ) string {
if m != nil {
return m . Key
}
return ""
}
func ( m * GossipEncryption ) GetVerifyIncoming ( ) bool {
if m != nil {
return m . VerifyIncoming
}
return false
}
func ( m * GossipEncryption ) GetVerifyOutgoing ( ) bool {
if m != nil {
return m . VerifyOutgoing
}
return false
}
type TLS struct {
VerifyOutgoing bool ` protobuf:"varint,1,opt,name=VerifyOutgoing,proto3" json:"VerifyOutgoing,omitempty" `
VerifyServerHostname bool ` protobuf:"varint,2,opt,name=VerifyServerHostname,proto3" json:"VerifyServerHostname,omitempty" `
CipherSuites string ` protobuf:"bytes,3,opt,name=CipherSuites,proto3" json:"CipherSuites,omitempty" `
MinVersion string ` protobuf:"bytes,4,opt,name=MinVersion,proto3" json:"MinVersion,omitempty" `
PreferServerCipherSuites bool ` protobuf:"varint,5,opt,name=PreferServerCipherSuites,proto3" json:"PreferServerCipherSuites,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
}
func ( m * TLS ) Reset ( ) { * m = TLS { } }
func ( m * TLS ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * TLS ) ProtoMessage ( ) { }
func ( * TLS ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2020-07-23 15:24:20 +00:00
return fileDescriptor_aefa824db7b74d77 , [ ] int { 3 }
2020-06-05 19:56:19 +00:00
}
func ( m * TLS ) XXX_Unmarshal ( b [ ] byte ) error {
return m . Unmarshal ( b )
}
func ( m * TLS ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
if deterministic {
return xxx_messageInfo_TLS . Marshal ( b , m , deterministic )
} else {
b = b [ : cap ( b ) ]
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( b )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return b [ : n ] , nil
}
}
func ( m * TLS ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_TLS . Merge ( m , src )
}
func ( m * TLS ) XXX_Size ( ) int {
return m . Size ( )
}
func ( m * TLS ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_TLS . DiscardUnknown ( m )
}
var xxx_messageInfo_TLS proto . InternalMessageInfo
func ( m * TLS ) GetVerifyOutgoing ( ) bool {
if m != nil {
return m . VerifyOutgoing
}
return false
}
func ( m * TLS ) GetVerifyServerHostname ( ) bool {
if m != nil {
return m . VerifyServerHostname
}
return false
}
func ( m * TLS ) GetCipherSuites ( ) string {
if m != nil {
return m . CipherSuites
}
return ""
}
func ( m * TLS ) GetMinVersion ( ) string {
if m != nil {
return m . MinVersion
}
return ""
}
func ( m * TLS ) GetPreferServerCipherSuites ( ) bool {
if m != nil {
return m . PreferServerCipherSuites
}
return false
}
type ACL struct {
2021-08-09 20:04:23 +00:00
Enabled bool ` protobuf:"varint,1,opt,name=Enabled,proto3" json:"Enabled,omitempty" `
PolicyTTL string ` protobuf:"bytes,2,opt,name=PolicyTTL,proto3" json:"PolicyTTL,omitempty" `
RoleTTL string ` protobuf:"bytes,3,opt,name=RoleTTL,proto3" json:"RoleTTL,omitempty" `
TokenTTL string ` protobuf:"bytes,4,opt,name=TokenTTL,proto3" json:"TokenTTL,omitempty" `
DownPolicy string ` protobuf:"bytes,5,opt,name=DownPolicy,proto3" json:"DownPolicy,omitempty" `
DefaultPolicy string ` protobuf:"bytes,6,opt,name=DefaultPolicy,proto3" json:"DefaultPolicy,omitempty" `
EnableKeyListPolicy bool ` protobuf:"varint,7,opt,name=EnableKeyListPolicy,proto3" json:"EnableKeyListPolicy,omitempty" `
Tokens * ACLTokens ` protobuf:"bytes,8,opt,name=Tokens,proto3" json:"Tokens,omitempty" `
2021-08-11 16:07:55 +00:00
// Deprecated_DisabledTTL is deprecated. It is no longer populated and should
// be ignored by clients.
Deprecated_DisabledTTL string ` protobuf:"bytes,9,opt,name=Deprecated_DisabledTTL,json=DeprecatedDisabledTTL,proto3" json:"Deprecated_DisabledTTL,omitempty" ` // Deprecated: Do not use.
2021-08-09 20:04:23 +00:00
EnableTokenPersistence bool ` protobuf:"varint,10,opt,name=EnableTokenPersistence,proto3" json:"EnableTokenPersistence,omitempty" `
MSPDisableBootstrap bool ` protobuf:"varint,11,opt,name=MSPDisableBootstrap,proto3" json:"MSPDisableBootstrap,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
2020-06-05 19:56:19 +00:00
}
func ( m * ACL ) Reset ( ) { * m = ACL { } }
func ( m * ACL ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * ACL ) ProtoMessage ( ) { }
func ( * ACL ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2020-07-23 15:24:20 +00:00
return fileDescriptor_aefa824db7b74d77 , [ ] int { 4 }
2020-06-05 19:56:19 +00:00
}
func ( m * ACL ) XXX_Unmarshal ( b [ ] byte ) error {
return m . Unmarshal ( b )
}
func ( m * ACL ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
if deterministic {
return xxx_messageInfo_ACL . Marshal ( b , m , deterministic )
} else {
b = b [ : cap ( b ) ]
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( b )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return b [ : n ] , nil
}
}
func ( m * ACL ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_ACL . Merge ( m , src )
}
func ( m * ACL ) XXX_Size ( ) int {
return m . Size ( )
}
func ( m * ACL ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_ACL . DiscardUnknown ( m )
}
var xxx_messageInfo_ACL proto . InternalMessageInfo
func ( m * ACL ) GetEnabled ( ) bool {
if m != nil {
return m . Enabled
}
return false
}
func ( m * ACL ) GetPolicyTTL ( ) string {
if m != nil {
return m . PolicyTTL
}
return ""
}
func ( m * ACL ) GetRoleTTL ( ) string {
if m != nil {
return m . RoleTTL
}
return ""
}
func ( m * ACL ) GetTokenTTL ( ) string {
if m != nil {
return m . TokenTTL
}
return ""
}
func ( m * ACL ) GetDownPolicy ( ) string {
if m != nil {
return m . DownPolicy
}
return ""
}
func ( m * ACL ) GetDefaultPolicy ( ) string {
if m != nil {
return m . DefaultPolicy
}
return ""
}
func ( m * ACL ) GetEnableKeyListPolicy ( ) bool {
if m != nil {
return m . EnableKeyListPolicy
}
return false
}
func ( m * ACL ) GetTokens ( ) * ACLTokens {
if m != nil {
return m . Tokens
}
return nil
}
2021-08-11 16:07:55 +00:00
// Deprecated: Do not use.
func ( m * ACL ) GetDeprecated_DisabledTTL ( ) string {
2020-06-05 19:56:19 +00:00
if m != nil {
2021-08-11 16:07:55 +00:00
return m . Deprecated_DisabledTTL
2020-06-05 19:56:19 +00:00
}
return ""
}
func ( m * ACL ) GetEnableTokenPersistence ( ) bool {
if m != nil {
return m . EnableTokenPersistence
}
return false
}
func ( m * ACL ) GetMSPDisableBootstrap ( ) bool {
if m != nil {
return m . MSPDisableBootstrap
}
return false
}
type ACLTokens struct {
Master string ` protobuf:"bytes,1,opt,name=Master,proto3" json:"Master,omitempty" `
Replication string ` protobuf:"bytes,2,opt,name=Replication,proto3" json:"Replication,omitempty" `
AgentMaster string ` protobuf:"bytes,3,opt,name=AgentMaster,proto3" json:"AgentMaster,omitempty" `
Default string ` protobuf:"bytes,4,opt,name=Default,proto3" json:"Default,omitempty" `
Agent string ` protobuf:"bytes,5,opt,name=Agent,proto3" json:"Agent,omitempty" `
ManagedServiceProvider [ ] * ACLServiceProviderToken ` protobuf:"bytes,6,rep,name=ManagedServiceProvider,proto3" json:"ManagedServiceProvider,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
}
func ( m * ACLTokens ) Reset ( ) { * m = ACLTokens { } }
func ( m * ACLTokens ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * ACLTokens ) ProtoMessage ( ) { }
func ( * ACLTokens ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2020-07-23 15:24:20 +00:00
return fileDescriptor_aefa824db7b74d77 , [ ] int { 5 }
2020-06-05 19:56:19 +00:00
}
func ( m * ACLTokens ) XXX_Unmarshal ( b [ ] byte ) error {
return m . Unmarshal ( b )
}
func ( m * ACLTokens ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
if deterministic {
return xxx_messageInfo_ACLTokens . Marshal ( b , m , deterministic )
} else {
b = b [ : cap ( b ) ]
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( b )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return b [ : n ] , nil
}
}
func ( m * ACLTokens ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_ACLTokens . Merge ( m , src )
}
func ( m * ACLTokens ) XXX_Size ( ) int {
return m . Size ( )
}
func ( m * ACLTokens ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_ACLTokens . DiscardUnknown ( m )
}
var xxx_messageInfo_ACLTokens proto . InternalMessageInfo
func ( m * ACLTokens ) GetMaster ( ) string {
if m != nil {
return m . Master
}
return ""
}
func ( m * ACLTokens ) GetReplication ( ) string {
if m != nil {
return m . Replication
}
return ""
}
func ( m * ACLTokens ) GetAgentMaster ( ) string {
if m != nil {
return m . AgentMaster
}
return ""
}
func ( m * ACLTokens ) GetDefault ( ) string {
if m != nil {
return m . Default
}
return ""
}
func ( m * ACLTokens ) GetAgent ( ) string {
if m != nil {
return m . Agent
}
return ""
}
func ( m * ACLTokens ) GetManagedServiceProvider ( ) [ ] * ACLServiceProviderToken {
if m != nil {
return m . ManagedServiceProvider
}
return nil
}
type ACLServiceProviderToken struct {
AccessorID string ` protobuf:"bytes,1,opt,name=AccessorID,proto3" json:"AccessorID,omitempty" `
SecretID string ` protobuf:"bytes,2,opt,name=SecretID,proto3" json:"SecretID,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
}
func ( m * ACLServiceProviderToken ) Reset ( ) { * m = ACLServiceProviderToken { } }
func ( m * ACLServiceProviderToken ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * ACLServiceProviderToken ) ProtoMessage ( ) { }
func ( * ACLServiceProviderToken ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2020-07-23 15:24:20 +00:00
return fileDescriptor_aefa824db7b74d77 , [ ] int { 6 }
2020-06-05 19:56:19 +00:00
}
func ( m * ACLServiceProviderToken ) XXX_Unmarshal ( b [ ] byte ) error {
return m . Unmarshal ( b )
}
func ( m * ACLServiceProviderToken ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
if deterministic {
return xxx_messageInfo_ACLServiceProviderToken . Marshal ( b , m , deterministic )
} else {
b = b [ : cap ( b ) ]
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( b )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return b [ : n ] , nil
}
}
func ( m * ACLServiceProviderToken ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_ACLServiceProviderToken . Merge ( m , src )
}
func ( m * ACLServiceProviderToken ) XXX_Size ( ) int {
return m . Size ( )
}
func ( m * ACLServiceProviderToken ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_ACLServiceProviderToken . DiscardUnknown ( m )
}
var xxx_messageInfo_ACLServiceProviderToken proto . InternalMessageInfo
func ( m * ACLServiceProviderToken ) GetAccessorID ( ) string {
if m != nil {
return m . AccessorID
}
return ""
}
func ( m * ACLServiceProviderToken ) GetSecretID ( ) string {
if m != nil {
return m . SecretID
}
return ""
}
type AutoEncrypt struct {
TLS bool ` protobuf:"varint,1,opt,name=TLS,proto3" json:"TLS,omitempty" `
DNSSAN [ ] string ` protobuf:"bytes,2,rep,name=DNSSAN,proto3" json:"DNSSAN,omitempty" `
IPSAN [ ] string ` protobuf:"bytes,3,rep,name=IPSAN,proto3" json:"IPSAN,omitempty" `
AllowTLS bool ` protobuf:"varint,4,opt,name=AllowTLS,proto3" json:"AllowTLS,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
}
func ( m * AutoEncrypt ) Reset ( ) { * m = AutoEncrypt { } }
func ( m * AutoEncrypt ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * AutoEncrypt ) ProtoMessage ( ) { }
func ( * AutoEncrypt ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2020-07-23 15:24:20 +00:00
return fileDescriptor_aefa824db7b74d77 , [ ] int { 7 }
2020-06-05 19:56:19 +00:00
}
func ( m * AutoEncrypt ) XXX_Unmarshal ( b [ ] byte ) error {
return m . Unmarshal ( b )
}
func ( m * AutoEncrypt ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
if deterministic {
return xxx_messageInfo_AutoEncrypt . Marshal ( b , m , deterministic )
} else {
b = b [ : cap ( b ) ]
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( b )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return b [ : n ] , nil
}
}
func ( m * AutoEncrypt ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_AutoEncrypt . Merge ( m , src )
}
func ( m * AutoEncrypt ) XXX_Size ( ) int {
return m . Size ( )
}
func ( m * AutoEncrypt ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_AutoEncrypt . DiscardUnknown ( m )
}
var xxx_messageInfo_AutoEncrypt proto . InternalMessageInfo
func ( m * AutoEncrypt ) GetTLS ( ) bool {
if m != nil {
return m . TLS
}
return false
}
func ( m * AutoEncrypt ) GetDNSSAN ( ) [ ] string {
if m != nil {
return m . DNSSAN
}
return nil
}
func ( m * AutoEncrypt ) GetIPSAN ( ) [ ] string {
if m != nil {
return m . IPSAN
}
return nil
}
func ( m * AutoEncrypt ) GetAllowTLS ( ) bool {
if m != nil {
return m . AllowTLS
}
return false
}
func init ( ) {
proto . RegisterType ( ( * Config ) ( nil ) , "config.Config" )
proto . RegisterType ( ( * Gossip ) ( nil ) , "config.Gossip" )
proto . RegisterType ( ( * GossipEncryption ) ( nil ) , "config.GossipEncryption" )
proto . RegisterType ( ( * TLS ) ( nil ) , "config.TLS" )
proto . RegisterType ( ( * ACL ) ( nil ) , "config.ACL" )
proto . RegisterType ( ( * ACLTokens ) ( nil ) , "config.ACLTokens" )
proto . RegisterType ( ( * ACLServiceProviderToken ) ( nil ) , "config.ACLServiceProviderToken" )
proto . RegisterType ( ( * AutoEncrypt ) ( nil ) , "config.AutoEncrypt" )
}
2020-07-23 15:24:20 +00:00
func init ( ) { proto . RegisterFile ( "proto/pbconfig/config.proto" , fileDescriptor_aefa824db7b74d77 ) }
var fileDescriptor_aefa824db7b74d77 = [ ] byte {
2021-08-11 16:07:55 +00:00
// 802 bytes of a gzipped FileDescriptorProto
0x1f , 0x8b , 0x08 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x02 , 0xff , 0x74 , 0x55 , 0xdd , 0x8e , 0x22 , 0x45 ,
0x14 , 0xb6 , 0xa7 , 0x77 , 0x7a , 0x86 , 0x83 , 0x6e , 0x76 , 0x6b , 0x57 , 0xec , 0xf8 , 0x83 , 0xa4 , 0x63 ,
0x36 , 0xa3 , 0x31 , 0x83 , 0xc1 , 0x68 , 0xd4 , 0x78 , 0xc3 , 0xc0 , 0x46 , 0x71 , 0x01 , 0x49 , 0x37 , 0xae ,
0x89 , 0x37 , 0xa6 , 0x69 , 0x0e , 0x50 , 0xb1 , 0xa9 , 0xea , 0x54 , 0x17 , 0x3b , 0xe1 , 0x4d , 0x7c , 0x0d ,
0xaf , 0x7d , 0x01 , 0x2f , 0x7d , 0x04 , 0x1d , 0x5f , 0xc0 , 0x47 , 0x30 , 0xf5 , 0xd3 , 0x4d , 0xf7 , 0x08 ,
0x57 , 0x70 , 0xbe , 0xef , 0xab , 0x53 , 0xe7 , 0xaf , 0x4e , 0xc3 , 0x3b , 0x99 , 0xe0 , 0x92 , 0x77 , 0xb3 ,
0x45 , 0xc2 , 0xd9 , 0x8a , 0xae , 0xbb , 0xe6 , 0xe7 , 0x5a , 0xa3 , 0xc4 , 0x33 , 0x56 , 0xf0 , 0xdb , 0x19 ,
0x78 , 0x03 , 0xfd , 0x97 , 0xb4 , 0x01 , 0x86 , 0xb1 , 0x8c , 0x13 , 0x64 , 0x12 , 0x85 , 0xef , 0x74 , 0x9c ,
0xab , 0x46 , 0x58 , 0x41 , 0xc8 , 0xc7 , 0xf0 , 0x78 , 0x26 , 0xe8 , 0x36 , 0x16 , 0xfb , 0x8a , 0xec , 0x4c ,
0xcb , 0xfe , 0x4f , 0x90 , 0xb7 , 0xe1 , 0x72 , 0xca , 0x97 , 0x38 , 0x8d , 0xb7 , 0xe8 , 0xbb , 0x5a , 0x54 ,
0xda , 0xa4 , 0x03 , 0xcd , 0x08 , 0xd7 , 0x5b , 0x64 , 0x52 , 0xd3 , 0x0f , 0x34 , 0x5d , 0x85 , 0xc8 , 0x7b ,
0xe0 , 0xf6 , 0x07 , 0x63 , 0xff , 0xbc , 0xe3 , 0x5c , 0x35 , 0x7b , 0xcd , 0x6b , 0x1b , 0x7a , 0x7f , 0x30 ,
0x0e , 0x15 , 0x4e , 0x3e , 0x83 , 0x66 , 0x7f , 0x27 , 0xf9 , 0x73 , 0x96 , 0x88 , 0x7d , 0x26 , 0x7d , 0x4f ,
0xcb , 0x9e , 0x94 , 0xb2 , 0x03 , 0x15 , 0x56 , 0x75 , 0xe4 , 0x19 , 0x78 , 0xdf , 0xf0 , 0x3c , 0xa7 , 0x99 ,
0x7f , 0xa1 , 0x4f , 0x3c , 0x2c , 0x4e , 0x18 , 0x34 , 0xb4 , 0xac , 0xba , 0x7d , 0x3e , 0x8e , 0xfc , 0xcb ,
0xfa , 0xed , 0xf3 , 0x71 , 0x14 , 0x2a , 0x3c , 0x58 , 0x15 , 0x6e , 0xc8 , 0x17 , 0x00 , 0xd6 , 0x37 , 0xe5 ,
0x4c , 0x97 , 0xac , 0xd9 , 0xf3 , 0xeb , 0x4e , 0x0f , 0x7c , 0x58 , 0xd1 , 0x92 , 0x00 , 0x5e , 0x0f , 0x51 ,
0x8a , 0xfd , 0x77 , 0x9c , 0xb2 , 0x71 , 0x7f , 0xea , 0x9f , 0x75 , 0xdc , 0xab , 0x46 , 0x58 , 0xc3 , 0x02 ,
0x09 , 0x8f , 0xee , 0xfb , 0x20 , 0x8f , 0xc0 , 0x7d , 0x81 , 0x7b , 0xdb , 0x1d , 0xf5 , 0x97 , 0x3c , 0x83 ,
0x87 , 0x2f , 0x51 , 0xd0 , 0xd5 , 0x7e , 0xc4 , 0x12 , 0xbe , 0xa5 , 0x6c , 0xad , 0x7b , 0x72 , 0x19 , 0xde ,
0x43 , 0x0f , 0xba , 0xef , 0x77 , 0x72 , 0xcd , 0x95 , 0xce , 0xad , 0xea , 0x0a , 0x34 , 0xf8 , 0xdb , 0xd1 ,
0xd9 , 0x1f , 0xd1 , 0x3b , 0xc7 , 0xf4 , 0xa4 , 0x07 , 0x4f , 0x0d , 0x12 , 0xa1 , 0x78 , 0x85 , 0xe2 , 0x5b ,
0x9e , 0x4b , 0xa6 , 0xba , 0x6a , 0xa2 , 0x38 , 0xca , 0xa9 , 0xec , 0x07 , 0x34 , 0xdb , 0xa0 , 0x88 , 0x76 ,
0x54 , 0x62 , 0x6e , 0x07 , 0xa4 , 0x86 , 0xa9 , 0x71 , 0x9c , 0x50 , 0xf6 , 0x12 , 0x45 , 0xae , 0x6a , 0x6b ,
0x66 , 0xa4 , 0x82 , 0x90 , 0xaf , 0xc0 , 0x9f , 0x09 , 0x5c , 0xa1 , 0x30 , 0xbe , 0x6b , 0xfe , 0xce , 0xf5 ,
0xdd , 0x27 , 0xf9 , 0xe0 , 0x77 , 0x57 , 0xcf , 0x17 , 0xf1 , 0xe1 , 0xe2 , 0x39 , 0x8b , 0x17 , 0x29 , 0x2e ,
0x6d , 0x72 , 0x85 , 0x49 , 0xde , 0x85 , 0xc6 , 0x8c , 0xa7 , 0x34 , 0xd9 , 0xcf , 0xe7 , 0x63 , 0x3b , 0xe4 ,
0x07 , 0x40 , 0x9d , 0x0b , 0x79 , 0x8a , 0x8a , 0x33 , 0xa1 , 0x17 , 0xa6 , 0x1a , 0xfb , 0x39 , 0xff , 0x05 ,
0x99 , 0xa2 , 0x4c , 0xcc , 0xa5 , 0xad , 0x1f , 0x18 , 0xbf , 0x65 , 0xc6 , 0x8d , 0x8e , 0x51 , 0x3d , 0xb0 ,
0x12 , 0x21 , 0x1f , 0xc0 , 0x1b , 0x43 , 0x5c , 0xc5 , 0xbb , 0x54 , 0x5a , 0x89 , 0xa7 , 0x25 , 0x75 , 0x90 ,
0x7c , 0x02 , 0x4f , 0x4c , 0x90 , 0x2f , 0x70 , 0x3f , 0xa6 , 0x79 , 0xa1 , 0xbd , 0xd0 , 0xf1 , 0x1f , 0xa3 ,
0xc8 , 0x87 , 0xe0 , 0xe9 , 0x18 , 0x72 , 0x3b , 0xd1 , 0x8f , 0x2b , 0xef , 0xc9 , 0x10 , 0xa1 , 0x15 , 0x90 ,
0x2f , 0xa1 , 0x35 , 0xc4 , 0x4c , 0x60 , 0x12 , 0x4b , 0x5c , 0xfe , 0x3c , 0xa4 , 0xb9 , 0xae , 0x86 , 0x4a ,
0xa6 , 0xa1 , 0x62 , 0xb9 , 0x39 , 0xf3 , 0x9d , 0xf0 , 0xcd , 0x83 , 0xa2 , 0x22 , 0x20 , 0x9f , 0x43 , 0xcb ,
0x5c , 0xae , 0x5d , 0xcd , 0x54 , 0x97 , 0x72 , 0x89 , 0x2c , 0x41 , 0x1f , 0x74 , 0x68 , 0x27 , 0x58 , 0x95 ,
0xcf , 0x24 , 0x9a , 0x59 , 0x4f , 0x37 , 0x9c , 0xcb , 0x5c , 0x8a , 0x38 , 0xf3 , 0x9b , 0x26 , 0x9f , 0x23 ,
0x54 , 0xf0 , 0xaf , 0x03 , 0x8d , 0x32 , 0x74 , 0xd2 , 0x02 , 0x6f , 0x12 , 0xe7 , 0x87 , 0x95 , 0x65 , 0x2d ,
0xb5 , 0x64 , 0x42 , 0xcc , 0x52 , 0x9a , 0xc4 , 0xfa , 0x71 , 0x9a , 0x1e , 0x56 , 0x21 , 0xa5 , 0xe8 , 0xaf ,
0x91 , 0x49 , 0x7b , 0xdc , 0x74 , 0xb2 , 0x0a , 0xa9 , 0x3e , 0xdb , 0xe2 , 0xdb , 0x66 , 0x16 , 0x26 , 0x79 ,
0x0a , 0xe7 , 0x5a , 0x68 , 0xdb , 0x68 , 0x0c , 0xf2 , 0x23 , 0xb4 , 0x26 , 0x31 , 0x8b , 0xd7 , 0xb8 , 0x54 ,
0x43 , 0x47 , 0x13 , 0x9c , 0x09 , 0xfe , 0x8a , 0x2e , 0x51 , 0xf8 , 0x5e , 0xc7 , 0xbd , 0x6a , 0xf6 , 0xde ,
0xaf , 0x54 , 0xfe , 0x9e , 0x42 , 0x67 , 0x13 , 0x9e , 0x38 , 0x1e , 0xfc , 0x00 , 0x6f , 0x9d , 0x38 , 0xa2 ,
0xa6 , 0xaa , 0x9f , 0x24 , 0x98 , 0xe7 , 0x5c , 0x8c , 0x86 , 0xc5 , 0xda , 0x3e , 0x20 , 0x6a , 0x22 , 0x23 ,
0x4c , 0x04 , 0xca , 0xd1 , 0xd0 , 0x16 , 0xa1 , 0xb4 , 0x03 , 0x5a , 0xdb , 0xa3 , 0x6a , 0xb9 , 0xa8 , 0xbd ,
0x67 , 0x9e , 0x82 , 0x5e , 0x02 , 0x2d , 0xf0 , 0x86 , 0xd3 , 0x28 , 0x2a , 0x17 , 0x94 , 0xb5 , 0x54 , 0xfa ,
0xa3 , 0x99 , 0x82 , 0x5d , 0x0d , 0x1b , 0x43 , 0x5d , 0xd5 , 0x4f , 0x53 , 0x7e , 0xab , 0x9c , 0x3c , 0xd0 ,
0x4e , 0x4a , 0xfb , 0xe6 , 0xeb , 0x3f , 0xee , 0xda , 0xce , 0x9f , 0x77 , 0x6d , 0xe7 , 0xaf , 0xbb , 0xb6 ,
0xf3 , 0xeb , 0x3f , 0xed , 0xd7 , 0x7e , 0xfa , 0x68 , 0x4d , 0xe5 , 0x66 , 0xb7 , 0xb8 , 0x4e , 0xf8 , 0xb6 ,
0xbb , 0x89 , 0xf3 , 0x0d , 0x4d , 0xb8 , 0xc8 , 0xd4 , 0x57 , 0x2a , 0xdf , 0xa5 , 0xdd , 0xfa , 0xb7 , 0x6b ,
0xe1 , 0x69 , 0xfb , 0xd3 , 0xff , 0x02 , 0x00 , 0x00 , 0xff , 0xff , 0x54 , 0x4a , 0x4e , 0xf1 , 0xd4 , 0x06 ,
0x00 , 0x00 ,
2020-06-05 19:56:19 +00:00
}
func ( m * Config ) Marshal ( ) ( dAtA [ ] byte , err error ) {
size := m . Size ( )
dAtA = make ( [ ] byte , size )
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( dAtA [ : size ] )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return dAtA [ : n ] , nil
}
func ( m * Config ) MarshalTo ( dAtA [ ] byte ) ( int , error ) {
2020-07-29 16:09:10 +00:00
size := m . Size ( )
return m . MarshalToSizedBuffer ( dAtA [ : size ] )
}
func ( m * Config ) MarshalToSizedBuffer ( dAtA [ ] byte ) ( int , error ) {
i := len ( dAtA )
2020-06-05 19:56:19 +00:00
_ = i
var l int
_ = l
2020-07-29 16:09:10 +00:00
if m . XXX_unrecognized != nil {
i -= len ( m . XXX_unrecognized )
copy ( dAtA [ i : ] , m . XXX_unrecognized )
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if m . TLS != nil {
{
size , err := m . TLS . MarshalToSizedBuffer ( dAtA [ : i ] )
if err != nil {
return 0 , err
}
i -= size
i = encodeVarintConfig ( dAtA , i , uint64 ( size ) )
}
i --
dAtA [ i ] = 0x42
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if m . Gossip != nil {
{
size , err := m . Gossip . MarshalToSizedBuffer ( dAtA [ : i ] )
if err != nil {
return 0 , err
}
i -= size
i = encodeVarintConfig ( dAtA , i , uint64 ( size ) )
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x3a
2020-06-05 19:56:19 +00:00
}
if m . AutoEncrypt != nil {
2020-07-29 16:09:10 +00:00
{
size , err := m . AutoEncrypt . MarshalToSizedBuffer ( dAtA [ : i ] )
if err != nil {
return 0 , err
}
i -= size
i = encodeVarintConfig ( dAtA , i , uint64 ( size ) )
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x32
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if m . ACL != nil {
{
size , err := m . ACL . MarshalToSizedBuffer ( dAtA [ : i ] )
if err != nil {
return 0 , err
}
i -= size
i = encodeVarintConfig ( dAtA , i , uint64 ( size ) )
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x2a
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if len ( m . SegmentName ) > 0 {
i -= len ( m . SegmentName )
copy ( dAtA [ i : ] , m . SegmentName )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . SegmentName ) ) )
i --
dAtA [ i ] = 0x22
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if len ( m . NodeName ) > 0 {
i -= len ( m . NodeName )
copy ( dAtA [ i : ] , m . NodeName )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . NodeName ) ) )
i --
dAtA [ i ] = 0x1a
}
if len ( m . PrimaryDatacenter ) > 0 {
i -= len ( m . PrimaryDatacenter )
copy ( dAtA [ i : ] , m . PrimaryDatacenter )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . PrimaryDatacenter ) ) )
i --
dAtA [ i ] = 0x12
}
if len ( m . Datacenter ) > 0 {
i -= len ( m . Datacenter )
copy ( dAtA [ i : ] , m . Datacenter )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . Datacenter ) ) )
i --
dAtA [ i ] = 0xa
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
return len ( dAtA ) - i , nil
2020-06-05 19:56:19 +00:00
}
func ( m * Gossip ) Marshal ( ) ( dAtA [ ] byte , err error ) {
size := m . Size ( )
dAtA = make ( [ ] byte , size )
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( dAtA [ : size ] )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return dAtA [ : n ] , nil
}
func ( m * Gossip ) MarshalTo ( dAtA [ ] byte ) ( int , error ) {
2020-07-29 16:09:10 +00:00
size := m . Size ( )
return m . MarshalToSizedBuffer ( dAtA [ : size ] )
}
func ( m * Gossip ) MarshalToSizedBuffer ( dAtA [ ] byte ) ( int , error ) {
i := len ( dAtA )
2020-06-05 19:56:19 +00:00
_ = i
var l int
_ = l
2020-07-29 16:09:10 +00:00
if m . XXX_unrecognized != nil {
i -= len ( m . XXX_unrecognized )
copy ( dAtA [ i : ] , m . XXX_unrecognized )
2020-06-05 19:56:19 +00:00
}
if len ( m . RetryJoinLAN ) > 0 {
2020-07-29 16:09:10 +00:00
for iNdEx := len ( m . RetryJoinLAN ) - 1 ; iNdEx >= 0 ; iNdEx -- {
i -= len ( m . RetryJoinLAN [ iNdEx ] )
copy ( dAtA [ i : ] , m . RetryJoinLAN [ iNdEx ] )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . RetryJoinLAN [ iNdEx ] ) ) )
i --
2020-06-05 19:56:19 +00:00
dAtA [ i ] = 0x12
}
}
2020-07-29 16:09:10 +00:00
if m . Encryption != nil {
{
size , err := m . Encryption . MarshalToSizedBuffer ( dAtA [ : i ] )
if err != nil {
return 0 , err
}
i -= size
i = encodeVarintConfig ( dAtA , i , uint64 ( size ) )
}
i --
dAtA [ i ] = 0xa
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
return len ( dAtA ) - i , nil
2020-06-05 19:56:19 +00:00
}
func ( m * GossipEncryption ) Marshal ( ) ( dAtA [ ] byte , err error ) {
size := m . Size ( )
dAtA = make ( [ ] byte , size )
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( dAtA [ : size ] )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return dAtA [ : n ] , nil
}
func ( m * GossipEncryption ) MarshalTo ( dAtA [ ] byte ) ( int , error ) {
2020-07-29 16:09:10 +00:00
size := m . Size ( )
return m . MarshalToSizedBuffer ( dAtA [ : size ] )
}
func ( m * GossipEncryption ) MarshalToSizedBuffer ( dAtA [ ] byte ) ( int , error ) {
i := len ( dAtA )
2020-06-05 19:56:19 +00:00
_ = i
var l int
_ = l
2020-07-29 16:09:10 +00:00
if m . XXX_unrecognized != nil {
i -= len ( m . XXX_unrecognized )
copy ( dAtA [ i : ] , m . XXX_unrecognized )
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if m . VerifyOutgoing {
i --
if m . VerifyOutgoing {
2020-06-05 19:56:19 +00:00
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
2020-07-29 16:09:10 +00:00
i --
2020-06-05 19:56:19 +00:00
dAtA [ i ] = 0x18
2020-07-29 16:09:10 +00:00
}
if m . VerifyIncoming {
i --
if m . VerifyIncoming {
2020-06-05 19:56:19 +00:00
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x10
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if len ( m . Key ) > 0 {
i -= len ( m . Key )
copy ( dAtA [ i : ] , m . Key )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . Key ) ) )
i --
dAtA [ i ] = 0xa
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
return len ( dAtA ) - i , nil
2020-06-05 19:56:19 +00:00
}
func ( m * TLS ) Marshal ( ) ( dAtA [ ] byte , err error ) {
size := m . Size ( )
dAtA = make ( [ ] byte , size )
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( dAtA [ : size ] )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return dAtA [ : n ] , nil
}
func ( m * TLS ) MarshalTo ( dAtA [ ] byte ) ( int , error ) {
2020-07-29 16:09:10 +00:00
size := m . Size ( )
return m . MarshalToSizedBuffer ( dAtA [ : size ] )
}
func ( m * TLS ) MarshalToSizedBuffer ( dAtA [ ] byte ) ( int , error ) {
i := len ( dAtA )
2020-06-05 19:56:19 +00:00
_ = i
var l int
_ = l
2020-07-29 16:09:10 +00:00
if m . XXX_unrecognized != nil {
i -= len ( m . XXX_unrecognized )
copy ( dAtA [ i : ] , m . XXX_unrecognized )
}
if m . PreferServerCipherSuites {
i --
if m . PreferServerCipherSuites {
2020-06-05 19:56:19 +00:00
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x28
}
if len ( m . MinVersion ) > 0 {
i -= len ( m . MinVersion )
copy ( dAtA [ i : ] , m . MinVersion )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . MinVersion ) ) )
i --
dAtA [ i ] = 0x22
}
if len ( m . CipherSuites ) > 0 {
i -= len ( m . CipherSuites )
copy ( dAtA [ i : ] , m . CipherSuites )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . CipherSuites ) ) )
i --
dAtA [ i ] = 0x1a
2020-06-05 19:56:19 +00:00
}
if m . VerifyServerHostname {
2020-07-29 16:09:10 +00:00
i --
2020-06-05 19:56:19 +00:00
if m . VerifyServerHostname {
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x10
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if m . VerifyOutgoing {
i --
if m . VerifyOutgoing {
2020-06-05 19:56:19 +00:00
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x8
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
return len ( dAtA ) - i , nil
2020-06-05 19:56:19 +00:00
}
func ( m * ACL ) Marshal ( ) ( dAtA [ ] byte , err error ) {
size := m . Size ( )
dAtA = make ( [ ] byte , size )
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( dAtA [ : size ] )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return dAtA [ : n ] , nil
}
func ( m * ACL ) MarshalTo ( dAtA [ ] byte ) ( int , error ) {
2020-07-29 16:09:10 +00:00
size := m . Size ( )
return m . MarshalToSizedBuffer ( dAtA [ : size ] )
}
func ( m * ACL ) MarshalToSizedBuffer ( dAtA [ ] byte ) ( int , error ) {
i := len ( dAtA )
2020-06-05 19:56:19 +00:00
_ = i
var l int
_ = l
2020-07-29 16:09:10 +00:00
if m . XXX_unrecognized != nil {
i -= len ( m . XXX_unrecognized )
copy ( dAtA [ i : ] , m . XXX_unrecognized )
}
if m . MSPDisableBootstrap {
i --
if m . MSPDisableBootstrap {
2020-06-05 19:56:19 +00:00
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x58
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if m . EnableTokenPersistence {
i --
if m . EnableTokenPersistence {
2020-06-05 19:56:19 +00:00
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x50
2020-06-05 19:56:19 +00:00
}
2021-08-11 16:07:55 +00:00
if len ( m . Deprecated_DisabledTTL ) > 0 {
i -= len ( m . Deprecated_DisabledTTL )
copy ( dAtA [ i : ] , m . Deprecated_DisabledTTL )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . Deprecated_DisabledTTL ) ) )
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x4a
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if m . Tokens != nil {
{
size , err := m . Tokens . MarshalToSizedBuffer ( dAtA [ : i ] )
if err != nil {
return 0 , err
}
i -= size
i = encodeVarintConfig ( dAtA , i , uint64 ( size ) )
}
i --
dAtA [ i ] = 0x42
}
if m . EnableKeyListPolicy {
i --
if m . EnableKeyListPolicy {
2020-06-05 19:56:19 +00:00
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x38
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if len ( m . DefaultPolicy ) > 0 {
i -= len ( m . DefaultPolicy )
copy ( dAtA [ i : ] , m . DefaultPolicy )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . DefaultPolicy ) ) )
i --
dAtA [ i ] = 0x32
}
if len ( m . DownPolicy ) > 0 {
i -= len ( m . DownPolicy )
copy ( dAtA [ i : ] , m . DownPolicy )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . DownPolicy ) ) )
i --
dAtA [ i ] = 0x2a
}
if len ( m . TokenTTL ) > 0 {
i -= len ( m . TokenTTL )
copy ( dAtA [ i : ] , m . TokenTTL )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . TokenTTL ) ) )
i --
dAtA [ i ] = 0x22
}
if len ( m . RoleTTL ) > 0 {
i -= len ( m . RoleTTL )
copy ( dAtA [ i : ] , m . RoleTTL )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . RoleTTL ) ) )
i --
dAtA [ i ] = 0x1a
}
if len ( m . PolicyTTL ) > 0 {
i -= len ( m . PolicyTTL )
copy ( dAtA [ i : ] , m . PolicyTTL )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . PolicyTTL ) ) )
i --
dAtA [ i ] = 0x12
}
if m . Enabled {
i --
if m . Enabled {
2020-06-05 19:56:19 +00:00
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x8
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
return len ( dAtA ) - i , nil
2020-06-05 19:56:19 +00:00
}
func ( m * ACLTokens ) Marshal ( ) ( dAtA [ ] byte , err error ) {
size := m . Size ( )
dAtA = make ( [ ] byte , size )
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( dAtA [ : size ] )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return dAtA [ : n ] , nil
}
func ( m * ACLTokens ) MarshalTo ( dAtA [ ] byte ) ( int , error ) {
2020-07-29 16:09:10 +00:00
size := m . Size ( )
return m . MarshalToSizedBuffer ( dAtA [ : size ] )
}
func ( m * ACLTokens ) MarshalToSizedBuffer ( dAtA [ ] byte ) ( int , error ) {
i := len ( dAtA )
2020-06-05 19:56:19 +00:00
_ = i
var l int
_ = l
2020-07-29 16:09:10 +00:00
if m . XXX_unrecognized != nil {
i -= len ( m . XXX_unrecognized )
copy ( dAtA [ i : ] , m . XXX_unrecognized )
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if len ( m . ManagedServiceProvider ) > 0 {
for iNdEx := len ( m . ManagedServiceProvider ) - 1 ; iNdEx >= 0 ; iNdEx -- {
{
size , err := m . ManagedServiceProvider [ iNdEx ] . MarshalToSizedBuffer ( dAtA [ : i ] )
if err != nil {
return 0 , err
}
i -= size
i = encodeVarintConfig ( dAtA , i , uint64 ( size ) )
}
i --
dAtA [ i ] = 0x32
}
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if len ( m . Agent ) > 0 {
i -= len ( m . Agent )
copy ( dAtA [ i : ] , m . Agent )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . Agent ) ) )
i --
dAtA [ i ] = 0x2a
2020-06-05 19:56:19 +00:00
}
if len ( m . Default ) > 0 {
2020-07-29 16:09:10 +00:00
i -= len ( m . Default )
copy ( dAtA [ i : ] , m . Default )
2020-06-05 19:56:19 +00:00
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . Default ) ) )
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x22
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if len ( m . AgentMaster ) > 0 {
i -= len ( m . AgentMaster )
copy ( dAtA [ i : ] , m . AgentMaster )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . AgentMaster ) ) )
i --
dAtA [ i ] = 0x1a
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if len ( m . Replication ) > 0 {
i -= len ( m . Replication )
copy ( dAtA [ i : ] , m . Replication )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . Replication ) ) )
i --
dAtA [ i ] = 0x12
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if len ( m . Master ) > 0 {
i -= len ( m . Master )
copy ( dAtA [ i : ] , m . Master )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . Master ) ) )
i --
dAtA [ i ] = 0xa
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
return len ( dAtA ) - i , nil
2020-06-05 19:56:19 +00:00
}
func ( m * ACLServiceProviderToken ) Marshal ( ) ( dAtA [ ] byte , err error ) {
size := m . Size ( )
dAtA = make ( [ ] byte , size )
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( dAtA [ : size ] )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return dAtA [ : n ] , nil
}
func ( m * ACLServiceProviderToken ) MarshalTo ( dAtA [ ] byte ) ( int , error ) {
2020-07-29 16:09:10 +00:00
size := m . Size ( )
return m . MarshalToSizedBuffer ( dAtA [ : size ] )
}
func ( m * ACLServiceProviderToken ) MarshalToSizedBuffer ( dAtA [ ] byte ) ( int , error ) {
i := len ( dAtA )
2020-06-05 19:56:19 +00:00
_ = i
var l int
_ = l
2020-07-29 16:09:10 +00:00
if m . XXX_unrecognized != nil {
i -= len ( m . XXX_unrecognized )
copy ( dAtA [ i : ] , m . XXX_unrecognized )
2020-06-05 19:56:19 +00:00
}
if len ( m . SecretID ) > 0 {
2020-07-29 16:09:10 +00:00
i -= len ( m . SecretID )
copy ( dAtA [ i : ] , m . SecretID )
2020-06-05 19:56:19 +00:00
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . SecretID ) ) )
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x12
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
if len ( m . AccessorID ) > 0 {
i -= len ( m . AccessorID )
copy ( dAtA [ i : ] , m . AccessorID )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . AccessorID ) ) )
i --
dAtA [ i ] = 0xa
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
return len ( dAtA ) - i , nil
2020-06-05 19:56:19 +00:00
}
func ( m * AutoEncrypt ) Marshal ( ) ( dAtA [ ] byte , err error ) {
size := m . Size ( )
dAtA = make ( [ ] byte , size )
2020-07-29 16:09:10 +00:00
n , err := m . MarshalToSizedBuffer ( dAtA [ : size ] )
2020-06-05 19:56:19 +00:00
if err != nil {
return nil , err
}
return dAtA [ : n ] , nil
}
func ( m * AutoEncrypt ) MarshalTo ( dAtA [ ] byte ) ( int , error ) {
2020-07-29 16:09:10 +00:00
size := m . Size ( )
return m . MarshalToSizedBuffer ( dAtA [ : size ] )
}
func ( m * AutoEncrypt ) MarshalToSizedBuffer ( dAtA [ ] byte ) ( int , error ) {
i := len ( dAtA )
2020-06-05 19:56:19 +00:00
_ = i
var l int
_ = l
2020-07-29 16:09:10 +00:00
if m . XXX_unrecognized != nil {
i -= len ( m . XXX_unrecognized )
copy ( dAtA [ i : ] , m . XXX_unrecognized )
}
if m . AllowTLS {
i --
if m . AllowTLS {
2020-06-05 19:56:19 +00:00
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x20
2020-06-05 19:56:19 +00:00
}
if len ( m . IPSAN ) > 0 {
2020-07-29 16:09:10 +00:00
for iNdEx := len ( m . IPSAN ) - 1 ; iNdEx >= 0 ; iNdEx -- {
i -= len ( m . IPSAN [ iNdEx ] )
copy ( dAtA [ i : ] , m . IPSAN [ iNdEx ] )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . IPSAN [ iNdEx ] ) ) )
i --
2020-06-05 19:56:19 +00:00
dAtA [ i ] = 0x1a
}
}
2020-07-29 16:09:10 +00:00
if len ( m . DNSSAN ) > 0 {
for iNdEx := len ( m . DNSSAN ) - 1 ; iNdEx >= 0 ; iNdEx -- {
i -= len ( m . DNSSAN [ iNdEx ] )
copy ( dAtA [ i : ] , m . DNSSAN [ iNdEx ] )
i = encodeVarintConfig ( dAtA , i , uint64 ( len ( m . DNSSAN [ iNdEx ] ) ) )
i --
dAtA [ i ] = 0x12
}
}
if m . TLS {
i --
if m . TLS {
2020-06-05 19:56:19 +00:00
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
2020-07-29 16:09:10 +00:00
i --
dAtA [ i ] = 0x8
2020-06-05 19:56:19 +00:00
}
2020-07-29 16:09:10 +00:00
return len ( dAtA ) - i , nil
2020-06-05 19:56:19 +00:00
}
func encodeVarintConfig ( dAtA [ ] byte , offset int , v uint64 ) int {
2020-07-29 16:09:10 +00:00
offset -= sovConfig ( v )
base := offset
2020-06-05 19:56:19 +00:00
for v >= 1 << 7 {
dAtA [ offset ] = uint8 ( v & 0x7f | 0x80 )
v >>= 7
offset ++
}
dAtA [ offset ] = uint8 ( v )
2020-07-29 16:09:10 +00:00
return base
2020-06-05 19:56:19 +00:00
}
func ( m * Config ) Size ( ) ( n int ) {
if m == nil {
return 0
}
var l int
_ = l
l = len ( m . Datacenter )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
l = len ( m . PrimaryDatacenter )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
l = len ( m . NodeName )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
l = len ( m . SegmentName )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
if m . ACL != nil {
l = m . ACL . Size ( )
n += 1 + l + sovConfig ( uint64 ( l ) )
}
if m . AutoEncrypt != nil {
l = m . AutoEncrypt . Size ( )
n += 1 + l + sovConfig ( uint64 ( l ) )
}
if m . Gossip != nil {
l = m . Gossip . Size ( )
n += 1 + l + sovConfig ( uint64 ( l ) )
}
if m . TLS != nil {
l = m . TLS . Size ( )
n += 1 + l + sovConfig ( uint64 ( l ) )
}
if m . XXX_unrecognized != nil {
n += len ( m . XXX_unrecognized )
}
return n
}
func ( m * Gossip ) Size ( ) ( n int ) {
if m == nil {
return 0
}
var l int
_ = l
if m . Encryption != nil {
l = m . Encryption . Size ( )
n += 1 + l + sovConfig ( uint64 ( l ) )
}
if len ( m . RetryJoinLAN ) > 0 {
for _ , s := range m . RetryJoinLAN {
l = len ( s )
n += 1 + l + sovConfig ( uint64 ( l ) )
}
}
if m . XXX_unrecognized != nil {
n += len ( m . XXX_unrecognized )
}
return n
}
func ( m * GossipEncryption ) Size ( ) ( n int ) {
if m == nil {
return 0
}
var l int
_ = l
l = len ( m . Key )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
if m . VerifyIncoming {
n += 2
}
if m . VerifyOutgoing {
n += 2
}
if m . XXX_unrecognized != nil {
n += len ( m . XXX_unrecognized )
}
return n
}
func ( m * TLS ) Size ( ) ( n int ) {
if m == nil {
return 0
}
var l int
_ = l
if m . VerifyOutgoing {
n += 2
}
if m . VerifyServerHostname {
n += 2
}
l = len ( m . CipherSuites )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
l = len ( m . MinVersion )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
if m . PreferServerCipherSuites {
n += 2
}
if m . XXX_unrecognized != nil {
n += len ( m . XXX_unrecognized )
}
return n
}
func ( m * ACL ) Size ( ) ( n int ) {
if m == nil {
return 0
}
var l int
_ = l
if m . Enabled {
n += 2
}
l = len ( m . PolicyTTL )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
l = len ( m . RoleTTL )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
l = len ( m . TokenTTL )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
l = len ( m . DownPolicy )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
l = len ( m . DefaultPolicy )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
if m . EnableKeyListPolicy {
n += 2
}
if m . Tokens != nil {
l = m . Tokens . Size ( )
n += 1 + l + sovConfig ( uint64 ( l ) )
}
2021-08-11 16:07:55 +00:00
l = len ( m . Deprecated_DisabledTTL )
2020-06-05 19:56:19 +00:00
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
if m . EnableTokenPersistence {
n += 2
}
if m . MSPDisableBootstrap {
n += 2
}
if m . XXX_unrecognized != nil {
n += len ( m . XXX_unrecognized )
}
return n
}
func ( m * ACLTokens ) Size ( ) ( n int ) {
if m == nil {
return 0
}
var l int
_ = l
l = len ( m . Master )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
l = len ( m . Replication )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
l = len ( m . AgentMaster )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
l = len ( m . Default )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
l = len ( m . Agent )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
if len ( m . ManagedServiceProvider ) > 0 {
for _ , e := range m . ManagedServiceProvider {
l = e . Size ( )
n += 1 + l + sovConfig ( uint64 ( l ) )
}
}
if m . XXX_unrecognized != nil {
n += len ( m . XXX_unrecognized )
}
return n
}
func ( m * ACLServiceProviderToken ) Size ( ) ( n int ) {
if m == nil {
return 0
}
var l int
_ = l
l = len ( m . AccessorID )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
l = len ( m . SecretID )
if l > 0 {
n += 1 + l + sovConfig ( uint64 ( l ) )
}
if m . XXX_unrecognized != nil {
n += len ( m . XXX_unrecognized )
}
return n
}
func ( m * AutoEncrypt ) Size ( ) ( n int ) {
if m == nil {
return 0
}
var l int
_ = l
if m . TLS {
n += 2
}
if len ( m . DNSSAN ) > 0 {
for _ , s := range m . DNSSAN {
l = len ( s )
n += 1 + l + sovConfig ( uint64 ( l ) )
}
}
if len ( m . IPSAN ) > 0 {
for _ , s := range m . IPSAN {
l = len ( s )
n += 1 + l + sovConfig ( uint64 ( l ) )
}
}
if m . AllowTLS {
n += 2
}
if m . XXX_unrecognized != nil {
n += len ( m . XXX_unrecognized )
}
return n
}
func sovConfig ( x uint64 ) ( n int ) {
2020-07-29 16:09:10 +00:00
return ( math_bits . Len64 ( x | 1 ) + 6 ) / 7
2020-06-05 19:56:19 +00:00
}
func sozConfig ( x uint64 ) ( n int ) {
return sovConfig ( uint64 ( ( x << 1 ) ^ uint64 ( ( int64 ( x ) >> 63 ) ) ) )
}
func ( m * Config ) Unmarshal ( dAtA [ ] byte ) error {
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return fmt . Errorf ( "proto: Config: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return fmt . Errorf ( "proto: Config: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field Datacenter" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . Datacenter = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 2 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field PrimaryDatacenter" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . PrimaryDatacenter = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 3 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field NodeName" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . NodeName = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 4 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field SegmentName" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . SegmentName = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 5 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field ACL" , wireType )
}
var msglen int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
msglen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
if m . ACL == nil {
m . ACL = & ACL { }
}
if err := m . ACL . Unmarshal ( dAtA [ iNdEx : postIndex ] ) ; err != nil {
return err
}
iNdEx = postIndex
case 6 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field AutoEncrypt" , wireType )
}
var msglen int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
msglen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
if m . AutoEncrypt == nil {
m . AutoEncrypt = & AutoEncrypt { }
}
if err := m . AutoEncrypt . Unmarshal ( dAtA [ iNdEx : postIndex ] ) ; err != nil {
return err
}
iNdEx = postIndex
case 7 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field Gossip" , wireType )
}
var msglen int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
msglen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
if m . Gossip == nil {
m . Gossip = & Gossip { }
}
if err := m . Gossip . Unmarshal ( dAtA [ iNdEx : postIndex ] ) ; err != nil {
return err
}
iNdEx = postIndex
case 8 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field TLS" , wireType )
}
var msglen int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
msglen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
if m . TLS == nil {
m . TLS = & TLS { }
}
if err := m . TLS . Unmarshal ( dAtA [ iNdEx : postIndex ] ) ; err != nil {
return err
}
iNdEx = postIndex
default :
iNdEx = preIndex
skippy , err := skipConfig ( dAtA [ iNdEx : ] )
if err != nil {
return err
}
2021-08-12 18:05:46 +00:00
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
2020-06-05 19:56:19 +00:00
return ErrInvalidLengthConfig
}
if ( iNdEx + skippy ) > l {
return io . ErrUnexpectedEOF
}
m . XXX_unrecognized = append ( m . XXX_unrecognized , dAtA [ iNdEx : iNdEx + skippy ] ... )
iNdEx += skippy
}
}
if iNdEx > l {
return io . ErrUnexpectedEOF
}
return nil
}
func ( m * Gossip ) Unmarshal ( dAtA [ ] byte ) error {
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return fmt . Errorf ( "proto: Gossip: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return fmt . Errorf ( "proto: Gossip: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field Encryption" , wireType )
}
var msglen int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
msglen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
if m . Encryption == nil {
m . Encryption = & GossipEncryption { }
}
if err := m . Encryption . Unmarshal ( dAtA [ iNdEx : postIndex ] ) ; err != nil {
return err
}
iNdEx = postIndex
case 2 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field RetryJoinLAN" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . RetryJoinLAN = append ( m . RetryJoinLAN , string ( dAtA [ iNdEx : postIndex ] ) )
iNdEx = postIndex
default :
iNdEx = preIndex
skippy , err := skipConfig ( dAtA [ iNdEx : ] )
if err != nil {
return err
}
2021-08-12 18:05:46 +00:00
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
2020-06-05 19:56:19 +00:00
return ErrInvalidLengthConfig
}
if ( iNdEx + skippy ) > l {
return io . ErrUnexpectedEOF
}
m . XXX_unrecognized = append ( m . XXX_unrecognized , dAtA [ iNdEx : iNdEx + skippy ] ... )
iNdEx += skippy
}
}
if iNdEx > l {
return io . ErrUnexpectedEOF
}
return nil
}
func ( m * GossipEncryption ) Unmarshal ( dAtA [ ] byte ) error {
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return fmt . Errorf ( "proto: GossipEncryption: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return fmt . Errorf ( "proto: GossipEncryption: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field Key" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . Key = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 2 :
if wireType != 0 {
return fmt . Errorf ( "proto: wrong wireType = %d for field VerifyIncoming" , wireType )
}
var v int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
m . VerifyIncoming = bool ( v != 0 )
case 3 :
if wireType != 0 {
return fmt . Errorf ( "proto: wrong wireType = %d for field VerifyOutgoing" , wireType )
}
var v int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
m . VerifyOutgoing = bool ( v != 0 )
default :
iNdEx = preIndex
skippy , err := skipConfig ( dAtA [ iNdEx : ] )
if err != nil {
return err
}
2021-08-12 18:05:46 +00:00
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
2020-06-05 19:56:19 +00:00
return ErrInvalidLengthConfig
}
if ( iNdEx + skippy ) > l {
return io . ErrUnexpectedEOF
}
m . XXX_unrecognized = append ( m . XXX_unrecognized , dAtA [ iNdEx : iNdEx + skippy ] ... )
iNdEx += skippy
}
}
if iNdEx > l {
return io . ErrUnexpectedEOF
}
return nil
}
func ( m * TLS ) Unmarshal ( dAtA [ ] byte ) error {
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return fmt . Errorf ( "proto: TLS: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return fmt . Errorf ( "proto: TLS: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 0 {
return fmt . Errorf ( "proto: wrong wireType = %d for field VerifyOutgoing" , wireType )
}
var v int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
m . VerifyOutgoing = bool ( v != 0 )
case 2 :
if wireType != 0 {
return fmt . Errorf ( "proto: wrong wireType = %d for field VerifyServerHostname" , wireType )
}
var v int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
m . VerifyServerHostname = bool ( v != 0 )
case 3 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field CipherSuites" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . CipherSuites = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 4 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field MinVersion" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . MinVersion = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 5 :
if wireType != 0 {
return fmt . Errorf ( "proto: wrong wireType = %d for field PreferServerCipherSuites" , wireType )
}
var v int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
m . PreferServerCipherSuites = bool ( v != 0 )
default :
iNdEx = preIndex
skippy , err := skipConfig ( dAtA [ iNdEx : ] )
if err != nil {
return err
}
2021-08-12 18:05:46 +00:00
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
2020-06-05 19:56:19 +00:00
return ErrInvalidLengthConfig
}
if ( iNdEx + skippy ) > l {
return io . ErrUnexpectedEOF
}
m . XXX_unrecognized = append ( m . XXX_unrecognized , dAtA [ iNdEx : iNdEx + skippy ] ... )
iNdEx += skippy
}
}
if iNdEx > l {
return io . ErrUnexpectedEOF
}
return nil
}
func ( m * ACL ) Unmarshal ( dAtA [ ] byte ) error {
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return fmt . Errorf ( "proto: ACL: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return fmt . Errorf ( "proto: ACL: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 0 {
return fmt . Errorf ( "proto: wrong wireType = %d for field Enabled" , wireType )
}
var v int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
m . Enabled = bool ( v != 0 )
case 2 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field PolicyTTL" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . PolicyTTL = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 3 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field RoleTTL" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . RoleTTL = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 4 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field TokenTTL" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . TokenTTL = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 5 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field DownPolicy" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . DownPolicy = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 6 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field DefaultPolicy" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . DefaultPolicy = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 7 :
if wireType != 0 {
return fmt . Errorf ( "proto: wrong wireType = %d for field EnableKeyListPolicy" , wireType )
}
var v int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
m . EnableKeyListPolicy = bool ( v != 0 )
case 8 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field Tokens" , wireType )
}
var msglen int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
msglen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
if m . Tokens == nil {
m . Tokens = & ACLTokens { }
}
if err := m . Tokens . Unmarshal ( dAtA [ iNdEx : postIndex ] ) ; err != nil {
return err
}
iNdEx = postIndex
case 9 :
if wireType != 2 {
2021-08-11 16:07:55 +00:00
return fmt . Errorf ( "proto: wrong wireType = %d for field Deprecated_DisabledTTL" , wireType )
2020-06-05 19:56:19 +00:00
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
2021-08-11 16:07:55 +00:00
m . Deprecated_DisabledTTL = string ( dAtA [ iNdEx : postIndex ] )
2020-06-05 19:56:19 +00:00
iNdEx = postIndex
case 10 :
if wireType != 0 {
return fmt . Errorf ( "proto: wrong wireType = %d for field EnableTokenPersistence" , wireType )
}
var v int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
m . EnableTokenPersistence = bool ( v != 0 )
case 11 :
if wireType != 0 {
return fmt . Errorf ( "proto: wrong wireType = %d for field MSPDisableBootstrap" , wireType )
}
var v int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
m . MSPDisableBootstrap = bool ( v != 0 )
default :
iNdEx = preIndex
skippy , err := skipConfig ( dAtA [ iNdEx : ] )
if err != nil {
return err
}
2021-08-12 18:05:46 +00:00
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
2020-06-05 19:56:19 +00:00
return ErrInvalidLengthConfig
}
if ( iNdEx + skippy ) > l {
return io . ErrUnexpectedEOF
}
m . XXX_unrecognized = append ( m . XXX_unrecognized , dAtA [ iNdEx : iNdEx + skippy ] ... )
iNdEx += skippy
}
}
if iNdEx > l {
return io . ErrUnexpectedEOF
}
return nil
}
func ( m * ACLTokens ) Unmarshal ( dAtA [ ] byte ) error {
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return fmt . Errorf ( "proto: ACLTokens: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return fmt . Errorf ( "proto: ACLTokens: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field Master" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . Master = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 2 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field Replication" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . Replication = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 3 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field AgentMaster" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . AgentMaster = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 4 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field Default" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . Default = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 5 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field Agent" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . Agent = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 6 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field ManagedServiceProvider" , wireType )
}
var msglen int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
msglen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . ManagedServiceProvider = append ( m . ManagedServiceProvider , & ACLServiceProviderToken { } )
if err := m . ManagedServiceProvider [ len ( m . ManagedServiceProvider ) - 1 ] . Unmarshal ( dAtA [ iNdEx : postIndex ] ) ; err != nil {
return err
}
iNdEx = postIndex
default :
iNdEx = preIndex
skippy , err := skipConfig ( dAtA [ iNdEx : ] )
if err != nil {
return err
}
2021-08-12 18:05:46 +00:00
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
2020-06-05 19:56:19 +00:00
return ErrInvalidLengthConfig
}
if ( iNdEx + skippy ) > l {
return io . ErrUnexpectedEOF
}
m . XXX_unrecognized = append ( m . XXX_unrecognized , dAtA [ iNdEx : iNdEx + skippy ] ... )
iNdEx += skippy
}
}
if iNdEx > l {
return io . ErrUnexpectedEOF
}
return nil
}
func ( m * ACLServiceProviderToken ) Unmarshal ( dAtA [ ] byte ) error {
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return fmt . Errorf ( "proto: ACLServiceProviderToken: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return fmt . Errorf ( "proto: ACLServiceProviderToken: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field AccessorID" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . AccessorID = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 2 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field SecretID" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . SecretID = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
default :
iNdEx = preIndex
skippy , err := skipConfig ( dAtA [ iNdEx : ] )
if err != nil {
return err
}
2021-08-12 18:05:46 +00:00
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
2020-06-05 19:56:19 +00:00
return ErrInvalidLengthConfig
}
if ( iNdEx + skippy ) > l {
return io . ErrUnexpectedEOF
}
m . XXX_unrecognized = append ( m . XXX_unrecognized , dAtA [ iNdEx : iNdEx + skippy ] ... )
iNdEx += skippy
}
}
if iNdEx > l {
return io . ErrUnexpectedEOF
}
return nil
}
func ( m * AutoEncrypt ) Unmarshal ( dAtA [ ] byte ) error {
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return fmt . Errorf ( "proto: AutoEncrypt: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return fmt . Errorf ( "proto: AutoEncrypt: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 0 {
return fmt . Errorf ( "proto: wrong wireType = %d for field TLS" , wireType )
}
var v int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
m . TLS = bool ( v != 0 )
case 2 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field DNSSAN" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . DNSSAN = append ( m . DNSSAN , string ( dAtA [ iNdEx : postIndex ] ) )
iNdEx = postIndex
case 3 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field IPSAN" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthConfig
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthConfig
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . IPSAN = append ( m . IPSAN , string ( dAtA [ iNdEx : postIndex ] ) )
iNdEx = postIndex
case 4 :
if wireType != 0 {
return fmt . Errorf ( "proto: wrong wireType = %d for field AllowTLS" , wireType )
}
var v int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowConfig
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
m . AllowTLS = bool ( v != 0 )
default :
iNdEx = preIndex
skippy , err := skipConfig ( dAtA [ iNdEx : ] )
if err != nil {
return err
}
2021-08-12 18:05:46 +00:00
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
2020-06-05 19:56:19 +00:00
return ErrInvalidLengthConfig
}
if ( iNdEx + skippy ) > l {
return io . ErrUnexpectedEOF
}
m . XXX_unrecognized = append ( m . XXX_unrecognized , dAtA [ iNdEx : iNdEx + skippy ] ... )
iNdEx += skippy
}
}
if iNdEx > l {
return io . ErrUnexpectedEOF
}
return nil
}
func skipConfig ( dAtA [ ] byte ) ( n int , err error ) {
l := len ( dAtA )
iNdEx := 0
2021-08-12 18:05:46 +00:00
depth := 0
2020-06-05 19:56:19 +00:00
for iNdEx < l {
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return 0 , ErrIntOverflowConfig
}
if iNdEx >= l {
return 0 , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= ( uint64 ( b ) & 0x7F ) << shift
if b < 0x80 {
break
}
}
wireType := int ( wire & 0x7 )
switch wireType {
case 0 :
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return 0 , ErrIntOverflowConfig
}
if iNdEx >= l {
return 0 , io . ErrUnexpectedEOF
}
iNdEx ++
if dAtA [ iNdEx - 1 ] < 0x80 {
break
}
}
case 1 :
iNdEx += 8
case 2 :
var length int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return 0 , ErrIntOverflowConfig
}
if iNdEx >= l {
return 0 , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
length |= ( int ( b ) & 0x7F ) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0 , ErrInvalidLengthConfig
}
iNdEx += length
case 3 :
2021-08-12 18:05:46 +00:00
depth ++
2020-06-05 19:56:19 +00:00
case 4 :
2021-08-12 18:05:46 +00:00
if depth == 0 {
return 0 , ErrUnexpectedEndOfGroupConfig
}
depth --
2020-06-05 19:56:19 +00:00
case 5 :
iNdEx += 4
default :
return 0 , fmt . Errorf ( "proto: illegal wireType %d" , wireType )
}
2021-08-12 18:05:46 +00:00
if iNdEx < 0 {
return 0 , ErrInvalidLengthConfig
}
if depth == 0 {
return iNdEx , nil
}
2020-06-05 19:56:19 +00:00
}
2021-08-12 18:05:46 +00:00
return 0 , io . ErrUnexpectedEOF
2020-06-05 19:56:19 +00:00
}
var (
2021-08-12 18:05:46 +00:00
ErrInvalidLengthConfig = fmt . Errorf ( "proto: negative length found during unmarshaling" )
ErrIntOverflowConfig = fmt . Errorf ( "proto: integer overflow" )
ErrUnexpectedEndOfGroupConfig = fmt . Errorf ( "proto: unexpected end of group" )
2020-06-05 19:56:19 +00:00
)