...

Source file src/google.golang.org/genproto/googleapis/bigtable/v2/feature_flags.pb.go

Documentation: google.golang.org/genproto/googleapis/bigtable/v2

     1  // Copyright 2024 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.26.0
    18  // 	protoc        v4.24.4
    19  // source: google/bigtable/v2/feature_flags.proto
    20  
    21  package bigtable
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // Feature flags supported or enabled by a client.
    39  // This is intended to be sent as part of request metadata to assure the server
    40  // that certain behaviors are safe to enable. This proto is meant to be
    41  // serialized and websafe-base64 encoded under the `bigtable-features` metadata
    42  // key. The value will remain constant for the lifetime of a client and due to
    43  // HTTP2's HPACK compression, the request overhead will be tiny.
    44  // This is an internal implementation detail and should not be used by end users
    45  // directly.
    46  type FeatureFlags struct {
    47  	state         protoimpl.MessageState
    48  	sizeCache     protoimpl.SizeCache
    49  	unknownFields protoimpl.UnknownFields
    50  
    51  	// Notify the server that the client supports reverse scans. The server will
    52  	// reject ReadRowsRequests with the reverse bit set when this is absent.
    53  	ReverseScans bool `protobuf:"varint,1,opt,name=reverse_scans,json=reverseScans,proto3" json:"reverse_scans,omitempty"`
    54  	// Notify the server that the client enables batch write flow control by
    55  	// requesting RateLimitInfo from MutateRowsResponse. Due to technical reasons,
    56  	// this disables partial retries.
    57  	MutateRowsRateLimit bool `protobuf:"varint,3,opt,name=mutate_rows_rate_limit,json=mutateRowsRateLimit,proto3" json:"mutate_rows_rate_limit,omitempty"`
    58  	// Notify the server that the client enables batch write flow control by
    59  	// requesting RateLimitInfo from MutateRowsResponse. With partial retries
    60  	// enabled.
    61  	MutateRowsRateLimit2 bool `protobuf:"varint,5,opt,name=mutate_rows_rate_limit2,json=mutateRowsRateLimit2,proto3" json:"mutate_rows_rate_limit2,omitempty"`
    62  	// Notify the server that the client supports the last_scanned_row field
    63  	// in ReadRowsResponse for long-running scans.
    64  	LastScannedRowResponses bool `protobuf:"varint,4,opt,name=last_scanned_row_responses,json=lastScannedRowResponses,proto3" json:"last_scanned_row_responses,omitempty"`
    65  	// Notify the server that the client supports using encoded routing cookie
    66  	// strings to retry requests with.
    67  	RoutingCookie bool `protobuf:"varint,6,opt,name=routing_cookie,json=routingCookie,proto3" json:"routing_cookie,omitempty"`
    68  	// Notify the server that the client supports using retry info back off
    69  	// durations to retry requests with.
    70  	RetryInfo bool `protobuf:"varint,7,opt,name=retry_info,json=retryInfo,proto3" json:"retry_info,omitempty"`
    71  	// Notify the server that the client has client side metrics enabled.
    72  	ClientSideMetricsEnabled bool `protobuf:"varint,8,opt,name=client_side_metrics_enabled,json=clientSideMetricsEnabled,proto3" json:"client_side_metrics_enabled,omitempty"`
    73  }
    74  
    75  func (x *FeatureFlags) Reset() {
    76  	*x = FeatureFlags{}
    77  	if protoimpl.UnsafeEnabled {
    78  		mi := &file_google_bigtable_v2_feature_flags_proto_msgTypes[0]
    79  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    80  		ms.StoreMessageInfo(mi)
    81  	}
    82  }
    83  
    84  func (x *FeatureFlags) String() string {
    85  	return protoimpl.X.MessageStringOf(x)
    86  }
    87  
    88  func (*FeatureFlags) ProtoMessage() {}
    89  
    90  func (x *FeatureFlags) ProtoReflect() protoreflect.Message {
    91  	mi := &file_google_bigtable_v2_feature_flags_proto_msgTypes[0]
    92  	if protoimpl.UnsafeEnabled && x != nil {
    93  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    94  		if ms.LoadMessageInfo() == nil {
    95  			ms.StoreMessageInfo(mi)
    96  		}
    97  		return ms
    98  	}
    99  	return mi.MessageOf(x)
   100  }
   101  
   102  // Deprecated: Use FeatureFlags.ProtoReflect.Descriptor instead.
   103  func (*FeatureFlags) Descriptor() ([]byte, []int) {
   104  	return file_google_bigtable_v2_feature_flags_proto_rawDescGZIP(), []int{0}
   105  }
   106  
   107  func (x *FeatureFlags) GetReverseScans() bool {
   108  	if x != nil {
   109  		return x.ReverseScans
   110  	}
   111  	return false
   112  }
   113  
   114  func (x *FeatureFlags) GetMutateRowsRateLimit() bool {
   115  	if x != nil {
   116  		return x.MutateRowsRateLimit
   117  	}
   118  	return false
   119  }
   120  
   121  func (x *FeatureFlags) GetMutateRowsRateLimit2() bool {
   122  	if x != nil {
   123  		return x.MutateRowsRateLimit2
   124  	}
   125  	return false
   126  }
   127  
   128  func (x *FeatureFlags) GetLastScannedRowResponses() bool {
   129  	if x != nil {
   130  		return x.LastScannedRowResponses
   131  	}
   132  	return false
   133  }
   134  
   135  func (x *FeatureFlags) GetRoutingCookie() bool {
   136  	if x != nil {
   137  		return x.RoutingCookie
   138  	}
   139  	return false
   140  }
   141  
   142  func (x *FeatureFlags) GetRetryInfo() bool {
   143  	if x != nil {
   144  		return x.RetryInfo
   145  	}
   146  	return false
   147  }
   148  
   149  func (x *FeatureFlags) GetClientSideMetricsEnabled() bool {
   150  	if x != nil {
   151  		return x.ClientSideMetricsEnabled
   152  	}
   153  	return false
   154  }
   155  
   156  var File_google_bigtable_v2_feature_flags_proto protoreflect.FileDescriptor
   157  
   158  var file_google_bigtable_v2_feature_flags_proto_rawDesc = []byte{
   159  	0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x62, 0x69, 0x67, 0x74, 0x61, 0x62, 0x6c,
   160  	0x65, 0x2f, 0x76, 0x32, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x66, 0x6c, 0x61,
   161  	0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   162  	0x2e, 0x62, 0x69, 0x67, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x22, 0xe1, 0x02, 0x0a,
   163  	0x0c, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x23, 0x0a,
   164  	0x0d, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x5f, 0x73, 0x63, 0x61, 0x6e, 0x73, 0x18, 0x01,
   165  	0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x53, 0x63, 0x61,
   166  	0x6e, 0x73, 0x12, 0x33, 0x0a, 0x16, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x6f, 0x77,
   167  	0x73, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01,
   168  	0x28, 0x08, 0x52, 0x13, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x61,
   169  	0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x35, 0x0a, 0x17, 0x6d, 0x75, 0x74, 0x61, 0x74,
   170  	0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69,
   171  	0x74, 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x65,
   172  	0x52, 0x6f, 0x77, 0x73, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x32, 0x12, 0x3b,
   173  	0x0a, 0x1a, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x72,
   174  	0x6f, 0x77, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01,
   175  	0x28, 0x08, 0x52, 0x17, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x52,
   176  	0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x72,
   177  	0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x18, 0x06, 0x20,
   178  	0x01, 0x28, 0x08, 0x52, 0x0d, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6f, 0x6b,
   179  	0x69, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f,
   180  	0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x74, 0x72, 0x79, 0x49, 0x6e, 0x66,
   181  	0x6f, 0x12, 0x3d, 0x0a, 0x1b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x64, 0x65,
   182  	0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
   183  	0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x69,
   184  	0x64, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
   185  	0x42, 0xbd, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   186  	0x62, 0x69, 0x67, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x42, 0x11, 0x46, 0x65, 0x61,
   187  	0x74, 0x75, 0x72, 0x65, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
   188  	0x5a, 0x3a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
   189  	0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f,
   190  	0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x62, 0x69, 0x67, 0x74, 0x61, 0x62, 0x6c, 0x65,
   191  	0x2f, 0x76, 0x32, 0x3b, 0x62, 0x69, 0x67, 0x74, 0x61, 0x62, 0x6c, 0x65, 0xaa, 0x02, 0x18, 0x47,
   192  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x42, 0x69, 0x67, 0x74,
   193  	0x61, 0x62, 0x6c, 0x65, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x18, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   194  	0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x42, 0x69, 0x67, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5c,
   195  	0x56, 0x32, 0xea, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f,
   196  	0x75, 0x64, 0x3a, 0x3a, 0x42, 0x69, 0x67, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x32,
   197  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   198  }
   199  
   200  var (
   201  	file_google_bigtable_v2_feature_flags_proto_rawDescOnce sync.Once
   202  	file_google_bigtable_v2_feature_flags_proto_rawDescData = file_google_bigtable_v2_feature_flags_proto_rawDesc
   203  )
   204  
   205  func file_google_bigtable_v2_feature_flags_proto_rawDescGZIP() []byte {
   206  	file_google_bigtable_v2_feature_flags_proto_rawDescOnce.Do(func() {
   207  		file_google_bigtable_v2_feature_flags_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_bigtable_v2_feature_flags_proto_rawDescData)
   208  	})
   209  	return file_google_bigtable_v2_feature_flags_proto_rawDescData
   210  }
   211  
   212  var file_google_bigtable_v2_feature_flags_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   213  var file_google_bigtable_v2_feature_flags_proto_goTypes = []interface{}{
   214  	(*FeatureFlags)(nil), // 0: google.bigtable.v2.FeatureFlags
   215  }
   216  var file_google_bigtable_v2_feature_flags_proto_depIdxs = []int32{
   217  	0, // [0:0] is the sub-list for method output_type
   218  	0, // [0:0] is the sub-list for method input_type
   219  	0, // [0:0] is the sub-list for extension type_name
   220  	0, // [0:0] is the sub-list for extension extendee
   221  	0, // [0:0] is the sub-list for field type_name
   222  }
   223  
   224  func init() { file_google_bigtable_v2_feature_flags_proto_init() }
   225  func file_google_bigtable_v2_feature_flags_proto_init() {
   226  	if File_google_bigtable_v2_feature_flags_proto != nil {
   227  		return
   228  	}
   229  	if !protoimpl.UnsafeEnabled {
   230  		file_google_bigtable_v2_feature_flags_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   231  			switch v := v.(*FeatureFlags); i {
   232  			case 0:
   233  				return &v.state
   234  			case 1:
   235  				return &v.sizeCache
   236  			case 2:
   237  				return &v.unknownFields
   238  			default:
   239  				return nil
   240  			}
   241  		}
   242  	}
   243  	type x struct{}
   244  	out := protoimpl.TypeBuilder{
   245  		File: protoimpl.DescBuilder{
   246  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   247  			RawDescriptor: file_google_bigtable_v2_feature_flags_proto_rawDesc,
   248  			NumEnums:      0,
   249  			NumMessages:   1,
   250  			NumExtensions: 0,
   251  			NumServices:   0,
   252  		},
   253  		GoTypes:           file_google_bigtable_v2_feature_flags_proto_goTypes,
   254  		DependencyIndexes: file_google_bigtable_v2_feature_flags_proto_depIdxs,
   255  		MessageInfos:      file_google_bigtable_v2_feature_flags_proto_msgTypes,
   256  	}.Build()
   257  	File_google_bigtable_v2_feature_flags_proto = out.File
   258  	file_google_bigtable_v2_feature_flags_proto_rawDesc = nil
   259  	file_google_bigtable_v2_feature_flags_proto_goTypes = nil
   260  	file_google_bigtable_v2_feature_flags_proto_depIdxs = nil
   261  }
   262  

View as plain text