From 1103f78e8ea22b3626ddfd4c46b767b70921fe7c Mon Sep 17 00:00:00 2001 From: Seth Hollyman Date: Thu, 26 Aug 2021 16:46:28 +0000 Subject: [PATCH 1/6] feat(bigquery/storage/managedwriter): more metrics instrumentation --- .../storage/managedwriter/instrumentation.go | 55 ++- .../storage/managedwriter/managed_stream.go | 15 + .../testdata/messages_proto2.pb.go | 344 +++++++-------- .../testdata/messages_proto2.proto | 30 +- .../testdata/messages_proto3.pb.go | 417 +++++++++--------- .../testdata/messages_proto3.proto | 29 +- 6 files changed, 479 insertions(+), 411 deletions(-) diff --git a/bigquery/storage/managedwriter/instrumentation.go b/bigquery/storage/managedwriter/instrumentation.go index 30140e114c6..270e14d64d4 100644 --- a/bigquery/storage/managedwriter/instrumentation.go +++ b/bigquery/storage/managedwriter/instrumentation.go @@ -31,8 +31,15 @@ var ( // We allow users to annotate streams with a data origin for monitoring purposes. // See the WithDataOrigin writer option for providing this. keyDataOrigin = tag.MustNewKey("dataOrigin") + + // keyError tags metrics using the status code of returned errors. + keyError = tag.MustNewKey("error") ) +// DefaultOpenCensusViews retains the set of all opencensus views that this +// library has instrumented, to add view registration for exporters. +var DefaultOpenCensusViews []*view.View + const statsPrefix = "cloud.google.com/go/bigquery/storage/managedwriter/" var ( @@ -40,14 +47,26 @@ var ( // It is EXPERIMENTAL and subject to change or removal without notice. AppendRequests = stats.Int64(statsPrefix+"append_requests", "Number of append requests sent", stats.UnitDimensionless) - // AppendBytes is a measure of the bytes sent as append requests. + // AppendRows is a measure of the number of append rows sent. + // It is EXPERIMENTAL and subject to change or removal without notice. + AppendRows = stats.Int64(statsPrefix+"append_rows", "Number of append rows sent", stats.UnitDimensionless) + + // AppendRequestBytes is a measure of the bytes sent as append requests. // It is EXPERIMENTAL and subject to change or removal without notice. - AppendBytes = stats.Int64(statsPrefix+"append_bytes", "Number of bytes sent as append requests", stats.UnitBytes) + AppendRequestBytes = stats.Int64(statsPrefix+"append_request_bytes", "Number of bytes sent as append requests", stats.UnitBytes) + + // AppendRequestErrors is a measure of the number of append requests that errored on send. + // It is EXPERIMENTAL and subject to change or removal without notice. + AppendRequestErrors = stats.Int64(statsPrefix+"append_request_errors", "Number of append requests that yielded immediate error", stats.UnitDimensionless) // AppendResponses is a measure of the number of append responses received. // It is EXPERIMENTAL and subject to change or removal without notice. AppendResponses = stats.Int64(statsPrefix+"append_responses", "Number of append responses sent", stats.UnitDimensionless) + // AppendResponses is a measure of the number of append responses received with an error attached. + // It is EXPERIMENTAL and subject to change or removal without notice. + AppendResponseErrors = stats.Int64(statsPrefix+"append_response_errors", "Number of append responses with errors attached", stats.UnitDimensionless) + // FlushRequests is a measure of the number of FlushRows requests sent. // It is EXPERIMENTAL and subject to change or removal without notice. FlushRequests = stats.Int64(statsPrefix+"flush_requests", "Number of FlushRows requests sent", stats.UnitDimensionless) @@ -66,14 +85,26 @@ var ( // It is EXPERIMENTAL and subject to change or removal without notice. AppendRequestsView *view.View - // AppendBytesView is a cumulative sum of AppendBytes. + // AppendRowsView is a cumulative sum of AppendRows. // It is EXPERIMENTAL and subject to change or removal without notice. - AppendBytesView *view.View + AppendRowsView *view.View + + // AppendRequestBytesView is a cumulative sum of AppendRequestBytes. + // It is EXPERIMENTAL and subject to change or removal without notice. + AppendRequestBytesView *view.View + + // AppendRequestErrorsView is a cumulative sum of AppendRequestErrors. + // It is EXPERIMENTAL and subject to change or removal without notice. + AppendRequestErrorsView *view.View // AppendResponsesView is a cumulative sum of AppendResponses. // It is EXPERIMENTAL and subject to change or removal without notice. AppendResponsesView *view.View + // AppendResponseErrorsView is a cumulative sum of AppendResponseErrors. + // It is EXPERIMENTAL and subject to change or removal without notice. + AppendResponseErrorsView *view.View + // FlushRequestsView is a cumulative sum of FlushRequests. // It is EXPERIMENTAL and subject to change or removal without notice. FlushRequestsView *view.View @@ -89,11 +120,25 @@ var ( func init() { AppendRequestsView = createSumView(stats.Measure(AppendRequests), keyStream, keyDataOrigin) - AppendBytesView = createSumView(stats.Measure(AppendBytes), keyStream, keyDataOrigin) + AppendRowsView = createSumView(stats.Measure(AppendRows), keyStream, keyDataOrigin) + AppendRequestBytesView = createSumView(stats.Measure(AppendRequestBytes), keyStream, keyDataOrigin) + AppendRequestErrorsView = createSumView(stats.Measure(AppendRequestErrors), keyStream, keyDataOrigin, keyError) AppendResponsesView = createSumView(stats.Measure(AppendResponses), keyStream, keyDataOrigin) + AppendResponseErrorsView = createSumView(stats.Measure(AppendResponseErrors), keyStream, keyDataOrigin, keyError) FlushRequestsView = createSumView(stats.Measure(FlushRequests), keyStream, keyDataOrigin) AppendClientOpenView = createSumView(stats.Measure(AppendClientOpenCount), keyStream, keyDataOrigin) AppendClientOpenRetryView = createSumView(stats.Measure(AppendClientOpenRetryCount), keyStream, keyDataOrigin) + + DefaultOpenCensusViews = []*view.View{ + AppendRequestsView, + AppendRowsView, + AppendRequestBytesView, + AppendResponsesView, + AppendResponseErrorsView, + FlushRequestsView, + AppendClientOpenView, + AppendClientOpenRetryView, + } } func createView(m stats.Measure, agg *view.Aggregation, keys ...tag.Key) *view.View { diff --git a/bigquery/storage/managedwriter/managed_stream.go b/bigquery/storage/managedwriter/managed_stream.go index 7d50ace47e2..7043e66e703 100644 --- a/bigquery/storage/managedwriter/managed_stream.go +++ b/bigquery/storage/managedwriter/managed_stream.go @@ -18,10 +18,13 @@ import ( "context" "fmt" "io" + "log" "sync" "github.com/googleapis/gax-go/v2" + "go.opencensus.io/tag" storagepb "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta2" + "google.golang.org/grpc/codes" grpcstatus "google.golang.org/grpc/status" "google.golang.org/protobuf/types/descriptorpb" "google.golang.org/protobuf/types/known/wrapperspb" @@ -269,7 +272,14 @@ func (ms *ManagedStream) append(pw *pendingWrite, opts ...gax.CallOption) error err = (*arc).Send(req) } recordStat(ms.ctx, AppendRequests, 1) + recordStat(ms.ctx, AppendRows, int64(len(pw.request.GetProtoRows().Rows.GetSerializedRows()))) + recordStat(ms.ctx, AppendRequestBytes, int64(pw.reqSize)) if err != nil { + status := grpcstatus.Convert(err) + if status != nil { + ctx, _ := tag.New(ms.ctx, tag.Insert(keyError, status.Code().String())) + recordStat(ctx, AppendRequestErrors, 1) + } bo, shouldRetry := r.Retry(err) if shouldRetry { if err := gax.Sleep(ms.ctx, bo); err != nil { @@ -366,6 +376,11 @@ func recvProcessor(ctx context.Context, arc storagepb.BigQueryWrite_AppendRowsCl recordStat(ctx, AppendResponses, 1) if status := resp.GetError(); status != nil { + tagCtx, err := tag.New(ctx, tag.Insert(keyError, codes.Code(status.GetCode()).String())) + if err != nil { + log.Printf("WTF couldn't tag: %v", err) + } + recordStat(tagCtx, AppendResponseErrors, 1) nextWrite.markDone(NoStreamOffset, grpcstatus.ErrorProto(status), fc) continue } diff --git a/bigquery/storage/managedwriter/testdata/messages_proto2.pb.go b/bigquery/storage/managedwriter/testdata/messages_proto2.pb.go index d57ac20be31..6e1aee107fb 100644 --- a/bigquery/storage/managedwriter/testdata/messages_proto2.pb.go +++ b/bigquery/storage/managedwriter/testdata/messages_proto2.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.25.0 -// protoc v3.10.1 +// protoc-gen-go v1.27.1 +// protoc v3.17.3 // source: messages_proto2.proto package testdata @@ -24,7 +24,6 @@ import ( reflect "reflect" sync "sync" - proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -36,10 +35,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - // SimpleMessage represents a simple message that transmits a string and int64 value. type SimpleMessageProto2 struct { state protoimpl.MessageState @@ -98,20 +93,25 @@ func (x *SimpleMessageProto2) GetValue() int64 { return 0 } -type GithubArchiveEntityProto2 struct { +// GithubArchiveMessageProto2 is the proto2 version of github archive row. +type GithubArchiveMessageProto2 struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` - Login *string `protobuf:"bytes,2,opt,name=login" json:"login,omitempty"` - GravatarId *string `protobuf:"bytes,3,opt,name=gravatar_id,json=gravatarId" json:"gravatar_id,omitempty"` - AvatarUrl *string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl" json:"avatar_url,omitempty"` - Url *string `protobuf:"bytes,5,opt,name=url" json:"url,omitempty"` + Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` + Public *bool `protobuf:"varint,2,opt,name=public" json:"public,omitempty"` + Payload *string `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"` + Repo *GithubArchiveMessageProto2_GithubArchiveRepoProto2 `protobuf:"bytes,4,opt,name=repo" json:"repo,omitempty"` + Actor *GithubArchiveMessageProto2_GithubArchiveEntityProto2 `protobuf:"bytes,5,opt,name=actor" json:"actor,omitempty"` + Org *GithubArchiveMessageProto2_GithubArchiveEntityProto2 `protobuf:"bytes,6,opt,name=org" json:"org,omitempty"` + CreatedAt *int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` + Id *string `protobuf:"bytes,8,opt,name=id" json:"id,omitempty"` + Other *string `protobuf:"bytes,9,opt,name=other" json:"other,omitempty"` } -func (x *GithubArchiveEntityProto2) Reset() { - *x = GithubArchiveEntityProto2{} +func (x *GithubArchiveMessageProto2) Reset() { + *x = GithubArchiveMessageProto2{} if protoimpl.UnsafeEnabled { mi := &file_messages_proto2_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -119,13 +119,13 @@ func (x *GithubArchiveEntityProto2) Reset() { } } -func (x *GithubArchiveEntityProto2) String() string { +func (x *GithubArchiveMessageProto2) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GithubArchiveEntityProto2) ProtoMessage() {} +func (*GithubArchiveMessageProto2) ProtoMessage() {} -func (x *GithubArchiveEntityProto2) ProtoReflect() protoreflect.Message { +func (x *GithubArchiveMessageProto2) ProtoReflect() protoreflect.Message { mi := &file_messages_proto2_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -137,58 +137,88 @@ func (x *GithubArchiveEntityProto2) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GithubArchiveEntityProto2.ProtoReflect.Descriptor instead. -func (*GithubArchiveEntityProto2) Descriptor() ([]byte, []int) { +// Deprecated: Use GithubArchiveMessageProto2.ProtoReflect.Descriptor instead. +func (*GithubArchiveMessageProto2) Descriptor() ([]byte, []int) { return file_messages_proto2_proto_rawDescGZIP(), []int{1} } -func (x *GithubArchiveEntityProto2) GetId() int64 { - if x != nil && x.Id != nil { - return *x.Id +func (x *GithubArchiveMessageProto2) GetType() string { + if x != nil && x.Type != nil { + return *x.Type } - return 0 + return "" } -func (x *GithubArchiveEntityProto2) GetLogin() string { - if x != nil && x.Login != nil { - return *x.Login +func (x *GithubArchiveMessageProto2) GetPublic() bool { + if x != nil && x.Public != nil { + return *x.Public } - return "" + return false } -func (x *GithubArchiveEntityProto2) GetGravatarId() string { - if x != nil && x.GravatarId != nil { - return *x.GravatarId +func (x *GithubArchiveMessageProto2) GetPayload() string { + if x != nil && x.Payload != nil { + return *x.Payload } return "" } -func (x *GithubArchiveEntityProto2) GetAvatarUrl() string { - if x != nil && x.AvatarUrl != nil { - return *x.AvatarUrl +func (x *GithubArchiveMessageProto2) GetRepo() *GithubArchiveMessageProto2_GithubArchiveRepoProto2 { + if x != nil { + return x.Repo + } + return nil +} + +func (x *GithubArchiveMessageProto2) GetActor() *GithubArchiveMessageProto2_GithubArchiveEntityProto2 { + if x != nil { + return x.Actor + } + return nil +} + +func (x *GithubArchiveMessageProto2) GetOrg() *GithubArchiveMessageProto2_GithubArchiveEntityProto2 { + if x != nil { + return x.Org + } + return nil +} + +func (x *GithubArchiveMessageProto2) GetCreatedAt() int64 { + if x != nil && x.CreatedAt != nil { + return *x.CreatedAt + } + return 0 +} + +func (x *GithubArchiveMessageProto2) GetId() string { + if x != nil && x.Id != nil { + return *x.Id } return "" } -func (x *GithubArchiveEntityProto2) GetUrl() string { - if x != nil && x.Url != nil { - return *x.Url +func (x *GithubArchiveMessageProto2) GetOther() string { + if x != nil && x.Other != nil { + return *x.Other } return "" } -type GithubArchiveRepoProto2 struct { +type GithubArchiveMessageProto2_GithubArchiveEntityProto2 struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` - Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` - Url *string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"` + Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` + Login *string `protobuf:"bytes,2,opt,name=login" json:"login,omitempty"` + GravatarId *string `protobuf:"bytes,3,opt,name=gravatar_id,json=gravatarId" json:"gravatar_id,omitempty"` + AvatarUrl *string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl" json:"avatar_url,omitempty"` + Url *string `protobuf:"bytes,5,opt,name=url" json:"url,omitempty"` } -func (x *GithubArchiveRepoProto2) Reset() { - *x = GithubArchiveRepoProto2{} +func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) Reset() { + *x = GithubArchiveMessageProto2_GithubArchiveEntityProto2{} if protoimpl.UnsafeEnabled { mi := &file_messages_proto2_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -196,13 +226,13 @@ func (x *GithubArchiveRepoProto2) Reset() { } } -func (x *GithubArchiveRepoProto2) String() string { +func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GithubArchiveRepoProto2) ProtoMessage() {} +func (*GithubArchiveMessageProto2_GithubArchiveEntityProto2) ProtoMessage() {} -func (x *GithubArchiveRepoProto2) ProtoReflect() protoreflect.Message { +func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) ProtoReflect() protoreflect.Message { mi := &file_messages_proto2_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -214,51 +244,58 @@ func (x *GithubArchiveRepoProto2) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GithubArchiveRepoProto2.ProtoReflect.Descriptor instead. -func (*GithubArchiveRepoProto2) Descriptor() ([]byte, []int) { - return file_messages_proto2_proto_rawDescGZIP(), []int{2} +// Deprecated: Use GithubArchiveMessageProto2_GithubArchiveEntityProto2.ProtoReflect.Descriptor instead. +func (*GithubArchiveMessageProto2_GithubArchiveEntityProto2) Descriptor() ([]byte, []int) { + return file_messages_proto2_proto_rawDescGZIP(), []int{1, 0} } -func (x *GithubArchiveRepoProto2) GetId() int64 { +func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) GetId() int64 { if x != nil && x.Id != nil { return *x.Id } return 0 } -func (x *GithubArchiveRepoProto2) GetName() string { - if x != nil && x.Name != nil { - return *x.Name +func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) GetLogin() string { + if x != nil && x.Login != nil { + return *x.Login } return "" } -func (x *GithubArchiveRepoProto2) GetUrl() string { +func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) GetGravatarId() string { + if x != nil && x.GravatarId != nil { + return *x.GravatarId + } + return "" +} + +func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) GetAvatarUrl() string { + if x != nil && x.AvatarUrl != nil { + return *x.AvatarUrl + } + return "" +} + +func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) GetUrl() string { if x != nil && x.Url != nil { return *x.Url } return "" } -// GithubArchiveMessageProto2 is the proto2 version of github archive row. -type GithubArchiveMessageProto2 struct { +type GithubArchiveMessageProto2_GithubArchiveRepoProto2 struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` - Public *bool `protobuf:"varint,2,opt,name=public" json:"public,omitempty"` - Payload *string `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"` - Repo *GithubArchiveRepoProto2 `protobuf:"bytes,4,opt,name=repo" json:"repo,omitempty"` - Actor *GithubArchiveEntityProto2 `protobuf:"bytes,5,opt,name=actor" json:"actor,omitempty"` - Org *GithubArchiveEntityProto2 `protobuf:"bytes,6,opt,name=org" json:"org,omitempty"` - CreatedAt *int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` - Id *string `protobuf:"bytes,8,opt,name=id" json:"id,omitempty"` - Other *string `protobuf:"bytes,9,opt,name=other" json:"other,omitempty"` + Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` + Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` + Url *string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"` } -func (x *GithubArchiveMessageProto2) Reset() { - *x = GithubArchiveMessageProto2{} +func (x *GithubArchiveMessageProto2_GithubArchiveRepoProto2) Reset() { + *x = GithubArchiveMessageProto2_GithubArchiveRepoProto2{} if protoimpl.UnsafeEnabled { mi := &file_messages_proto2_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -266,13 +303,13 @@ func (x *GithubArchiveMessageProto2) Reset() { } } -func (x *GithubArchiveMessageProto2) String() string { +func (x *GithubArchiveMessageProto2_GithubArchiveRepoProto2) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GithubArchiveMessageProto2) ProtoMessage() {} +func (*GithubArchiveMessageProto2_GithubArchiveRepoProto2) ProtoMessage() {} -func (x *GithubArchiveMessageProto2) ProtoReflect() protoreflect.Message { +func (x *GithubArchiveMessageProto2_GithubArchiveRepoProto2) ProtoReflect() protoreflect.Message { mi := &file_messages_proto2_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -284,70 +321,28 @@ func (x *GithubArchiveMessageProto2) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GithubArchiveMessageProto2.ProtoReflect.Descriptor instead. -func (*GithubArchiveMessageProto2) Descriptor() ([]byte, []int) { - return file_messages_proto2_proto_rawDescGZIP(), []int{3} -} - -func (x *GithubArchiveMessageProto2) GetType() string { - if x != nil && x.Type != nil { - return *x.Type - } - return "" -} - -func (x *GithubArchiveMessageProto2) GetPublic() bool { - if x != nil && x.Public != nil { - return *x.Public - } - return false -} - -func (x *GithubArchiveMessageProto2) GetPayload() string { - if x != nil && x.Payload != nil { - return *x.Payload - } - return "" -} - -func (x *GithubArchiveMessageProto2) GetRepo() *GithubArchiveRepoProto2 { - if x != nil { - return x.Repo - } - return nil -} - -func (x *GithubArchiveMessageProto2) GetActor() *GithubArchiveEntityProto2 { - if x != nil { - return x.Actor - } - return nil -} - -func (x *GithubArchiveMessageProto2) GetOrg() *GithubArchiveEntityProto2 { - if x != nil { - return x.Org - } - return nil +// Deprecated: Use GithubArchiveMessageProto2_GithubArchiveRepoProto2.ProtoReflect.Descriptor instead. +func (*GithubArchiveMessageProto2_GithubArchiveRepoProto2) Descriptor() ([]byte, []int) { + return file_messages_proto2_proto_rawDescGZIP(), []int{1, 1} } -func (x *GithubArchiveMessageProto2) GetCreatedAt() int64 { - if x != nil && x.CreatedAt != nil { - return *x.CreatedAt +func (x *GithubArchiveMessageProto2_GithubArchiveRepoProto2) GetId() int64 { + if x != nil && x.Id != nil { + return *x.Id } return 0 } -func (x *GithubArchiveMessageProto2) GetId() string { - if x != nil && x.Id != nil { - return *x.Id +func (x *GithubArchiveMessageProto2_GithubArchiveRepoProto2) GetName() string { + if x != nil && x.Name != nil { + return *x.Name } return "" } -func (x *GithubArchiveMessageProto2) GetOther() string { - if x != nil && x.Other != nil { - return *x.Other +func (x *GithubArchiveMessageProto2_GithubArchiveRepoProto2) GetUrl() string { + if x != nil && x.Url != nil { + return *x.Url } return "" } @@ -361,46 +356,51 @@ var file_messages_proto2_proto_rawDesc = []byte{ 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x19, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, - 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x76, 0x61, 0x74, - 0x61, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x72, 0x61, - 0x76, 0x61, 0x74, 0x61, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, - 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, - 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x4f, 0x0a, 0x17, 0x47, 0x69, 0x74, 0x68, + 0x75, 0x65, 0x22, 0x88, 0x05, 0x0a, 0x1a, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x32, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x18, 0x0a, + 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x50, 0x0a, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x32, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0xd0, 0x02, 0x0a, 0x1a, 0x47, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, - 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x35, - 0x0a, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, + 0x74, 0x6f, 0x32, 0x52, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x12, 0x54, 0x0a, 0x05, 0x61, 0x63, 0x74, + 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x47, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x52, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, + 0x50, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, - 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x52, - 0x04, 0x72, 0x65, 0x70, 0x6f, 0x12, 0x39, 0x0a, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x52, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, - 0x12, 0x35, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, - 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, - 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x32, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x42, 0x3d, 0x5a, 0x3b, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x77, 0x72, 0x69, 0x74, - 0x65, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, + 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x32, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x52, 0x03, 0x6f, 0x72, + 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x1a, 0x93, 0x01, 0x0a, 0x19, 0x47, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x32, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x72, + 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x67, 0x72, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, + 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, + 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x1a, 0x4f, 0x0a, 0x17, + 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x70, + 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, + 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x42, 0x3d, 0x5a, + 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x77, 0x72, 0x69, + 0x74, 0x65, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, } var ( @@ -417,15 +417,15 @@ func file_messages_proto2_proto_rawDescGZIP() []byte { var file_messages_proto2_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_messages_proto2_proto_goTypes = []interface{}{ - (*SimpleMessageProto2)(nil), // 0: testdata.SimpleMessageProto2 - (*GithubArchiveEntityProto2)(nil), // 1: testdata.GithubArchiveEntityProto2 - (*GithubArchiveRepoProto2)(nil), // 2: testdata.GithubArchiveRepoProto2 - (*GithubArchiveMessageProto2)(nil), // 3: testdata.GithubArchiveMessageProto2 + (*SimpleMessageProto2)(nil), // 0: testdata.SimpleMessageProto2 + (*GithubArchiveMessageProto2)(nil), // 1: testdata.GithubArchiveMessageProto2 + (*GithubArchiveMessageProto2_GithubArchiveEntityProto2)(nil), // 2: testdata.GithubArchiveMessageProto2.GithubArchiveEntityProto2 + (*GithubArchiveMessageProto2_GithubArchiveRepoProto2)(nil), // 3: testdata.GithubArchiveMessageProto2.GithubArchiveRepoProto2 } var file_messages_proto2_proto_depIdxs = []int32{ - 2, // 0: testdata.GithubArchiveMessageProto2.repo:type_name -> testdata.GithubArchiveRepoProto2 - 1, // 1: testdata.GithubArchiveMessageProto2.actor:type_name -> testdata.GithubArchiveEntityProto2 - 1, // 2: testdata.GithubArchiveMessageProto2.org:type_name -> testdata.GithubArchiveEntityProto2 + 3, // 0: testdata.GithubArchiveMessageProto2.repo:type_name -> testdata.GithubArchiveMessageProto2.GithubArchiveRepoProto2 + 2, // 1: testdata.GithubArchiveMessageProto2.actor:type_name -> testdata.GithubArchiveMessageProto2.GithubArchiveEntityProto2 + 2, // 2: testdata.GithubArchiveMessageProto2.org:type_name -> testdata.GithubArchiveMessageProto2.GithubArchiveEntityProto2 3, // [3:3] is the sub-list for method output_type 3, // [3:3] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name @@ -452,7 +452,7 @@ func file_messages_proto2_proto_init() { } } file_messages_proto2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GithubArchiveEntityProto2); i { + switch v := v.(*GithubArchiveMessageProto2); i { case 0: return &v.state case 1: @@ -464,7 +464,7 @@ func file_messages_proto2_proto_init() { } } file_messages_proto2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GithubArchiveRepoProto2); i { + switch v := v.(*GithubArchiveMessageProto2_GithubArchiveEntityProto2); i { case 0: return &v.state case 1: @@ -476,7 +476,7 @@ func file_messages_proto2_proto_init() { } } file_messages_proto2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GithubArchiveMessageProto2); i { + switch v := v.(*GithubArchiveMessageProto2_GithubArchiveRepoProto2); i { case 0: return &v.state case 1: diff --git a/bigquery/storage/managedwriter/testdata/messages_proto2.proto b/bigquery/storage/managedwriter/testdata/messages_proto2.proto index fdb2fb55e47..d2d8fa8b9e1 100644 --- a/bigquery/storage/managedwriter/testdata/messages_proto2.proto +++ b/bigquery/storage/managedwriter/testdata/messages_proto2.proto @@ -27,22 +27,28 @@ message SimpleMessageProto2 { -message GithubArchiveEntityProto2 { - optional int64 id = 1; - optional string login = 2; - optional string gravatar_id = 3; - optional string avatar_url = 4; - optional string url = 5; -} -message GithubArchiveRepoProto2 { - optional int64 id = 1; - optional string name = 2; - optional string url = 3; -} + + // GithubArchiveMessageProto2 is the proto2 version of github archive row. message GithubArchiveMessageProto2 { + + + message GithubArchiveEntityProto2 { + optional int64 id = 1; + optional string login = 2; + optional string gravatar_id = 3; + optional string avatar_url = 4; + optional string url = 5; + } + + message GithubArchiveRepoProto2 { + optional int64 id = 1; + optional string name = 2; + optional string url = 3; + } + optional string type = 1; optional bool public = 2; optional string payload = 3; diff --git a/bigquery/storage/managedwriter/testdata/messages_proto3.pb.go b/bigquery/storage/managedwriter/testdata/messages_proto3.pb.go index 1422ac357d5..d939f5bbf40 100644 --- a/bigquery/storage/managedwriter/testdata/messages_proto3.pb.go +++ b/bigquery/storage/managedwriter/testdata/messages_proto3.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.25.0 -// protoc v3.10.1 +// protoc-gen-go v1.27.1 +// protoc v3.17.3 // source: messages_proto3.proto package testdata @@ -24,10 +24,9 @@ import ( reflect "reflect" sync "sync" - proto "github.com/golang/protobuf/proto" - wrappers "github.com/golang/protobuf/ptypes/wrappers" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -37,10 +36,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - // SimpleMessageProto3 represents a simple message that transmits a string and int64 value. type SimpleMessageProto3 struct { state protoimpl.MessageState @@ -50,7 +45,7 @@ type SimpleMessageProto3 struct { // name is a simple scalar string. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // value is a simple int64 value. - Value *wrappers.Int64Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Value *wrapperspb.Int64Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } func (x *SimpleMessageProto3) Reset() { @@ -92,27 +87,32 @@ func (x *SimpleMessageProto3) GetName() string { return "" } -func (x *SimpleMessageProto3) GetValue() *wrappers.Int64Value { +func (x *SimpleMessageProto3) GetValue() *wrapperspb.Int64Value { if x != nil { return x.Value } return nil } -type GithubArchiveEntityProto3 struct { +// GithubArchiveMessageProto3 is the proto3 version of github archive row. +type GithubArchiveMessageProto3 struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id *wrappers.Int64Value `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Login *wrappers.StringValue `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"` - GravatarId *wrappers.StringValue `protobuf:"bytes,3,opt,name=gravatar_id,json=gravatarId,proto3" json:"gravatar_id,omitempty"` - AvatarUrl *wrappers.StringValue `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` - Url *wrappers.StringValue `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` + Type *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Public *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=public,proto3" json:"public,omitempty"` + Payload *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` + Repo *GithubArchiveMessageProto3_GithubArchiveRepoProto3 `protobuf:"bytes,4,opt,name=repo,proto3" json:"repo,omitempty"` + Actor *GithubArchiveMessageProto3_GithubArchiveEntityProto3 `protobuf:"bytes,5,opt,name=actor,proto3" json:"actor,omitempty"` + Org *GithubArchiveMessageProto3_GithubArchiveEntityProto3 `protobuf:"bytes,6,opt,name=org,proto3" json:"org,omitempty"` + CreatedAt *wrapperspb.Int64Value `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + Id *wrapperspb.StringValue `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"` + Other *wrapperspb.StringValue `protobuf:"bytes,9,opt,name=other,proto3" json:"other,omitempty"` } -func (x *GithubArchiveEntityProto3) Reset() { - *x = GithubArchiveEntityProto3{} +func (x *GithubArchiveMessageProto3) Reset() { + *x = GithubArchiveMessageProto3{} if protoimpl.UnsafeEnabled { mi := &file_messages_proto3_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -120,13 +120,13 @@ func (x *GithubArchiveEntityProto3) Reset() { } } -func (x *GithubArchiveEntityProto3) String() string { +func (x *GithubArchiveMessageProto3) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GithubArchiveEntityProto3) ProtoMessage() {} +func (*GithubArchiveMessageProto3) ProtoMessage() {} -func (x *GithubArchiveEntityProto3) ProtoReflect() protoreflect.Message { +func (x *GithubArchiveMessageProto3) ProtoReflect() protoreflect.Message { mi := &file_messages_proto3_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -138,58 +138,88 @@ func (x *GithubArchiveEntityProto3) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GithubArchiveEntityProto3.ProtoReflect.Descriptor instead. -func (*GithubArchiveEntityProto3) Descriptor() ([]byte, []int) { +// Deprecated: Use GithubArchiveMessageProto3.ProtoReflect.Descriptor instead. +func (*GithubArchiveMessageProto3) Descriptor() ([]byte, []int) { return file_messages_proto3_proto_rawDescGZIP(), []int{1} } -func (x *GithubArchiveEntityProto3) GetId() *wrappers.Int64Value { +func (x *GithubArchiveMessageProto3) GetType() *wrapperspb.StringValue { if x != nil { - return x.Id + return x.Type } return nil } -func (x *GithubArchiveEntityProto3) GetLogin() *wrappers.StringValue { +func (x *GithubArchiveMessageProto3) GetPublic() *wrapperspb.BoolValue { if x != nil { - return x.Login + return x.Public } return nil } -func (x *GithubArchiveEntityProto3) GetGravatarId() *wrappers.StringValue { +func (x *GithubArchiveMessageProto3) GetPayload() *wrapperspb.StringValue { if x != nil { - return x.GravatarId + return x.Payload } return nil } -func (x *GithubArchiveEntityProto3) GetAvatarUrl() *wrappers.StringValue { +func (x *GithubArchiveMessageProto3) GetRepo() *GithubArchiveMessageProto3_GithubArchiveRepoProto3 { if x != nil { - return x.AvatarUrl + return x.Repo } return nil } -func (x *GithubArchiveEntityProto3) GetUrl() *wrappers.StringValue { +func (x *GithubArchiveMessageProto3) GetActor() *GithubArchiveMessageProto3_GithubArchiveEntityProto3 { if x != nil { - return x.Url + return x.Actor + } + return nil +} + +func (x *GithubArchiveMessageProto3) GetOrg() *GithubArchiveMessageProto3_GithubArchiveEntityProto3 { + if x != nil { + return x.Org } return nil } -type GithubArchiveRepoProto3 struct { +func (x *GithubArchiveMessageProto3) GetCreatedAt() *wrapperspb.Int64Value { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *GithubArchiveMessageProto3) GetId() *wrapperspb.StringValue { + if x != nil { + return x.Id + } + return nil +} + +func (x *GithubArchiveMessageProto3) GetOther() *wrapperspb.StringValue { + if x != nil { + return x.Other + } + return nil +} + +type GithubArchiveMessageProto3_GithubArchiveEntityProto3 struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id *wrappers.Int64Value `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name *wrappers.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Url *wrappers.StringValue `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` + Id *wrapperspb.Int64Value `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Login *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"` + GravatarId *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=gravatar_id,json=gravatarId,proto3" json:"gravatar_id,omitempty"` + AvatarUrl *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` + Url *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` } -func (x *GithubArchiveRepoProto3) Reset() { - *x = GithubArchiveRepoProto3{} +func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) Reset() { + *x = GithubArchiveMessageProto3_GithubArchiveEntityProto3{} if protoimpl.UnsafeEnabled { mi := &file_messages_proto3_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -197,13 +227,13 @@ func (x *GithubArchiveRepoProto3) Reset() { } } -func (x *GithubArchiveRepoProto3) String() string { +func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GithubArchiveRepoProto3) ProtoMessage() {} +func (*GithubArchiveMessageProto3_GithubArchiveEntityProto3) ProtoMessage() {} -func (x *GithubArchiveRepoProto3) ProtoReflect() protoreflect.Message { +func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) ProtoReflect() protoreflect.Message { mi := &file_messages_proto3_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -215,51 +245,58 @@ func (x *GithubArchiveRepoProto3) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GithubArchiveRepoProto3.ProtoReflect.Descriptor instead. -func (*GithubArchiveRepoProto3) Descriptor() ([]byte, []int) { - return file_messages_proto3_proto_rawDescGZIP(), []int{2} +// Deprecated: Use GithubArchiveMessageProto3_GithubArchiveEntityProto3.ProtoReflect.Descriptor instead. +func (*GithubArchiveMessageProto3_GithubArchiveEntityProto3) Descriptor() ([]byte, []int) { + return file_messages_proto3_proto_rawDescGZIP(), []int{1, 0} } -func (x *GithubArchiveRepoProto3) GetId() *wrappers.Int64Value { +func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) GetId() *wrapperspb.Int64Value { if x != nil { return x.Id } return nil } -func (x *GithubArchiveRepoProto3) GetName() *wrappers.StringValue { +func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) GetLogin() *wrapperspb.StringValue { if x != nil { - return x.Name + return x.Login + } + return nil +} + +func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) GetGravatarId() *wrapperspb.StringValue { + if x != nil { + return x.GravatarId } return nil } -func (x *GithubArchiveRepoProto3) GetUrl() *wrappers.StringValue { +func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) GetAvatarUrl() *wrapperspb.StringValue { + if x != nil { + return x.AvatarUrl + } + return nil +} + +func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) GetUrl() *wrapperspb.StringValue { if x != nil { return x.Url } return nil } -// GithubArchiveMessageProto3 is the proto3 version of github archive row. -type GithubArchiveMessageProto3 struct { +type GithubArchiveMessageProto3_GithubArchiveRepoProto3 struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Type *wrappers.StringValue `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Public *wrappers.BoolValue `protobuf:"bytes,2,opt,name=public,proto3" json:"public,omitempty"` - Payload *wrappers.StringValue `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` - Repo *GithubArchiveRepoProto3 `protobuf:"bytes,4,opt,name=repo,proto3" json:"repo,omitempty"` - Actor *GithubArchiveEntityProto3 `protobuf:"bytes,5,opt,name=actor,proto3" json:"actor,omitempty"` - Org *GithubArchiveEntityProto3 `protobuf:"bytes,6,opt,name=org,proto3" json:"org,omitempty"` - CreatedAt *wrappers.Int64Value `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - Id *wrappers.StringValue `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"` - Other *wrappers.StringValue `protobuf:"bytes,9,opt,name=other,proto3" json:"other,omitempty"` + Id *wrapperspb.Int64Value `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Url *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` } -func (x *GithubArchiveMessageProto3) Reset() { - *x = GithubArchiveMessageProto3{} +func (x *GithubArchiveMessageProto3_GithubArchiveRepoProto3) Reset() { + *x = GithubArchiveMessageProto3_GithubArchiveRepoProto3{} if protoimpl.UnsafeEnabled { mi := &file_messages_proto3_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -267,13 +304,13 @@ func (x *GithubArchiveMessageProto3) Reset() { } } -func (x *GithubArchiveMessageProto3) String() string { +func (x *GithubArchiveMessageProto3_GithubArchiveRepoProto3) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GithubArchiveMessageProto3) ProtoMessage() {} +func (*GithubArchiveMessageProto3_GithubArchiveRepoProto3) ProtoMessage() {} -func (x *GithubArchiveMessageProto3) ProtoReflect() protoreflect.Message { +func (x *GithubArchiveMessageProto3_GithubArchiveRepoProto3) ProtoReflect() protoreflect.Message { mi := &file_messages_proto3_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -285,70 +322,28 @@ func (x *GithubArchiveMessageProto3) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GithubArchiveMessageProto3.ProtoReflect.Descriptor instead. -func (*GithubArchiveMessageProto3) Descriptor() ([]byte, []int) { - return file_messages_proto3_proto_rawDescGZIP(), []int{3} -} - -func (x *GithubArchiveMessageProto3) GetType() *wrappers.StringValue { - if x != nil { - return x.Type - } - return nil -} - -func (x *GithubArchiveMessageProto3) GetPublic() *wrappers.BoolValue { - if x != nil { - return x.Public - } - return nil -} - -func (x *GithubArchiveMessageProto3) GetPayload() *wrappers.StringValue { - if x != nil { - return x.Payload - } - return nil -} - -func (x *GithubArchiveMessageProto3) GetRepo() *GithubArchiveRepoProto3 { - if x != nil { - return x.Repo - } - return nil -} - -func (x *GithubArchiveMessageProto3) GetActor() *GithubArchiveEntityProto3 { - if x != nil { - return x.Actor - } - return nil -} - -func (x *GithubArchiveMessageProto3) GetOrg() *GithubArchiveEntityProto3 { - if x != nil { - return x.Org - } - return nil +// Deprecated: Use GithubArchiveMessageProto3_GithubArchiveRepoProto3.ProtoReflect.Descriptor instead. +func (*GithubArchiveMessageProto3_GithubArchiveRepoProto3) Descriptor() ([]byte, []int) { + return file_messages_proto3_proto_rawDescGZIP(), []int{1, 1} } -func (x *GithubArchiveMessageProto3) GetCreatedAt() *wrappers.Int64Value { +func (x *GithubArchiveMessageProto3_GithubArchiveRepoProto3) GetId() *wrapperspb.Int64Value { if x != nil { - return x.CreatedAt + return x.Id } return nil } -func (x *GithubArchiveMessageProto3) GetId() *wrappers.StringValue { +func (x *GithubArchiveMessageProto3_GithubArchiveRepoProto3) GetName() *wrapperspb.StringValue { if x != nil { - return x.Id + return x.Name } return nil } -func (x *GithubArchiveMessageProto3) GetOther() *wrappers.StringValue { +func (x *GithubArchiveMessageProto3_GithubArchiveRepoProto3) GetUrl() *wrapperspb.StringValue { if x != nil { - return x.Other + return x.Url } return nil } @@ -366,72 +361,78 @@ var file_messages_proto3_proto_rawDesc = []byte{ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, - 0xa8, 0x02, 0x0a, 0x19, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, - 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x12, 0x2b, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, - 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x02, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x05, 0x6c, 0x6f, - 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x3d, - 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x0a, 0x67, 0x72, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x49, 0x64, 0x12, 0x3b, 0x0a, - 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x2e, 0x0a, 0x03, 0x75, 0x72, - 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0xa8, 0x01, 0x0a, 0x17, 0x47, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x12, 0x2b, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x81, 0x04, 0x0a, 0x1a, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x33, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x36, 0x0a, 0x07, 0x70, 0x61, - 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, - 0x61, 0x64, 0x12, 0x35, 0x0a, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x21, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x33, 0x52, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x12, 0x39, 0x0a, 0x05, 0x61, 0x63, 0x74, - 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, + 0xa8, 0x08, 0x0a, 0x1a, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x12, 0x30, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x12, 0x32, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x12, 0x36, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x50, 0x0a, 0x04, + 0x72, 0x65, 0x70, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, + 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, + 0x70, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x52, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x12, 0x54, + 0x0a, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x33, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x52, 0x05, 0x61, - 0x63, 0x74, 0x6f, 0x72, 0x12, 0x35, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x12, 0x3a, 0x0a, 0x0a, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2c, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x02, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x42, 0x3d, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, - 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2f, - 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x63, 0x74, 0x6f, 0x72, 0x12, 0x50, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x3e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, + 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x33, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x12, 0x3a, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, + 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x12, 0x2c, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x32, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x6f, + 0x74, 0x68, 0x65, 0x72, 0x1a, 0xa8, 0x02, 0x0a, 0x19, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x33, 0x12, 0x2b, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x32, 0x0a, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x6c, 0x6f, + 0x67, 0x69, 0x6e, 0x12, 0x3d, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, + 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x67, 0x72, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, + 0x49, 0x64, 0x12, 0x3b, 0x0a, 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, + 0x2e, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x1a, + 0xa8, 0x01, 0x0a, 0x17, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x52, 0x65, 0x70, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x12, 0x2b, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x03, 0x75, 0x72, + 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x42, 0x3d, 0x5a, 0x3b, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, + 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, + 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -448,33 +449,33 @@ func file_messages_proto3_proto_rawDescGZIP() []byte { var file_messages_proto3_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_messages_proto3_proto_goTypes = []interface{}{ - (*SimpleMessageProto3)(nil), // 0: testdata.SimpleMessageProto3 - (*GithubArchiveEntityProto3)(nil), // 1: testdata.GithubArchiveEntityProto3 - (*GithubArchiveRepoProto3)(nil), // 2: testdata.GithubArchiveRepoProto3 - (*GithubArchiveMessageProto3)(nil), // 3: testdata.GithubArchiveMessageProto3 - (*wrappers.Int64Value)(nil), // 4: google.protobuf.Int64Value - (*wrappers.StringValue)(nil), // 5: google.protobuf.StringValue - (*wrappers.BoolValue)(nil), // 6: google.protobuf.BoolValue + (*SimpleMessageProto3)(nil), // 0: testdata.SimpleMessageProto3 + (*GithubArchiveMessageProto3)(nil), // 1: testdata.GithubArchiveMessageProto3 + (*GithubArchiveMessageProto3_GithubArchiveEntityProto3)(nil), // 2: testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3 + (*GithubArchiveMessageProto3_GithubArchiveRepoProto3)(nil), // 3: testdata.GithubArchiveMessageProto3.GithubArchiveRepoProto3 + (*wrapperspb.Int64Value)(nil), // 4: google.protobuf.Int64Value + (*wrapperspb.StringValue)(nil), // 5: google.protobuf.StringValue + (*wrapperspb.BoolValue)(nil), // 6: google.protobuf.BoolValue } var file_messages_proto3_proto_depIdxs = []int32{ 4, // 0: testdata.SimpleMessageProto3.value:type_name -> google.protobuf.Int64Value - 4, // 1: testdata.GithubArchiveEntityProto3.id:type_name -> google.protobuf.Int64Value - 5, // 2: testdata.GithubArchiveEntityProto3.login:type_name -> google.protobuf.StringValue - 5, // 3: testdata.GithubArchiveEntityProto3.gravatar_id:type_name -> google.protobuf.StringValue - 5, // 4: testdata.GithubArchiveEntityProto3.avatar_url:type_name -> google.protobuf.StringValue - 5, // 5: testdata.GithubArchiveEntityProto3.url:type_name -> google.protobuf.StringValue - 4, // 6: testdata.GithubArchiveRepoProto3.id:type_name -> google.protobuf.Int64Value - 5, // 7: testdata.GithubArchiveRepoProto3.name:type_name -> google.protobuf.StringValue - 5, // 8: testdata.GithubArchiveRepoProto3.url:type_name -> google.protobuf.StringValue - 5, // 9: testdata.GithubArchiveMessageProto3.type:type_name -> google.protobuf.StringValue - 6, // 10: testdata.GithubArchiveMessageProto3.public:type_name -> google.protobuf.BoolValue - 5, // 11: testdata.GithubArchiveMessageProto3.payload:type_name -> google.protobuf.StringValue - 2, // 12: testdata.GithubArchiveMessageProto3.repo:type_name -> testdata.GithubArchiveRepoProto3 - 1, // 13: testdata.GithubArchiveMessageProto3.actor:type_name -> testdata.GithubArchiveEntityProto3 - 1, // 14: testdata.GithubArchiveMessageProto3.org:type_name -> testdata.GithubArchiveEntityProto3 - 4, // 15: testdata.GithubArchiveMessageProto3.created_at:type_name -> google.protobuf.Int64Value - 5, // 16: testdata.GithubArchiveMessageProto3.id:type_name -> google.protobuf.StringValue - 5, // 17: testdata.GithubArchiveMessageProto3.other:type_name -> google.protobuf.StringValue + 5, // 1: testdata.GithubArchiveMessageProto3.type:type_name -> google.protobuf.StringValue + 6, // 2: testdata.GithubArchiveMessageProto3.public:type_name -> google.protobuf.BoolValue + 5, // 3: testdata.GithubArchiveMessageProto3.payload:type_name -> google.protobuf.StringValue + 3, // 4: testdata.GithubArchiveMessageProto3.repo:type_name -> testdata.GithubArchiveMessageProto3.GithubArchiveRepoProto3 + 2, // 5: testdata.GithubArchiveMessageProto3.actor:type_name -> testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3 + 2, // 6: testdata.GithubArchiveMessageProto3.org:type_name -> testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3 + 4, // 7: testdata.GithubArchiveMessageProto3.created_at:type_name -> google.protobuf.Int64Value + 5, // 8: testdata.GithubArchiveMessageProto3.id:type_name -> google.protobuf.StringValue + 5, // 9: testdata.GithubArchiveMessageProto3.other:type_name -> google.protobuf.StringValue + 4, // 10: testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3.id:type_name -> google.protobuf.Int64Value + 5, // 11: testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3.login:type_name -> google.protobuf.StringValue + 5, // 12: testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3.gravatar_id:type_name -> google.protobuf.StringValue + 5, // 13: testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3.avatar_url:type_name -> google.protobuf.StringValue + 5, // 14: testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3.url:type_name -> google.protobuf.StringValue + 4, // 15: testdata.GithubArchiveMessageProto3.GithubArchiveRepoProto3.id:type_name -> google.protobuf.Int64Value + 5, // 16: testdata.GithubArchiveMessageProto3.GithubArchiveRepoProto3.name:type_name -> google.protobuf.StringValue + 5, // 17: testdata.GithubArchiveMessageProto3.GithubArchiveRepoProto3.url:type_name -> google.protobuf.StringValue 18, // [18:18] is the sub-list for method output_type 18, // [18:18] is the sub-list for method input_type 18, // [18:18] is the sub-list for extension type_name @@ -501,7 +502,7 @@ func file_messages_proto3_proto_init() { } } file_messages_proto3_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GithubArchiveEntityProto3); i { + switch v := v.(*GithubArchiveMessageProto3); i { case 0: return &v.state case 1: @@ -513,7 +514,7 @@ func file_messages_proto3_proto_init() { } } file_messages_proto3_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GithubArchiveRepoProto3); i { + switch v := v.(*GithubArchiveMessageProto3_GithubArchiveEntityProto3); i { case 0: return &v.state case 1: @@ -525,7 +526,7 @@ func file_messages_proto3_proto_init() { } } file_messages_proto3_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GithubArchiveMessageProto3); i { + switch v := v.(*GithubArchiveMessageProto3_GithubArchiveRepoProto3); i { case 0: return &v.state case 1: diff --git a/bigquery/storage/managedwriter/testdata/messages_proto3.proto b/bigquery/storage/managedwriter/testdata/messages_proto3.proto index 2d298362449..01168d3d02f 100644 --- a/bigquery/storage/managedwriter/testdata/messages_proto3.proto +++ b/bigquery/storage/managedwriter/testdata/messages_proto3.proto @@ -27,22 +27,23 @@ message SimpleMessageProto3 { } -message GithubArchiveEntityProto3 { - google.protobuf.Int64Value id = 1; - google.protobuf.StringValue login = 2; - google.protobuf.StringValue gravatar_id = 3; - google.protobuf.StringValue avatar_url = 4; - google.protobuf.StringValue url = 5; -} - -message GithubArchiveRepoProto3 { - google.protobuf.Int64Value id = 1; - google.protobuf.StringValue name = 2; - google.protobuf.StringValue url = 3; -} - // GithubArchiveMessageProto3 is the proto3 version of github archive row. message GithubArchiveMessageProto3 { + + message GithubArchiveEntityProto3 { + google.protobuf.Int64Value id = 1; + google.protobuf.StringValue login = 2; + google.protobuf.StringValue gravatar_id = 3; + google.protobuf.StringValue avatar_url = 4; + google.protobuf.StringValue url = 5; + } + + message GithubArchiveRepoProto3 { + google.protobuf.Int64Value id = 1; + google.protobuf.StringValue name = 2; + google.protobuf.StringValue url = 3; + } + google.protobuf.StringValue type = 1; google.protobuf.BoolValue public = 2; google.protobuf.StringValue payload = 3; From 2554232325a36f439d82bded81b9938b4bb7d9b6 Mon Sep 17 00:00:00 2001 From: Seth Hollyman Date: Sat, 28 Aug 2021 17:54:34 +0000 Subject: [PATCH 2/6] comment/formatting/naming --- .../storage/managedwriter/instrumentation.go | 64 +++++++++++-------- 1 file changed, 36 insertions(+), 28 deletions(-) diff --git a/bigquery/storage/managedwriter/instrumentation.go b/bigquery/storage/managedwriter/instrumentation.go index 270e14d64d4..f10a2d3c153 100644 --- a/bigquery/storage/managedwriter/instrumentation.go +++ b/bigquery/storage/managedwriter/instrumentation.go @@ -43,13 +43,17 @@ var DefaultOpenCensusViews []*view.View const statsPrefix = "cloud.google.com/go/bigquery/storage/managedwriter/" var ( - // AppendRequests is a measure of the number of append requests sent. + // AppendClientOpenCount is a measure of the number of times the AppendRowsClient was opened. // It is EXPERIMENTAL and subject to change or removal without notice. - AppendRequests = stats.Int64(statsPrefix+"append_requests", "Number of append requests sent", stats.UnitDimensionless) + AppendClientOpenCount = stats.Int64(statsPrefix+"stream_open_count", "Number of times AppendRowsClient was opened", stats.UnitDimensionless) - // AppendRows is a measure of the number of append rows sent. + // AppendClientOpenRetryCount is a measure of the number of times the AppendRowsClient open was retried. // It is EXPERIMENTAL and subject to change or removal without notice. - AppendRows = stats.Int64(statsPrefix+"append_rows", "Number of append rows sent", stats.UnitDimensionless) + AppendClientOpenRetryCount = stats.Int64(statsPrefix+"stream_open_retry_count", "Number of times AppendRowsClient open was retried", stats.UnitDimensionless) + + // AppendRequests is a measure of the number of append requests sent. + // It is EXPERIMENTAL and subject to change or removal without notice. + AppendRequests = stats.Int64(statsPrefix+"append_requests", "Number of append requests sent", stats.UnitDimensionless) // AppendRequestBytes is a measure of the bytes sent as append requests. // It is EXPERIMENTAL and subject to change or removal without notice. @@ -59,6 +63,10 @@ var ( // It is EXPERIMENTAL and subject to change or removal without notice. AppendRequestErrors = stats.Int64(statsPrefix+"append_request_errors", "Number of append requests that yielded immediate error", stats.UnitDimensionless) + // AppendRequestRows is a measure of the number of append rows sent. + // It is EXPERIMENTAL and subject to change or removal without notice. + AppendRequestRows = stats.Int64(statsPrefix+"append_rows", "Number of append rows sent", stats.UnitDimensionless) + // AppendResponses is a measure of the number of append responses received. // It is EXPERIMENTAL and subject to change or removal without notice. AppendResponses = stats.Int64(statsPrefix+"append_responses", "Number of append responses sent", stats.UnitDimensionless) @@ -70,25 +78,22 @@ var ( // FlushRequests is a measure of the number of FlushRows requests sent. // It is EXPERIMENTAL and subject to change or removal without notice. FlushRequests = stats.Int64(statsPrefix+"flush_requests", "Number of FlushRows requests sent", stats.UnitDimensionless) +) - // AppendClientOpenCount is a measure of the number of times the AppendRowsClient was opened. +var ( + + // AppendClientOpenView is a cumulative sum of AppendClientOpenCount. // It is EXPERIMENTAL and subject to change or removal without notice. - AppendClientOpenCount = stats.Int64(statsPrefix+"stream_open_count", "Number of times AppendRowsClient was opened", stats.UnitDimensionless) + AppendClientOpenView *view.View - // AppendClientOpenRetryCount is a measure of the number of times the AppendRowsClient open was retried. + // AppendClientOpenRetryView is a cumulative sum of AppendClientOpenRetryCount. // It is EXPERIMENTAL and subject to change or removal without notice. - AppendClientOpenRetryCount = stats.Int64(statsPrefix+"stream_open_retry_count", "Number of times AppendRowsClient open was retried", stats.UnitDimensionless) -) + AppendClientOpenRetryView *view.View -var ( // AppendRequestsView is a cumulative sum of AppendRequests. // It is EXPERIMENTAL and subject to change or removal without notice. AppendRequestsView *view.View - // AppendRowsView is a cumulative sum of AppendRows. - // It is EXPERIMENTAL and subject to change or removal without notice. - AppendRowsView *view.View - // AppendRequestBytesView is a cumulative sum of AppendRequestBytes. // It is EXPERIMENTAL and subject to change or removal without notice. AppendRequestBytesView *view.View @@ -97,6 +102,10 @@ var ( // It is EXPERIMENTAL and subject to change or removal without notice. AppendRequestErrorsView *view.View + // AppendRequestRowsView is a cumulative sum of AppendRows. + // It is EXPERIMENTAL and subject to change or removal without notice. + AppendRequestRowsView *view.View + // AppendResponsesView is a cumulative sum of AppendResponses. // It is EXPERIMENTAL and subject to change or removal without notice. AppendResponsesView *view.View @@ -108,36 +117,35 @@ var ( // FlushRequestsView is a cumulative sum of FlushRequests. // It is EXPERIMENTAL and subject to change or removal without notice. FlushRequestsView *view.View - - // AppendClientOpenView is a cumulative sum of AppendClientOpenCount. - // It is EXPERIMENTAL and subject to change or removal without notice. - AppendClientOpenView *view.View - - // AppendClientOpenRetryView is a cumulative sum of AppendClientOpenRetryCount. - // It is EXPERIMENTAL and subject to change or removal without notice. - AppendClientOpenRetryView *view.View ) func init() { + AppendClientOpenView = createSumView(stats.Measure(AppendClientOpenCount), keyStream, keyDataOrigin) + AppendClientOpenRetryView = createSumView(stats.Measure(AppendClientOpenRetryCount), keyStream, keyDataOrigin) + AppendRequestsView = createSumView(stats.Measure(AppendRequests), keyStream, keyDataOrigin) - AppendRowsView = createSumView(stats.Measure(AppendRows), keyStream, keyDataOrigin) AppendRequestBytesView = createSumView(stats.Measure(AppendRequestBytes), keyStream, keyDataOrigin) AppendRequestErrorsView = createSumView(stats.Measure(AppendRequestErrors), keyStream, keyDataOrigin, keyError) + AppendRequestRowsView = createSumView(stats.Measure(AppendRequestRows), keyStream, keyDataOrigin) + AppendResponsesView = createSumView(stats.Measure(AppendResponses), keyStream, keyDataOrigin) AppendResponseErrorsView = createSumView(stats.Measure(AppendResponseErrors), keyStream, keyDataOrigin, keyError) + FlushRequestsView = createSumView(stats.Measure(FlushRequests), keyStream, keyDataOrigin) - AppendClientOpenView = createSumView(stats.Measure(AppendClientOpenCount), keyStream, keyDataOrigin) - AppendClientOpenRetryView = createSumView(stats.Measure(AppendClientOpenRetryCount), keyStream, keyDataOrigin) DefaultOpenCensusViews = []*view.View{ + AppendClientOpenView, + AppendClientOpenRetryView, + AppendRequestsView, - AppendRowsView, AppendRequestBytesView, + AppendRequestErrorsView, + AppendRequestRowsView, + AppendResponsesView, AppendResponseErrorsView, + FlushRequestsView, - AppendClientOpenView, - AppendClientOpenRetryView, } } From d2c799de3454abcf1b5d4ba15ceef51f379a0618 Mon Sep 17 00:00:00 2001 From: Seth Hollyman Date: Sat, 28 Aug 2021 17:58:07 +0000 Subject: [PATCH 3/6] revert proto changes from testing --- .../testdata/messages_proto2.pb.go | 344 +++++++-------- .../testdata/messages_proto2.proto | 30 +- .../testdata/messages_proto3.pb.go | 417 +++++++++--------- .../testdata/messages_proto3.proto | 29 +- 4 files changed, 406 insertions(+), 414 deletions(-) diff --git a/bigquery/storage/managedwriter/testdata/messages_proto2.pb.go b/bigquery/storage/managedwriter/testdata/messages_proto2.pb.go index 6e1aee107fb..d57ac20be31 100644 --- a/bigquery/storage/managedwriter/testdata/messages_proto2.pb.go +++ b/bigquery/storage/managedwriter/testdata/messages_proto2.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.17.3 +// protoc-gen-go v1.25.0 +// protoc v3.10.1 // source: messages_proto2.proto package testdata @@ -24,6 +24,7 @@ import ( reflect "reflect" sync "sync" + proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -35,6 +36,10 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + // SimpleMessage represents a simple message that transmits a string and int64 value. type SimpleMessageProto2 struct { state protoimpl.MessageState @@ -93,25 +98,20 @@ func (x *SimpleMessageProto2) GetValue() int64 { return 0 } -// GithubArchiveMessageProto2 is the proto2 version of github archive row. -type GithubArchiveMessageProto2 struct { +type GithubArchiveEntityProto2 struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` - Public *bool `protobuf:"varint,2,opt,name=public" json:"public,omitempty"` - Payload *string `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"` - Repo *GithubArchiveMessageProto2_GithubArchiveRepoProto2 `protobuf:"bytes,4,opt,name=repo" json:"repo,omitempty"` - Actor *GithubArchiveMessageProto2_GithubArchiveEntityProto2 `protobuf:"bytes,5,opt,name=actor" json:"actor,omitempty"` - Org *GithubArchiveMessageProto2_GithubArchiveEntityProto2 `protobuf:"bytes,6,opt,name=org" json:"org,omitempty"` - CreatedAt *int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` - Id *string `protobuf:"bytes,8,opt,name=id" json:"id,omitempty"` - Other *string `protobuf:"bytes,9,opt,name=other" json:"other,omitempty"` + Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` + Login *string `protobuf:"bytes,2,opt,name=login" json:"login,omitempty"` + GravatarId *string `protobuf:"bytes,3,opt,name=gravatar_id,json=gravatarId" json:"gravatar_id,omitempty"` + AvatarUrl *string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl" json:"avatar_url,omitempty"` + Url *string `protobuf:"bytes,5,opt,name=url" json:"url,omitempty"` } -func (x *GithubArchiveMessageProto2) Reset() { - *x = GithubArchiveMessageProto2{} +func (x *GithubArchiveEntityProto2) Reset() { + *x = GithubArchiveEntityProto2{} if protoimpl.UnsafeEnabled { mi := &file_messages_proto2_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -119,13 +119,13 @@ func (x *GithubArchiveMessageProto2) Reset() { } } -func (x *GithubArchiveMessageProto2) String() string { +func (x *GithubArchiveEntityProto2) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GithubArchiveMessageProto2) ProtoMessage() {} +func (*GithubArchiveEntityProto2) ProtoMessage() {} -func (x *GithubArchiveMessageProto2) ProtoReflect() protoreflect.Message { +func (x *GithubArchiveEntityProto2) ProtoReflect() protoreflect.Message { mi := &file_messages_proto2_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -137,88 +137,58 @@ func (x *GithubArchiveMessageProto2) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GithubArchiveMessageProto2.ProtoReflect.Descriptor instead. -func (*GithubArchiveMessageProto2) Descriptor() ([]byte, []int) { +// Deprecated: Use GithubArchiveEntityProto2.ProtoReflect.Descriptor instead. +func (*GithubArchiveEntityProto2) Descriptor() ([]byte, []int) { return file_messages_proto2_proto_rawDescGZIP(), []int{1} } -func (x *GithubArchiveMessageProto2) GetType() string { - if x != nil && x.Type != nil { - return *x.Type - } - return "" -} - -func (x *GithubArchiveMessageProto2) GetPublic() bool { - if x != nil && x.Public != nil { - return *x.Public +func (x *GithubArchiveEntityProto2) GetId() int64 { + if x != nil && x.Id != nil { + return *x.Id } - return false + return 0 } -func (x *GithubArchiveMessageProto2) GetPayload() string { - if x != nil && x.Payload != nil { - return *x.Payload +func (x *GithubArchiveEntityProto2) GetLogin() string { + if x != nil && x.Login != nil { + return *x.Login } return "" } -func (x *GithubArchiveMessageProto2) GetRepo() *GithubArchiveMessageProto2_GithubArchiveRepoProto2 { - if x != nil { - return x.Repo - } - return nil -} - -func (x *GithubArchiveMessageProto2) GetActor() *GithubArchiveMessageProto2_GithubArchiveEntityProto2 { - if x != nil { - return x.Actor - } - return nil -} - -func (x *GithubArchiveMessageProto2) GetOrg() *GithubArchiveMessageProto2_GithubArchiveEntityProto2 { - if x != nil { - return x.Org - } - return nil -} - -func (x *GithubArchiveMessageProto2) GetCreatedAt() int64 { - if x != nil && x.CreatedAt != nil { - return *x.CreatedAt +func (x *GithubArchiveEntityProto2) GetGravatarId() string { + if x != nil && x.GravatarId != nil { + return *x.GravatarId } - return 0 + return "" } -func (x *GithubArchiveMessageProto2) GetId() string { - if x != nil && x.Id != nil { - return *x.Id +func (x *GithubArchiveEntityProto2) GetAvatarUrl() string { + if x != nil && x.AvatarUrl != nil { + return *x.AvatarUrl } return "" } -func (x *GithubArchiveMessageProto2) GetOther() string { - if x != nil && x.Other != nil { - return *x.Other +func (x *GithubArchiveEntityProto2) GetUrl() string { + if x != nil && x.Url != nil { + return *x.Url } return "" } -type GithubArchiveMessageProto2_GithubArchiveEntityProto2 struct { +type GithubArchiveRepoProto2 struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` - Login *string `protobuf:"bytes,2,opt,name=login" json:"login,omitempty"` - GravatarId *string `protobuf:"bytes,3,opt,name=gravatar_id,json=gravatarId" json:"gravatar_id,omitempty"` - AvatarUrl *string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl" json:"avatar_url,omitempty"` - Url *string `protobuf:"bytes,5,opt,name=url" json:"url,omitempty"` + Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` + Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` + Url *string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"` } -func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) Reset() { - *x = GithubArchiveMessageProto2_GithubArchiveEntityProto2{} +func (x *GithubArchiveRepoProto2) Reset() { + *x = GithubArchiveRepoProto2{} if protoimpl.UnsafeEnabled { mi := &file_messages_proto2_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -226,13 +196,13 @@ func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) Reset() { } } -func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) String() string { +func (x *GithubArchiveRepoProto2) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GithubArchiveMessageProto2_GithubArchiveEntityProto2) ProtoMessage() {} +func (*GithubArchiveRepoProto2) ProtoMessage() {} -func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) ProtoReflect() protoreflect.Message { +func (x *GithubArchiveRepoProto2) ProtoReflect() protoreflect.Message { mi := &file_messages_proto2_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -244,58 +214,51 @@ func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) ProtoReflect() pr return mi.MessageOf(x) } -// Deprecated: Use GithubArchiveMessageProto2_GithubArchiveEntityProto2.ProtoReflect.Descriptor instead. -func (*GithubArchiveMessageProto2_GithubArchiveEntityProto2) Descriptor() ([]byte, []int) { - return file_messages_proto2_proto_rawDescGZIP(), []int{1, 0} +// Deprecated: Use GithubArchiveRepoProto2.ProtoReflect.Descriptor instead. +func (*GithubArchiveRepoProto2) Descriptor() ([]byte, []int) { + return file_messages_proto2_proto_rawDescGZIP(), []int{2} } -func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) GetId() int64 { +func (x *GithubArchiveRepoProto2) GetId() int64 { if x != nil && x.Id != nil { return *x.Id } return 0 } -func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) GetLogin() string { - if x != nil && x.Login != nil { - return *x.Login - } - return "" -} - -func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) GetGravatarId() string { - if x != nil && x.GravatarId != nil { - return *x.GravatarId - } - return "" -} - -func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) GetAvatarUrl() string { - if x != nil && x.AvatarUrl != nil { - return *x.AvatarUrl +func (x *GithubArchiveRepoProto2) GetName() string { + if x != nil && x.Name != nil { + return *x.Name } return "" } -func (x *GithubArchiveMessageProto2_GithubArchiveEntityProto2) GetUrl() string { +func (x *GithubArchiveRepoProto2) GetUrl() string { if x != nil && x.Url != nil { return *x.Url } return "" } -type GithubArchiveMessageProto2_GithubArchiveRepoProto2 struct { +// GithubArchiveMessageProto2 is the proto2 version of github archive row. +type GithubArchiveMessageProto2 struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` - Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` - Url *string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"` + Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` + Public *bool `protobuf:"varint,2,opt,name=public" json:"public,omitempty"` + Payload *string `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"` + Repo *GithubArchiveRepoProto2 `protobuf:"bytes,4,opt,name=repo" json:"repo,omitempty"` + Actor *GithubArchiveEntityProto2 `protobuf:"bytes,5,opt,name=actor" json:"actor,omitempty"` + Org *GithubArchiveEntityProto2 `protobuf:"bytes,6,opt,name=org" json:"org,omitempty"` + CreatedAt *int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` + Id *string `protobuf:"bytes,8,opt,name=id" json:"id,omitempty"` + Other *string `protobuf:"bytes,9,opt,name=other" json:"other,omitempty"` } -func (x *GithubArchiveMessageProto2_GithubArchiveRepoProto2) Reset() { - *x = GithubArchiveMessageProto2_GithubArchiveRepoProto2{} +func (x *GithubArchiveMessageProto2) Reset() { + *x = GithubArchiveMessageProto2{} if protoimpl.UnsafeEnabled { mi := &file_messages_proto2_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -303,13 +266,13 @@ func (x *GithubArchiveMessageProto2_GithubArchiveRepoProto2) Reset() { } } -func (x *GithubArchiveMessageProto2_GithubArchiveRepoProto2) String() string { +func (x *GithubArchiveMessageProto2) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GithubArchiveMessageProto2_GithubArchiveRepoProto2) ProtoMessage() {} +func (*GithubArchiveMessageProto2) ProtoMessage() {} -func (x *GithubArchiveMessageProto2_GithubArchiveRepoProto2) ProtoReflect() protoreflect.Message { +func (x *GithubArchiveMessageProto2) ProtoReflect() protoreflect.Message { mi := &file_messages_proto2_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -321,28 +284,70 @@ func (x *GithubArchiveMessageProto2_GithubArchiveRepoProto2) ProtoReflect() prot return mi.MessageOf(x) } -// Deprecated: Use GithubArchiveMessageProto2_GithubArchiveRepoProto2.ProtoReflect.Descriptor instead. -func (*GithubArchiveMessageProto2_GithubArchiveRepoProto2) Descriptor() ([]byte, []int) { - return file_messages_proto2_proto_rawDescGZIP(), []int{1, 1} +// Deprecated: Use GithubArchiveMessageProto2.ProtoReflect.Descriptor instead. +func (*GithubArchiveMessageProto2) Descriptor() ([]byte, []int) { + return file_messages_proto2_proto_rawDescGZIP(), []int{3} } -func (x *GithubArchiveMessageProto2_GithubArchiveRepoProto2) GetId() int64 { - if x != nil && x.Id != nil { - return *x.Id +func (x *GithubArchiveMessageProto2) GetType() string { + if x != nil && x.Type != nil { + return *x.Type + } + return "" +} + +func (x *GithubArchiveMessageProto2) GetPublic() bool { + if x != nil && x.Public != nil { + return *x.Public + } + return false +} + +func (x *GithubArchiveMessageProto2) GetPayload() string { + if x != nil && x.Payload != nil { + return *x.Payload + } + return "" +} + +func (x *GithubArchiveMessageProto2) GetRepo() *GithubArchiveRepoProto2 { + if x != nil { + return x.Repo + } + return nil +} + +func (x *GithubArchiveMessageProto2) GetActor() *GithubArchiveEntityProto2 { + if x != nil { + return x.Actor + } + return nil +} + +func (x *GithubArchiveMessageProto2) GetOrg() *GithubArchiveEntityProto2 { + if x != nil { + return x.Org + } + return nil +} + +func (x *GithubArchiveMessageProto2) GetCreatedAt() int64 { + if x != nil && x.CreatedAt != nil { + return *x.CreatedAt } return 0 } -func (x *GithubArchiveMessageProto2_GithubArchiveRepoProto2) GetName() string { - if x != nil && x.Name != nil { - return *x.Name +func (x *GithubArchiveMessageProto2) GetId() string { + if x != nil && x.Id != nil { + return *x.Id } return "" } -func (x *GithubArchiveMessageProto2_GithubArchiveRepoProto2) GetUrl() string { - if x != nil && x.Url != nil { - return *x.Url +func (x *GithubArchiveMessageProto2) GetOther() string { + if x != nil && x.Other != nil { + return *x.Other } return "" } @@ -356,51 +361,46 @@ var file_messages_proto2_proto_rawDesc = []byte{ 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x22, 0x88, 0x05, 0x0a, 0x1a, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, - 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x32, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x18, 0x0a, - 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x50, 0x0a, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x47, 0x69, 0x74, 0x68, + 0x75, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x19, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x76, 0x61, 0x74, + 0x61, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x72, 0x61, + 0x76, 0x61, 0x74, 0x61, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, + 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, + 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x4f, 0x0a, 0x17, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x32, 0x52, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x12, 0x54, 0x0a, 0x05, 0x61, 0x63, 0x74, - 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, - 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x47, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x52, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, - 0x50, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x74, + 0x74, 0x6f, 0x32, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0xd0, 0x02, 0x0a, 0x1a, 0x47, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x35, + 0x0a, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, - 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x32, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, - 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x52, 0x03, 0x6f, 0x72, - 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x1a, 0x93, 0x01, 0x0a, 0x19, 0x47, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x32, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x72, - 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x67, 0x72, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, - 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, - 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x1a, 0x4f, 0x0a, 0x17, - 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x70, - 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, - 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x42, 0x3d, 0x5a, - 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x77, 0x72, 0x69, - 0x74, 0x65, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, + 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x52, + 0x04, 0x72, 0x65, 0x70, 0x6f, 0x12, 0x39, 0x0a, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x52, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, + 0x12, 0x35, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x32, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x42, 0x3d, 0x5a, 0x3b, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x77, 0x72, 0x69, 0x74, + 0x65, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, } var ( @@ -417,15 +417,15 @@ func file_messages_proto2_proto_rawDescGZIP() []byte { var file_messages_proto2_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_messages_proto2_proto_goTypes = []interface{}{ - (*SimpleMessageProto2)(nil), // 0: testdata.SimpleMessageProto2 - (*GithubArchiveMessageProto2)(nil), // 1: testdata.GithubArchiveMessageProto2 - (*GithubArchiveMessageProto2_GithubArchiveEntityProto2)(nil), // 2: testdata.GithubArchiveMessageProto2.GithubArchiveEntityProto2 - (*GithubArchiveMessageProto2_GithubArchiveRepoProto2)(nil), // 3: testdata.GithubArchiveMessageProto2.GithubArchiveRepoProto2 + (*SimpleMessageProto2)(nil), // 0: testdata.SimpleMessageProto2 + (*GithubArchiveEntityProto2)(nil), // 1: testdata.GithubArchiveEntityProto2 + (*GithubArchiveRepoProto2)(nil), // 2: testdata.GithubArchiveRepoProto2 + (*GithubArchiveMessageProto2)(nil), // 3: testdata.GithubArchiveMessageProto2 } var file_messages_proto2_proto_depIdxs = []int32{ - 3, // 0: testdata.GithubArchiveMessageProto2.repo:type_name -> testdata.GithubArchiveMessageProto2.GithubArchiveRepoProto2 - 2, // 1: testdata.GithubArchiveMessageProto2.actor:type_name -> testdata.GithubArchiveMessageProto2.GithubArchiveEntityProto2 - 2, // 2: testdata.GithubArchiveMessageProto2.org:type_name -> testdata.GithubArchiveMessageProto2.GithubArchiveEntityProto2 + 2, // 0: testdata.GithubArchiveMessageProto2.repo:type_name -> testdata.GithubArchiveRepoProto2 + 1, // 1: testdata.GithubArchiveMessageProto2.actor:type_name -> testdata.GithubArchiveEntityProto2 + 1, // 2: testdata.GithubArchiveMessageProto2.org:type_name -> testdata.GithubArchiveEntityProto2 3, // [3:3] is the sub-list for method output_type 3, // [3:3] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name @@ -452,7 +452,7 @@ func file_messages_proto2_proto_init() { } } file_messages_proto2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GithubArchiveMessageProto2); i { + switch v := v.(*GithubArchiveEntityProto2); i { case 0: return &v.state case 1: @@ -464,7 +464,7 @@ func file_messages_proto2_proto_init() { } } file_messages_proto2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GithubArchiveMessageProto2_GithubArchiveEntityProto2); i { + switch v := v.(*GithubArchiveRepoProto2); i { case 0: return &v.state case 1: @@ -476,7 +476,7 @@ func file_messages_proto2_proto_init() { } } file_messages_proto2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GithubArchiveMessageProto2_GithubArchiveRepoProto2); i { + switch v := v.(*GithubArchiveMessageProto2); i { case 0: return &v.state case 1: diff --git a/bigquery/storage/managedwriter/testdata/messages_proto2.proto b/bigquery/storage/managedwriter/testdata/messages_proto2.proto index d2d8fa8b9e1..fdb2fb55e47 100644 --- a/bigquery/storage/managedwriter/testdata/messages_proto2.proto +++ b/bigquery/storage/managedwriter/testdata/messages_proto2.proto @@ -27,28 +27,22 @@ message SimpleMessageProto2 { +message GithubArchiveEntityProto2 { + optional int64 id = 1; + optional string login = 2; + optional string gravatar_id = 3; + optional string avatar_url = 4; + optional string url = 5; +} - - +message GithubArchiveRepoProto2 { + optional int64 id = 1; + optional string name = 2; + optional string url = 3; +} // GithubArchiveMessageProto2 is the proto2 version of github archive row. message GithubArchiveMessageProto2 { - - - message GithubArchiveEntityProto2 { - optional int64 id = 1; - optional string login = 2; - optional string gravatar_id = 3; - optional string avatar_url = 4; - optional string url = 5; - } - - message GithubArchiveRepoProto2 { - optional int64 id = 1; - optional string name = 2; - optional string url = 3; - } - optional string type = 1; optional bool public = 2; optional string payload = 3; diff --git a/bigquery/storage/managedwriter/testdata/messages_proto3.pb.go b/bigquery/storage/managedwriter/testdata/messages_proto3.pb.go index d939f5bbf40..1422ac357d5 100644 --- a/bigquery/storage/managedwriter/testdata/messages_proto3.pb.go +++ b/bigquery/storage/managedwriter/testdata/messages_proto3.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.17.3 +// protoc-gen-go v1.25.0 +// protoc v3.10.1 // source: messages_proto3.proto package testdata @@ -24,9 +24,10 @@ import ( reflect "reflect" sync "sync" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -36,6 +37,10 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + // SimpleMessageProto3 represents a simple message that transmits a string and int64 value. type SimpleMessageProto3 struct { state protoimpl.MessageState @@ -45,7 +50,7 @@ type SimpleMessageProto3 struct { // name is a simple scalar string. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // value is a simple int64 value. - Value *wrapperspb.Int64Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Value *wrappers.Int64Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } func (x *SimpleMessageProto3) Reset() { @@ -87,32 +92,27 @@ func (x *SimpleMessageProto3) GetName() string { return "" } -func (x *SimpleMessageProto3) GetValue() *wrapperspb.Int64Value { +func (x *SimpleMessageProto3) GetValue() *wrappers.Int64Value { if x != nil { return x.Value } return nil } -// GithubArchiveMessageProto3 is the proto3 version of github archive row. -type GithubArchiveMessageProto3 struct { +type GithubArchiveEntityProto3 struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Type *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Public *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=public,proto3" json:"public,omitempty"` - Payload *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` - Repo *GithubArchiveMessageProto3_GithubArchiveRepoProto3 `protobuf:"bytes,4,opt,name=repo,proto3" json:"repo,omitempty"` - Actor *GithubArchiveMessageProto3_GithubArchiveEntityProto3 `protobuf:"bytes,5,opt,name=actor,proto3" json:"actor,omitempty"` - Org *GithubArchiveMessageProto3_GithubArchiveEntityProto3 `protobuf:"bytes,6,opt,name=org,proto3" json:"org,omitempty"` - CreatedAt *wrapperspb.Int64Value `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - Id *wrapperspb.StringValue `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"` - Other *wrapperspb.StringValue `protobuf:"bytes,9,opt,name=other,proto3" json:"other,omitempty"` + Id *wrappers.Int64Value `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Login *wrappers.StringValue `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"` + GravatarId *wrappers.StringValue `protobuf:"bytes,3,opt,name=gravatar_id,json=gravatarId,proto3" json:"gravatar_id,omitempty"` + AvatarUrl *wrappers.StringValue `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` + Url *wrappers.StringValue `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` } -func (x *GithubArchiveMessageProto3) Reset() { - *x = GithubArchiveMessageProto3{} +func (x *GithubArchiveEntityProto3) Reset() { + *x = GithubArchiveEntityProto3{} if protoimpl.UnsafeEnabled { mi := &file_messages_proto3_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -120,13 +120,13 @@ func (x *GithubArchiveMessageProto3) Reset() { } } -func (x *GithubArchiveMessageProto3) String() string { +func (x *GithubArchiveEntityProto3) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GithubArchiveMessageProto3) ProtoMessage() {} +func (*GithubArchiveEntityProto3) ProtoMessage() {} -func (x *GithubArchiveMessageProto3) ProtoReflect() protoreflect.Message { +func (x *GithubArchiveEntityProto3) ProtoReflect() protoreflect.Message { mi := &file_messages_proto3_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -138,88 +138,58 @@ func (x *GithubArchiveMessageProto3) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GithubArchiveMessageProto3.ProtoReflect.Descriptor instead. -func (*GithubArchiveMessageProto3) Descriptor() ([]byte, []int) { +// Deprecated: Use GithubArchiveEntityProto3.ProtoReflect.Descriptor instead. +func (*GithubArchiveEntityProto3) Descriptor() ([]byte, []int) { return file_messages_proto3_proto_rawDescGZIP(), []int{1} } -func (x *GithubArchiveMessageProto3) GetType() *wrapperspb.StringValue { +func (x *GithubArchiveEntityProto3) GetId() *wrappers.Int64Value { if x != nil { - return x.Type - } - return nil -} - -func (x *GithubArchiveMessageProto3) GetPublic() *wrapperspb.BoolValue { - if x != nil { - return x.Public - } - return nil -} - -func (x *GithubArchiveMessageProto3) GetPayload() *wrapperspb.StringValue { - if x != nil { - return x.Payload - } - return nil -} - -func (x *GithubArchiveMessageProto3) GetRepo() *GithubArchiveMessageProto3_GithubArchiveRepoProto3 { - if x != nil { - return x.Repo - } - return nil -} - -func (x *GithubArchiveMessageProto3) GetActor() *GithubArchiveMessageProto3_GithubArchiveEntityProto3 { - if x != nil { - return x.Actor + return x.Id } return nil } -func (x *GithubArchiveMessageProto3) GetOrg() *GithubArchiveMessageProto3_GithubArchiveEntityProto3 { +func (x *GithubArchiveEntityProto3) GetLogin() *wrappers.StringValue { if x != nil { - return x.Org + return x.Login } return nil } -func (x *GithubArchiveMessageProto3) GetCreatedAt() *wrapperspb.Int64Value { +func (x *GithubArchiveEntityProto3) GetGravatarId() *wrappers.StringValue { if x != nil { - return x.CreatedAt + return x.GravatarId } return nil } -func (x *GithubArchiveMessageProto3) GetId() *wrapperspb.StringValue { +func (x *GithubArchiveEntityProto3) GetAvatarUrl() *wrappers.StringValue { if x != nil { - return x.Id + return x.AvatarUrl } return nil } -func (x *GithubArchiveMessageProto3) GetOther() *wrapperspb.StringValue { +func (x *GithubArchiveEntityProto3) GetUrl() *wrappers.StringValue { if x != nil { - return x.Other + return x.Url } return nil } -type GithubArchiveMessageProto3_GithubArchiveEntityProto3 struct { +type GithubArchiveRepoProto3 struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id *wrapperspb.Int64Value `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Login *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"` - GravatarId *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=gravatar_id,json=gravatarId,proto3" json:"gravatar_id,omitempty"` - AvatarUrl *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` - Url *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` + Id *wrappers.Int64Value `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name *wrappers.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Url *wrappers.StringValue `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` } -func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) Reset() { - *x = GithubArchiveMessageProto3_GithubArchiveEntityProto3{} +func (x *GithubArchiveRepoProto3) Reset() { + *x = GithubArchiveRepoProto3{} if protoimpl.UnsafeEnabled { mi := &file_messages_proto3_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -227,13 +197,13 @@ func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) Reset() { } } -func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) String() string { +func (x *GithubArchiveRepoProto3) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GithubArchiveMessageProto3_GithubArchiveEntityProto3) ProtoMessage() {} +func (*GithubArchiveRepoProto3) ProtoMessage() {} -func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) ProtoReflect() protoreflect.Message { +func (x *GithubArchiveRepoProto3) ProtoReflect() protoreflect.Message { mi := &file_messages_proto3_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -245,58 +215,51 @@ func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) ProtoReflect() pr return mi.MessageOf(x) } -// Deprecated: Use GithubArchiveMessageProto3_GithubArchiveEntityProto3.ProtoReflect.Descriptor instead. -func (*GithubArchiveMessageProto3_GithubArchiveEntityProto3) Descriptor() ([]byte, []int) { - return file_messages_proto3_proto_rawDescGZIP(), []int{1, 0} +// Deprecated: Use GithubArchiveRepoProto3.ProtoReflect.Descriptor instead. +func (*GithubArchiveRepoProto3) Descriptor() ([]byte, []int) { + return file_messages_proto3_proto_rawDescGZIP(), []int{2} } -func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) GetId() *wrapperspb.Int64Value { +func (x *GithubArchiveRepoProto3) GetId() *wrappers.Int64Value { if x != nil { return x.Id } return nil } -func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) GetLogin() *wrapperspb.StringValue { - if x != nil { - return x.Login - } - return nil -} - -func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) GetGravatarId() *wrapperspb.StringValue { +func (x *GithubArchiveRepoProto3) GetName() *wrappers.StringValue { if x != nil { - return x.GravatarId - } - return nil -} - -func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) GetAvatarUrl() *wrapperspb.StringValue { - if x != nil { - return x.AvatarUrl + return x.Name } return nil } -func (x *GithubArchiveMessageProto3_GithubArchiveEntityProto3) GetUrl() *wrapperspb.StringValue { +func (x *GithubArchiveRepoProto3) GetUrl() *wrappers.StringValue { if x != nil { return x.Url } return nil } -type GithubArchiveMessageProto3_GithubArchiveRepoProto3 struct { +// GithubArchiveMessageProto3 is the proto3 version of github archive row. +type GithubArchiveMessageProto3 struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id *wrapperspb.Int64Value `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Url *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` + Type *wrappers.StringValue `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Public *wrappers.BoolValue `protobuf:"bytes,2,opt,name=public,proto3" json:"public,omitempty"` + Payload *wrappers.StringValue `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` + Repo *GithubArchiveRepoProto3 `protobuf:"bytes,4,opt,name=repo,proto3" json:"repo,omitempty"` + Actor *GithubArchiveEntityProto3 `protobuf:"bytes,5,opt,name=actor,proto3" json:"actor,omitempty"` + Org *GithubArchiveEntityProto3 `protobuf:"bytes,6,opt,name=org,proto3" json:"org,omitempty"` + CreatedAt *wrappers.Int64Value `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + Id *wrappers.StringValue `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"` + Other *wrappers.StringValue `protobuf:"bytes,9,opt,name=other,proto3" json:"other,omitempty"` } -func (x *GithubArchiveMessageProto3_GithubArchiveRepoProto3) Reset() { - *x = GithubArchiveMessageProto3_GithubArchiveRepoProto3{} +func (x *GithubArchiveMessageProto3) Reset() { + *x = GithubArchiveMessageProto3{} if protoimpl.UnsafeEnabled { mi := &file_messages_proto3_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -304,13 +267,13 @@ func (x *GithubArchiveMessageProto3_GithubArchiveRepoProto3) Reset() { } } -func (x *GithubArchiveMessageProto3_GithubArchiveRepoProto3) String() string { +func (x *GithubArchiveMessageProto3) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GithubArchiveMessageProto3_GithubArchiveRepoProto3) ProtoMessage() {} +func (*GithubArchiveMessageProto3) ProtoMessage() {} -func (x *GithubArchiveMessageProto3_GithubArchiveRepoProto3) ProtoReflect() protoreflect.Message { +func (x *GithubArchiveMessageProto3) ProtoReflect() protoreflect.Message { mi := &file_messages_proto3_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -322,28 +285,70 @@ func (x *GithubArchiveMessageProto3_GithubArchiveRepoProto3) ProtoReflect() prot return mi.MessageOf(x) } -// Deprecated: Use GithubArchiveMessageProto3_GithubArchiveRepoProto3.ProtoReflect.Descriptor instead. -func (*GithubArchiveMessageProto3_GithubArchiveRepoProto3) Descriptor() ([]byte, []int) { - return file_messages_proto3_proto_rawDescGZIP(), []int{1, 1} +// Deprecated: Use GithubArchiveMessageProto3.ProtoReflect.Descriptor instead. +func (*GithubArchiveMessageProto3) Descriptor() ([]byte, []int) { + return file_messages_proto3_proto_rawDescGZIP(), []int{3} } -func (x *GithubArchiveMessageProto3_GithubArchiveRepoProto3) GetId() *wrapperspb.Int64Value { +func (x *GithubArchiveMessageProto3) GetType() *wrappers.StringValue { if x != nil { - return x.Id + return x.Type } return nil } -func (x *GithubArchiveMessageProto3_GithubArchiveRepoProto3) GetName() *wrapperspb.StringValue { +func (x *GithubArchiveMessageProto3) GetPublic() *wrappers.BoolValue { if x != nil { - return x.Name + return x.Public } return nil } -func (x *GithubArchiveMessageProto3_GithubArchiveRepoProto3) GetUrl() *wrapperspb.StringValue { +func (x *GithubArchiveMessageProto3) GetPayload() *wrappers.StringValue { if x != nil { - return x.Url + return x.Payload + } + return nil +} + +func (x *GithubArchiveMessageProto3) GetRepo() *GithubArchiveRepoProto3 { + if x != nil { + return x.Repo + } + return nil +} + +func (x *GithubArchiveMessageProto3) GetActor() *GithubArchiveEntityProto3 { + if x != nil { + return x.Actor + } + return nil +} + +func (x *GithubArchiveMessageProto3) GetOrg() *GithubArchiveEntityProto3 { + if x != nil { + return x.Org + } + return nil +} + +func (x *GithubArchiveMessageProto3) GetCreatedAt() *wrappers.Int64Value { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *GithubArchiveMessageProto3) GetId() *wrappers.StringValue { + if x != nil { + return x.Id + } + return nil +} + +func (x *GithubArchiveMessageProto3) GetOther() *wrappers.StringValue { + if x != nil { + return x.Other } return nil } @@ -361,78 +366,72 @@ var file_messages_proto3_proto_rawDesc = []byte{ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, - 0xa8, 0x08, 0x0a, 0x1a, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, - 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x12, 0x30, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x12, 0x32, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x70, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x12, 0x36, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x50, 0x0a, 0x04, - 0x72, 0x65, 0x70, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x74, 0x65, 0x73, - 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, - 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, - 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, - 0x70, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x52, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x12, 0x54, - 0x0a, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, - 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, - 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x33, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, - 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x52, 0x05, 0x61, - 0x63, 0x74, 0x6f, 0x72, 0x12, 0x50, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x3e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, - 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x33, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x12, 0x3a, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, - 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x41, 0x74, 0x12, 0x2c, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x32, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x6f, - 0x74, 0x68, 0x65, 0x72, 0x1a, 0xa8, 0x02, 0x0a, 0x19, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, - 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x33, 0x12, 0x2b, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x32, 0x0a, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x6c, 0x6f, - 0x67, 0x69, 0x6e, 0x12, 0x3d, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, - 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x67, 0x72, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, - 0x49, 0x64, 0x12, 0x3b, 0x0a, 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, - 0x2e, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x1a, - 0xa8, 0x01, 0x0a, 0x17, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, - 0x65, 0x52, 0x65, 0x70, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x12, 0x2b, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x03, 0x75, 0x72, - 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0xa8, 0x02, 0x0a, 0x19, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x12, 0x2b, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, + 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x02, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x05, 0x6c, 0x6f, + 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x3d, + 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x0a, 0x67, 0x72, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x49, 0x64, 0x12, 0x3b, 0x0a, + 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x2e, 0x0a, 0x03, 0x75, 0x72, + 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x42, 0x3d, 0x5a, 0x3b, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, - 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, - 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0xa8, 0x01, 0x0a, 0x17, 0x47, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x12, 0x2b, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x81, 0x04, 0x0a, 0x1a, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x33, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x36, 0x0a, 0x07, 0x70, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x12, 0x35, 0x0a, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x33, 0x52, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x12, 0x39, 0x0a, 0x05, 0x61, 0x63, 0x74, + 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x52, 0x05, 0x61, + 0x63, 0x74, 0x6f, 0x72, 0x12, 0x35, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x12, 0x3a, 0x0a, 0x0a, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2c, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x02, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x42, 0x3d, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, + 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2f, + 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -449,33 +448,33 @@ func file_messages_proto3_proto_rawDescGZIP() []byte { var file_messages_proto3_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_messages_proto3_proto_goTypes = []interface{}{ - (*SimpleMessageProto3)(nil), // 0: testdata.SimpleMessageProto3 - (*GithubArchiveMessageProto3)(nil), // 1: testdata.GithubArchiveMessageProto3 - (*GithubArchiveMessageProto3_GithubArchiveEntityProto3)(nil), // 2: testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3 - (*GithubArchiveMessageProto3_GithubArchiveRepoProto3)(nil), // 3: testdata.GithubArchiveMessageProto3.GithubArchiveRepoProto3 - (*wrapperspb.Int64Value)(nil), // 4: google.protobuf.Int64Value - (*wrapperspb.StringValue)(nil), // 5: google.protobuf.StringValue - (*wrapperspb.BoolValue)(nil), // 6: google.protobuf.BoolValue + (*SimpleMessageProto3)(nil), // 0: testdata.SimpleMessageProto3 + (*GithubArchiveEntityProto3)(nil), // 1: testdata.GithubArchiveEntityProto3 + (*GithubArchiveRepoProto3)(nil), // 2: testdata.GithubArchiveRepoProto3 + (*GithubArchiveMessageProto3)(nil), // 3: testdata.GithubArchiveMessageProto3 + (*wrappers.Int64Value)(nil), // 4: google.protobuf.Int64Value + (*wrappers.StringValue)(nil), // 5: google.protobuf.StringValue + (*wrappers.BoolValue)(nil), // 6: google.protobuf.BoolValue } var file_messages_proto3_proto_depIdxs = []int32{ 4, // 0: testdata.SimpleMessageProto3.value:type_name -> google.protobuf.Int64Value - 5, // 1: testdata.GithubArchiveMessageProto3.type:type_name -> google.protobuf.StringValue - 6, // 2: testdata.GithubArchiveMessageProto3.public:type_name -> google.protobuf.BoolValue - 5, // 3: testdata.GithubArchiveMessageProto3.payload:type_name -> google.protobuf.StringValue - 3, // 4: testdata.GithubArchiveMessageProto3.repo:type_name -> testdata.GithubArchiveMessageProto3.GithubArchiveRepoProto3 - 2, // 5: testdata.GithubArchiveMessageProto3.actor:type_name -> testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3 - 2, // 6: testdata.GithubArchiveMessageProto3.org:type_name -> testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3 - 4, // 7: testdata.GithubArchiveMessageProto3.created_at:type_name -> google.protobuf.Int64Value - 5, // 8: testdata.GithubArchiveMessageProto3.id:type_name -> google.protobuf.StringValue - 5, // 9: testdata.GithubArchiveMessageProto3.other:type_name -> google.protobuf.StringValue - 4, // 10: testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3.id:type_name -> google.protobuf.Int64Value - 5, // 11: testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3.login:type_name -> google.protobuf.StringValue - 5, // 12: testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3.gravatar_id:type_name -> google.protobuf.StringValue - 5, // 13: testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3.avatar_url:type_name -> google.protobuf.StringValue - 5, // 14: testdata.GithubArchiveMessageProto3.GithubArchiveEntityProto3.url:type_name -> google.protobuf.StringValue - 4, // 15: testdata.GithubArchiveMessageProto3.GithubArchiveRepoProto3.id:type_name -> google.protobuf.Int64Value - 5, // 16: testdata.GithubArchiveMessageProto3.GithubArchiveRepoProto3.name:type_name -> google.protobuf.StringValue - 5, // 17: testdata.GithubArchiveMessageProto3.GithubArchiveRepoProto3.url:type_name -> google.protobuf.StringValue + 4, // 1: testdata.GithubArchiveEntityProto3.id:type_name -> google.protobuf.Int64Value + 5, // 2: testdata.GithubArchiveEntityProto3.login:type_name -> google.protobuf.StringValue + 5, // 3: testdata.GithubArchiveEntityProto3.gravatar_id:type_name -> google.protobuf.StringValue + 5, // 4: testdata.GithubArchiveEntityProto3.avatar_url:type_name -> google.protobuf.StringValue + 5, // 5: testdata.GithubArchiveEntityProto3.url:type_name -> google.protobuf.StringValue + 4, // 6: testdata.GithubArchiveRepoProto3.id:type_name -> google.protobuf.Int64Value + 5, // 7: testdata.GithubArchiveRepoProto3.name:type_name -> google.protobuf.StringValue + 5, // 8: testdata.GithubArchiveRepoProto3.url:type_name -> google.protobuf.StringValue + 5, // 9: testdata.GithubArchiveMessageProto3.type:type_name -> google.protobuf.StringValue + 6, // 10: testdata.GithubArchiveMessageProto3.public:type_name -> google.protobuf.BoolValue + 5, // 11: testdata.GithubArchiveMessageProto3.payload:type_name -> google.protobuf.StringValue + 2, // 12: testdata.GithubArchiveMessageProto3.repo:type_name -> testdata.GithubArchiveRepoProto3 + 1, // 13: testdata.GithubArchiveMessageProto3.actor:type_name -> testdata.GithubArchiveEntityProto3 + 1, // 14: testdata.GithubArchiveMessageProto3.org:type_name -> testdata.GithubArchiveEntityProto3 + 4, // 15: testdata.GithubArchiveMessageProto3.created_at:type_name -> google.protobuf.Int64Value + 5, // 16: testdata.GithubArchiveMessageProto3.id:type_name -> google.protobuf.StringValue + 5, // 17: testdata.GithubArchiveMessageProto3.other:type_name -> google.protobuf.StringValue 18, // [18:18] is the sub-list for method output_type 18, // [18:18] is the sub-list for method input_type 18, // [18:18] is the sub-list for extension type_name @@ -502,7 +501,7 @@ func file_messages_proto3_proto_init() { } } file_messages_proto3_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GithubArchiveMessageProto3); i { + switch v := v.(*GithubArchiveEntityProto3); i { case 0: return &v.state case 1: @@ -514,7 +513,7 @@ func file_messages_proto3_proto_init() { } } file_messages_proto3_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GithubArchiveMessageProto3_GithubArchiveEntityProto3); i { + switch v := v.(*GithubArchiveRepoProto3); i { case 0: return &v.state case 1: @@ -526,7 +525,7 @@ func file_messages_proto3_proto_init() { } } file_messages_proto3_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GithubArchiveMessageProto3_GithubArchiveRepoProto3); i { + switch v := v.(*GithubArchiveMessageProto3); i { case 0: return &v.state case 1: diff --git a/bigquery/storage/managedwriter/testdata/messages_proto3.proto b/bigquery/storage/managedwriter/testdata/messages_proto3.proto index 01168d3d02f..2d298362449 100644 --- a/bigquery/storage/managedwriter/testdata/messages_proto3.proto +++ b/bigquery/storage/managedwriter/testdata/messages_proto3.proto @@ -27,23 +27,22 @@ message SimpleMessageProto3 { } -// GithubArchiveMessageProto3 is the proto3 version of github archive row. -message GithubArchiveMessageProto3 { - - message GithubArchiveEntityProto3 { - google.protobuf.Int64Value id = 1; - google.protobuf.StringValue login = 2; - google.protobuf.StringValue gravatar_id = 3; - google.protobuf.StringValue avatar_url = 4; - google.protobuf.StringValue url = 5; - } +message GithubArchiveEntityProto3 { + google.protobuf.Int64Value id = 1; + google.protobuf.StringValue login = 2; + google.protobuf.StringValue gravatar_id = 3; + google.protobuf.StringValue avatar_url = 4; + google.protobuf.StringValue url = 5; +} - message GithubArchiveRepoProto3 { - google.protobuf.Int64Value id = 1; - google.protobuf.StringValue name = 2; - google.protobuf.StringValue url = 3; - } +message GithubArchiveRepoProto3 { + google.protobuf.Int64Value id = 1; + google.protobuf.StringValue name = 2; + google.protobuf.StringValue url = 3; +} +// GithubArchiveMessageProto3 is the proto3 version of github archive row. +message GithubArchiveMessageProto3 { google.protobuf.StringValue type = 1; google.protobuf.BoolValue public = 2; google.protobuf.StringValue payload = 3; From 9d16f0289e689009d7a1b746f3703839b6a0e9f6 Mon Sep 17 00:00:00 2001 From: Seth Hollyman Date: Sat, 28 Aug 2021 18:01:03 +0000 Subject: [PATCH 4/6] naming --- bigquery/storage/managedwriter/managed_stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigquery/storage/managedwriter/managed_stream.go b/bigquery/storage/managedwriter/managed_stream.go index 7043e66e703..d2812f9c17b 100644 --- a/bigquery/storage/managedwriter/managed_stream.go +++ b/bigquery/storage/managedwriter/managed_stream.go @@ -272,8 +272,8 @@ func (ms *ManagedStream) append(pw *pendingWrite, opts ...gax.CallOption) error err = (*arc).Send(req) } recordStat(ms.ctx, AppendRequests, 1) - recordStat(ms.ctx, AppendRows, int64(len(pw.request.GetProtoRows().Rows.GetSerializedRows()))) recordStat(ms.ctx, AppendRequestBytes, int64(pw.reqSize)) + recordStat(ms.ctx, AppendRequestRows, int64(len(pw.request.GetProtoRows().Rows.GetSerializedRows()))) if err != nil { status := grpcstatus.Convert(err) if status != nil { From 3df1fb00708e7c372d7d7e9c48a89b5670c305b1 Mon Sep 17 00:00:00 2001 From: Seth Hollyman Date: Sat, 28 Aug 2021 18:02:55 +0000 Subject: [PATCH 5/6] remove debug logging --- bigquery/storage/managedwriter/managed_stream.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bigquery/storage/managedwriter/managed_stream.go b/bigquery/storage/managedwriter/managed_stream.go index d2812f9c17b..c630e4fe481 100644 --- a/bigquery/storage/managedwriter/managed_stream.go +++ b/bigquery/storage/managedwriter/managed_stream.go @@ -18,7 +18,6 @@ import ( "context" "fmt" "io" - "log" "sync" "github.com/googleapis/gax-go/v2" @@ -376,9 +375,9 @@ func recvProcessor(ctx context.Context, arc storagepb.BigQueryWrite_AppendRowsCl recordStat(ctx, AppendResponses, 1) if status := resp.GetError(); status != nil { - tagCtx, err := tag.New(ctx, tag.Insert(keyError, codes.Code(status.GetCode()).String())) + tagCtx, _ := tag.New(ctx, tag.Insert(keyError, codes.Code(status.GetCode()).String())) if err != nil { - log.Printf("WTF couldn't tag: %v", err) + tagCtx = ctx } recordStat(tagCtx, AppendResponseErrors, 1) nextWrite.markDone(NoStreamOffset, grpcstatus.ErrorProto(status), fc) From e0e1b69f1f8e40353314cf1b81fee0338ae57903 Mon Sep 17 00:00:00 2001 From: Seth Hollyman Date: Sun, 29 Aug 2021 19:11:18 +0000 Subject: [PATCH 6/6] fix comment --- bigquery/storage/managedwriter/instrumentation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigquery/storage/managedwriter/instrumentation.go b/bigquery/storage/managedwriter/instrumentation.go index f10a2d3c153..464b99a69ed 100644 --- a/bigquery/storage/managedwriter/instrumentation.go +++ b/bigquery/storage/managedwriter/instrumentation.go @@ -71,7 +71,7 @@ var ( // It is EXPERIMENTAL and subject to change or removal without notice. AppendResponses = stats.Int64(statsPrefix+"append_responses", "Number of append responses sent", stats.UnitDimensionless) - // AppendResponses is a measure of the number of append responses received with an error attached. + // AppendResponseErrors is a measure of the number of append responses received with an error attached. // It is EXPERIMENTAL and subject to change or removal without notice. AppendResponseErrors = stats.Int64(statsPrefix+"append_response_errors", "Number of append responses with errors attached", stats.UnitDimensionless)