github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/api/v2/core/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/api/v2/core/backoff.proto
     6  
     7  package envoy_api_v2_core
     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_api_field_core.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_api_field_core.BackoffStrategy.base_interval>` if set. The default
    44  	// is 10 times the :ref:`base_interval
    45  	// <envoy_api_field_core.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_api_v2_core_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_api_v2_core_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_api_v2_core_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_api_v2_core_backoff_proto protoreflect.FileDescriptor
    96  
    97  var file_envoy_api_v2_core_backoff_proto_rawDesc = []byte{
    98  	0x0a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x63,
    99  	0x6f, 0x72, 0x65, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   100  	0x6f, 0x12, 0x11, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e,
   101  	0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
   102  	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70,
   103  	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
   104  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x2e, 0x70,
   105  	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
   106  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72,
   107  	0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61,
   108  	0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa9, 0x01, 0x0a,
   109  	0x0f, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
   110  	0x12, 0x4e, 0x0a, 0x0d, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61,
   111  	0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   112  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69,
   113  	0x6f, 0x6e, 0x42, 0x0e, 0xfa, 0x42, 0x0b, 0xaa, 0x01, 0x08, 0x08, 0x01, 0x32, 0x04, 0x10, 0xc0,
   114  	0x84, 0x3d, 0x52, 0x0c, 0x62, 0x61, 0x73, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c,
   115  	0x12, 0x46, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c,
   116  	0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   117  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
   118  	0x6e, 0x42, 0x08, 0xfa, 0x42, 0x05, 0xaa, 0x01, 0x02, 0x2a, 0x00, 0x52, 0x0b, 0x6d, 0x61, 0x78,
   119  	0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x42, 0x55, 0x0a, 0x1f, 0x69, 0x6f, 0x2e, 0x65,
   120  	0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
   121  	0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0c, 0x42, 0x61, 0x63,
   122  	0x6b, 0x6f, 0x66, 0x66, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 0x05,
   123  	0x16, 0x12, 0x14, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
   124  	0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x62,
   125  	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   126  }
   127  
   128  var (
   129  	file_envoy_api_v2_core_backoff_proto_rawDescOnce sync.Once
   130  	file_envoy_api_v2_core_backoff_proto_rawDescData = file_envoy_api_v2_core_backoff_proto_rawDesc
   131  )
   132  
   133  func file_envoy_api_v2_core_backoff_proto_rawDescGZIP() []byte {
   134  	file_envoy_api_v2_core_backoff_proto_rawDescOnce.Do(func() {
   135  		file_envoy_api_v2_core_backoff_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_api_v2_core_backoff_proto_rawDescData)
   136  	})
   137  	return file_envoy_api_v2_core_backoff_proto_rawDescData
   138  }
   139  
   140  var file_envoy_api_v2_core_backoff_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   141  var file_envoy_api_v2_core_backoff_proto_goTypes = []interface{}{
   142  	(*BackoffStrategy)(nil),   // 0: envoy.api.v2.core.BackoffStrategy
   143  	(*duration.Duration)(nil), // 1: google.protobuf.Duration
   144  }
   145  var file_envoy_api_v2_core_backoff_proto_depIdxs = []int32{
   146  	1, // 0: envoy.api.v2.core.BackoffStrategy.base_interval:type_name -> google.protobuf.Duration
   147  	1, // 1: envoy.api.v2.core.BackoffStrategy.max_interval:type_name -> google.protobuf.Duration
   148  	2, // [2:2] is the sub-list for method output_type
   149  	2, // [2:2] is the sub-list for method input_type
   150  	2, // [2:2] is the sub-list for extension type_name
   151  	2, // [2:2] is the sub-list for extension extendee
   152  	0, // [0:2] is the sub-list for field type_name
   153  }
   154  
   155  func init() { file_envoy_api_v2_core_backoff_proto_init() }
   156  func file_envoy_api_v2_core_backoff_proto_init() {
   157  	if File_envoy_api_v2_core_backoff_proto != nil {
   158  		return
   159  	}
   160  	if !protoimpl.UnsafeEnabled {
   161  		file_envoy_api_v2_core_backoff_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   162  			switch v := v.(*BackoffStrategy); i {
   163  			case 0:
   164  				return &v.state
   165  			case 1:
   166  				return &v.sizeCache
   167  			case 2:
   168  				return &v.unknownFields
   169  			default:
   170  				return nil
   171  			}
   172  		}
   173  	}
   174  	type x struct{}
   175  	out := protoimpl.TypeBuilder{
   176  		File: protoimpl.DescBuilder{
   177  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   178  			RawDescriptor: file_envoy_api_v2_core_backoff_proto_rawDesc,
   179  			NumEnums:      0,
   180  			NumMessages:   1,
   181  			NumExtensions: 0,
   182  			NumServices:   0,
   183  		},
   184  		GoTypes:           file_envoy_api_v2_core_backoff_proto_goTypes,
   185  		DependencyIndexes: file_envoy_api_v2_core_backoff_proto_depIdxs,
   186  		MessageInfos:      file_envoy_api_v2_core_backoff_proto_msgTypes,
   187  	}.Build()
   188  	File_envoy_api_v2_core_backoff_proto = out.File
   189  	file_envoy_api_v2_core_backoff_proto_rawDesc = nil
   190  	file_envoy_api_v2_core_backoff_proto_goTypes = nil
   191  	file_envoy_api_v2_core_backoff_proto_depIdxs = nil
   192  }