...

Source file src/google.golang.org/genproto/googleapis/cloud/gkehub/metering/v1beta/metering.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/gkehub/metering/v1beta

     1  // Copyright 2021 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        v3.12.2
    19  // source: google/cloud/gkehub/v1beta/metering/metering.proto
    20  
    21  package metering
    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  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    30  )
    31  
    32  const (
    33  	// Verify that this generated code is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    35  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    37  )
    38  
    39  // **Metering**: Per-Membership Feature State.
    40  type MembershipState struct {
    41  	state         protoimpl.MessageState
    42  	sizeCache     protoimpl.SizeCache
    43  	unknownFields protoimpl.UnknownFields
    44  
    45  	// The time stamp of the most recent measurement of the number of vCPUs
    46  	// in the cluster.
    47  	LastMeasurementTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=last_measurement_time,json=lastMeasurementTime,proto3" json:"last_measurement_time,omitempty"`
    48  	// The vCPUs capacity in the cluster according to the most recent
    49  	// measurement (1/1000 precision).
    50  	PreciseLastMeasuredClusterVcpuCapacity float32 `protobuf:"fixed32,3,opt,name=precise_last_measured_cluster_vcpu_capacity,json=preciseLastMeasuredClusterVcpuCapacity,proto3" json:"precise_last_measured_cluster_vcpu_capacity,omitempty"`
    51  }
    52  
    53  func (x *MembershipState) Reset() {
    54  	*x = MembershipState{}
    55  	if protoimpl.UnsafeEnabled {
    56  		mi := &file_google_cloud_gkehub_v1beta_metering_metering_proto_msgTypes[0]
    57  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    58  		ms.StoreMessageInfo(mi)
    59  	}
    60  }
    61  
    62  func (x *MembershipState) String() string {
    63  	return protoimpl.X.MessageStringOf(x)
    64  }
    65  
    66  func (*MembershipState) ProtoMessage() {}
    67  
    68  func (x *MembershipState) ProtoReflect() protoreflect.Message {
    69  	mi := &file_google_cloud_gkehub_v1beta_metering_metering_proto_msgTypes[0]
    70  	if protoimpl.UnsafeEnabled && x != nil {
    71  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    72  		if ms.LoadMessageInfo() == nil {
    73  			ms.StoreMessageInfo(mi)
    74  		}
    75  		return ms
    76  	}
    77  	return mi.MessageOf(x)
    78  }
    79  
    80  // Deprecated: Use MembershipState.ProtoReflect.Descriptor instead.
    81  func (*MembershipState) Descriptor() ([]byte, []int) {
    82  	return file_google_cloud_gkehub_v1beta_metering_metering_proto_rawDescGZIP(), []int{0}
    83  }
    84  
    85  func (x *MembershipState) GetLastMeasurementTime() *timestamppb.Timestamp {
    86  	if x != nil {
    87  		return x.LastMeasurementTime
    88  	}
    89  	return nil
    90  }
    91  
    92  func (x *MembershipState) GetPreciseLastMeasuredClusterVcpuCapacity() float32 {
    93  	if x != nil {
    94  		return x.PreciseLastMeasuredClusterVcpuCapacity
    95  	}
    96  	return 0
    97  }
    98  
    99  var File_google_cloud_gkehub_v1beta_metering_metering_proto protoreflect.FileDescriptor
   100  
   101  var file_google_cloud_gkehub_v1beta_metering_metering_proto_rawDesc = []byte{
   102  	0x0a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67,
   103  	0x6b, 0x65, 0x68, 0x75, 0x62, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x6d, 0x65, 0x74,
   104  	0x65, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70,
   105  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
   106  	0x75, 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x69,
   107  	0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   108  	0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
   109  	0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbe, 0x01, 0x0a, 0x0f, 0x4d,
   110  	0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x4e,
   111  	0x0a, 0x15, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65,
   112  	0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
   113  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
   114  	0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x13, 0x6c, 0x61, 0x73, 0x74, 0x4d,
   115  	0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x5b,
   116  	0x0a, 0x2b, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x65, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6d,
   117  	0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x64, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f,
   118  	0x76, 0x63, 0x70, 0x75, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20,
   119  	0x01, 0x28, 0x02, 0x52, 0x26, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x65, 0x4c, 0x61, 0x73, 0x74,
   120  	0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x56,
   121  	0x63, 0x70, 0x75, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x42, 0xfd, 0x01, 0x0a, 0x27,
   122  	0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
   123  	0x2e, 0x67, 0x6b, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x69, 0x6e, 0x67,
   124  	0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x42, 0x0d, 0x4d, 0x65, 0x74, 0x65, 0x72, 0x69, 0x6e,
   125  	0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   126  	0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70,
   127  	0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f,
   128  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6b, 0x65, 0x68, 0x75, 0x62, 0x2f, 0x6d, 0x65, 0x74,
   129  	0x65, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x3b, 0x6d, 0x65, 0x74,
   130  	0x65, 0x72, 0x69, 0x6e, 0x67, 0xaa, 0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43,
   131  	0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x6b, 0x65, 0x48, 0x75, 0x62, 0x2e, 0x4d, 0x65, 0x74, 0x65,
   132  	0x72, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x23, 0x47, 0x6f,
   133  	0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x47, 0x6b, 0x65, 0x48, 0x75,
   134  	0x62, 0x5c, 0x4d, 0x65, 0x74, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74,
   135  	0x61, 0xea, 0x02, 0x27, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75,
   136  	0x64, 0x3a, 0x3a, 0x47, 0x6b, 0x65, 0x48, 0x75, 0x62, 0x3a, 0x3a, 0x4d, 0x65, 0x74, 0x65, 0x72,
   137  	0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f,
   138  	0x74, 0x6f, 0x33,
   139  }
   140  
   141  var (
   142  	file_google_cloud_gkehub_v1beta_metering_metering_proto_rawDescOnce sync.Once
   143  	file_google_cloud_gkehub_v1beta_metering_metering_proto_rawDescData = file_google_cloud_gkehub_v1beta_metering_metering_proto_rawDesc
   144  )
   145  
   146  func file_google_cloud_gkehub_v1beta_metering_metering_proto_rawDescGZIP() []byte {
   147  	file_google_cloud_gkehub_v1beta_metering_metering_proto_rawDescOnce.Do(func() {
   148  		file_google_cloud_gkehub_v1beta_metering_metering_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_gkehub_v1beta_metering_metering_proto_rawDescData)
   149  	})
   150  	return file_google_cloud_gkehub_v1beta_metering_metering_proto_rawDescData
   151  }
   152  
   153  var file_google_cloud_gkehub_v1beta_metering_metering_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   154  var file_google_cloud_gkehub_v1beta_metering_metering_proto_goTypes = []interface{}{
   155  	(*MembershipState)(nil),       // 0: google.cloud.gkehub.metering.v1beta.MembershipState
   156  	(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
   157  }
   158  var file_google_cloud_gkehub_v1beta_metering_metering_proto_depIdxs = []int32{
   159  	1, // 0: google.cloud.gkehub.metering.v1beta.MembershipState.last_measurement_time:type_name -> google.protobuf.Timestamp
   160  	1, // [1:1] is the sub-list for method output_type
   161  	1, // [1:1] is the sub-list for method input_type
   162  	1, // [1:1] is the sub-list for extension type_name
   163  	1, // [1:1] is the sub-list for extension extendee
   164  	0, // [0:1] is the sub-list for field type_name
   165  }
   166  
   167  func init() { file_google_cloud_gkehub_v1beta_metering_metering_proto_init() }
   168  func file_google_cloud_gkehub_v1beta_metering_metering_proto_init() {
   169  	if File_google_cloud_gkehub_v1beta_metering_metering_proto != nil {
   170  		return
   171  	}
   172  	if !protoimpl.UnsafeEnabled {
   173  		file_google_cloud_gkehub_v1beta_metering_metering_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   174  			switch v := v.(*MembershipState); i {
   175  			case 0:
   176  				return &v.state
   177  			case 1:
   178  				return &v.sizeCache
   179  			case 2:
   180  				return &v.unknownFields
   181  			default:
   182  				return nil
   183  			}
   184  		}
   185  	}
   186  	type x struct{}
   187  	out := protoimpl.TypeBuilder{
   188  		File: protoimpl.DescBuilder{
   189  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   190  			RawDescriptor: file_google_cloud_gkehub_v1beta_metering_metering_proto_rawDesc,
   191  			NumEnums:      0,
   192  			NumMessages:   1,
   193  			NumExtensions: 0,
   194  			NumServices:   0,
   195  		},
   196  		GoTypes:           file_google_cloud_gkehub_v1beta_metering_metering_proto_goTypes,
   197  		DependencyIndexes: file_google_cloud_gkehub_v1beta_metering_metering_proto_depIdxs,
   198  		MessageInfos:      file_google_cloud_gkehub_v1beta_metering_metering_proto_msgTypes,
   199  	}.Build()
   200  	File_google_cloud_gkehub_v1beta_metering_metering_proto = out.File
   201  	file_google_cloud_gkehub_v1beta_metering_metering_proto_rawDesc = nil
   202  	file_google_cloud_gkehub_v1beta_metering_metering_proto_goTypes = nil
   203  	file_google_cloud_gkehub_v1beta_metering_metering_proto_depIdxs = nil
   204  }
   205  

View as plain text