github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/config/core/v3/backoff.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.16.0
     5  // source: envoy/config/core/v3/backoff.proto
     6  
     7  package envoy_config_core_v3
     8  
     9  import (
    10  	_ "github.com/cncf/xds/go/udpa/annotations"
    11  	_ "github.com/envoyproxy/protoc-gen-validate/validate"
    12  	proto "github.com/golang/protobuf/proto"
    13  	duration "github.com/golang/protobuf/ptypes/duration"
    14  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    15  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    16  	reflect "reflect"
    17  	sync "sync"
    18  )
    19  
    20  const (
    21  	// Verify that this generated code is sufficiently up-to-date.
    22  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    23  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    24  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    25  )
    26  
    27  // This is a compile-time assertion that a sufficiently up-to-date version
    28  // of the legacy proto package is being used.
    29  const _ = proto.ProtoPackageIsVersion4
    30  
    31  // Configuration defining a jittered exponential back off strategy.
    32  type BackoffStrategy struct {
    33  	state         protoimpl.MessageState
    34  	sizeCache     protoimpl.SizeCache
    35  	unknownFields protoimpl.UnknownFields
    36  
    37  	// The base interval to be used for the next back off computation. It should
    38  	// be greater than zero and less than or equal to :ref:`max_interval
    39  	// <envoy_v3_api_field_config.core.v3.BackoffStrategy.max_interval>`.
    40  	BaseInterval *duration.Duration `protobuf:"bytes,1,opt,name=base_interval,json=baseInterval,proto3" json:"base_interval,omitempty"`
    41  	// Specifies the maximum interval between retries. This parameter is optional,
    42  	// but must be greater than or equal to the :ref:`base_interval
    43  	// <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>` if set. The default
    44  	// is 10 times the :ref:`base_interval
    45  	// <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>`.
    46  	MaxInterval *duration.Duration `protobuf:"bytes,2,opt,name=max_interval,json=maxInterval,proto3" json:"max_interval,omitempty"`
    47  }
    48  
    49  func (x *BackoffStrategy) Reset() {
    50  	*x = BackoffStrategy{}
    51  	if protoimpl.UnsafeEnabled {
    52  		mi := &file_envoy_config_core_v3_backoff_proto_msgTypes[0]
    53  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    54  		ms.StoreMessageInfo(mi)
    55  	}
    56  }
    57  
    58  func (x *BackoffStrategy) String() string {
    59  	return protoimpl.X.MessageStringOf(x)
    60  }
    61  
    62  func (*BackoffStrategy) ProtoMessage() {}
    63  
    64  func (x *BackoffStrategy) ProtoReflect() protoreflect.Message {
    65  	mi := &file_envoy_config_core_v3_backoff_proto_msgTypes[0]
    66  	if protoimpl.UnsafeEnabled && x != nil {
    67  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    68  		if ms.LoadMessageInfo() == nil {
    69  			ms.StoreMessageInfo(mi)
    70  		}
    71  		return ms
    72  	}
    73  	return mi.MessageOf(x)
    74  }
    75  
    76  // Deprecated: Use BackoffStrategy.ProtoReflect.Descriptor instead.
    77  func (*BackoffStrategy) Descriptor() ([]byte, []int) {
    78  	return file_envoy_config_core_v3_backoff_proto_rawDescGZIP(), []int{0}
    79  }
    80  
    81  func (x *BackoffStrategy) GetBaseInterval() *duration.Duration {
    82  	if x != nil {
    83  		return x.BaseInterval
    84  	}
    85  	return nil
    86  }
    87  
    88  func (x *BackoffStrategy) GetMaxInterval() *duration.Duration {
    89  	if x != nil {
    90  		return x.MaxInterval
    91  	}
    92  	return nil
    93  }
    94  
    95  var File_envoy_config_core_v3_backoff_proto protoreflect.FileDescriptor
    96  
    97  var file_envoy_config_core_v3_backoff_proto_rawDesc = []byte{
    98  	0x0a, 0x22, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63,
    99  	0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x2e, 0x70,
   100  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66,
   101  	0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67,
   102  	0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61,
   103  	0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61,
   104  	0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61,
   105  	0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f,
   106  	0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73,
   107  	0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61,
   108  	0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e,
   109  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd3, 0x01, 0x0a, 0x0f, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66,
   110  	0x66, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x4e, 0x0a, 0x0d, 0x62, 0x61, 0x73,
   111  	0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
   112  	0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   113  	0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0e, 0xfa, 0x42, 0x0b,
   114  	0xaa, 0x01, 0x08, 0x08, 0x01, 0x32, 0x04, 0x10, 0xc0, 0x84, 0x3d, 0x52, 0x0c, 0x62, 0x61, 0x73,
   115  	0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x46, 0x0a, 0x0c, 0x6d, 0x61, 0x78,
   116  	0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
   117  	0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
   118  	0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xfa, 0x42, 0x05, 0xaa,
   119  	0x01, 0x02, 0x2a, 0x00, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61,
   120  	0x6c, 0x3a, 0x28, 0x9a, 0xc5, 0x88, 0x1e, 0x23, 0x0a, 0x21, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
   121  	0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x61, 0x63, 0x6b,
   122  	0x6f, 0x66, 0x66, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x42, 0x3c, 0x0a, 0x22, 0x69,
   123  	0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76,
   124  	0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76,
   125  	0x33, 0x42, 0x0c, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
   126  	0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   127  	0x33,
   128  }
   129  
   130  var (
   131  	file_envoy_config_core_v3_backoff_proto_rawDescOnce sync.Once
   132  	file_envoy_config_core_v3_backoff_proto_rawDescData = file_envoy_config_core_v3_backoff_proto_rawDesc
   133  )
   134  
   135  func file_envoy_config_core_v3_backoff_proto_rawDescGZIP() []byte {
   136  	file_envoy_config_core_v3_backoff_proto_rawDescOnce.Do(func() {
   137  		file_envoy_config_core_v3_backoff_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_core_v3_backoff_proto_rawDescData)
   138  	})
   139  	return file_envoy_config_core_v3_backoff_proto_rawDescData
   140  }
   141  
   142  var file_envoy_config_core_v3_backoff_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   143  var file_envoy_config_core_v3_backoff_proto_goTypes = []interface{}{
   144  	(*BackoffStrategy)(nil),   // 0: envoy.config.core.v3.BackoffStrategy
   145  	(*duration.Duration)(nil), // 1: google.protobuf.Duration
   146  }
   147  var file_envoy_config_core_v3_backoff_proto_depIdxs = []int32{
   148  	1, // 0: envoy.config.core.v3.BackoffStrategy.base_interval:type_name -> google.protobuf.Duration
   149  	1, // 1: envoy.config.core.v3.BackoffStrategy.max_interval:type_name -> google.protobuf.Duration
   150  	2, // [2:2] is the sub-list for method output_type
   151  	2, // [2:2] is the sub-list for method input_type
   152  	2, // [2:2] is the sub-list for extension type_name
   153  	2, // [2:2] is the sub-list for extension extendee
   154  	0, // [0:2] is the sub-list for field type_name
   155  }
   156  
   157  func init() { file_envoy_config_core_v3_backoff_proto_init() }
   158  func file_envoy_config_core_v3_backoff_proto_init() {
   159  	if File_envoy_config_core_v3_backoff_proto != nil {
   160  		return
   161  	}
   162  	if !protoimpl.UnsafeEnabled {
   163  		file_envoy_config_core_v3_backoff_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   164  			switch v := v.(*BackoffStrategy); i {
   165  			case 0:
   166  				return &v.state
   167  			case 1:
   168  				return &v.sizeCache
   169  			case 2:
   170  				return &v.unknownFields
   171  			default:
   172  				return nil
   173  			}
   174  		}
   175  	}
   176  	type x struct{}
   177  	out := protoimpl.TypeBuilder{
   178  		File: protoimpl.DescBuilder{
   179  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   180  			RawDescriptor: file_envoy_config_core_v3_backoff_proto_rawDesc,
   181  			NumEnums:      0,
   182  			NumMessages:   1,
   183  			NumExtensions: 0,
   184  			NumServices:   0,
   185  		},
   186  		GoTypes:           file_envoy_config_core_v3_backoff_proto_goTypes,
   187  		DependencyIndexes: file_envoy_config_core_v3_backoff_proto_depIdxs,
   188  		MessageInfos:      file_envoy_config_core_v3_backoff_proto_msgTypes,
   189  	}.Build()
   190  	File_envoy_config_core_v3_backoff_proto = out.File
   191  	file_envoy_config_core_v3_backoff_proto_rawDesc = nil
   192  	file_envoy_config_core_v3_backoff_proto_goTypes = nil
   193  	file_envoy_config_core_v3_backoff_proto_depIdxs = nil
   194  }